aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/form.erb7
-rw-r--r--views/index.erb1
-rw-r--r--views/layout.erb14
3 files changed, 22 insertions, 0 deletions
diff --git a/views/form.erb b/views/form.erb
new file mode 100644
index 0000000..e8171b4
--- /dev/null
+++ b/views/form.erb
@@ -0,0 +1,7 @@
+<form action="" method="post">
+ <div class="form-group">
+ <label for="exampleInputEmail1">Name</label>
+ <input name="name" type="text" class="form-control" placeholder="Name">
+ </div>
+ <button type="submit" class="btn btn-default">Submit</button>
+</form>
diff --git a/views/index.erb b/views/index.erb
new file mode 100644
index 0000000..11ef5a6
--- /dev/null
+++ b/views/index.erb
@@ -0,0 +1 @@
+<a class="btn btn-default" href="add">Create</a>
diff --git a/views/layout.erb b/views/layout.erb
new file mode 100644
index 0000000..a4d059b
--- /dev/null
+++ b/views/layout.erb
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <title></title>
+ <link rel="stylesheet" href="/css/bootstrap.min.css">
+ <link rel="stylesheet" href="/css/bootstrap-theme.min.css">
+ </head>
+ <body>
+ <div id="app">
+ <%= yield %>
+ </div>
+ </body>
+ <script src="/js/jquery.min.js"></script>
+ <script src="/js/bootstrap.min.js"></script>
+</html>