diff options
author | Filipp Lepalaan <filipp@mac.com> | 2014-06-05 22:50:33 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2014-06-05 22:50:33 +0300 |
commit | 9909d82ed9f89f1b72d5bead21e93bf2f2039c35 (patch) | |
tree | 069693c372c8002634e569ebcf3fe5da59326862 /views | |
parent | 39bc2b230b5de771974e174b5b5bbb62b54e6015 (diff) | |
download | membrain-9909d82ed9f89f1b72d5bead21e93bf2f2039c35.tar.gz membrain-9909d82ed9f89f1b72d5bead21e93bf2f2039c35.tar.bz2 membrain-9909d82ed9f89f1b72d5bead21e93bf2f2039c35.zip |
Switched to sqlite
Diffstat (limited to 'views')
-rw-r--r-- | views/edit_object.erb | 7 | ||||
-rw-r--r-- | views/index.erb | 4 | ||||
-rw-r--r-- | views/view_object.erb | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/views/edit_object.erb b/views/edit_object.erb new file mode 100644 index 0000000..aa44acc --- /dev/null +++ b/views/edit_object.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" value="<%= @o.value %>"> + </div> + <button type="submit" class="btn btn-default">Submit</button> +</form> diff --git a/views/index.erb b/views/index.erb index 11ef5a6..551ef06 100644 --- a/views/index.erb +++ b/views/index.erb @@ -1 +1,5 @@ +<% for item in @data %> + <%= item.title %> +<% end %> + <a class="btn btn-default" href="add">Create</a> diff --git a/views/view_object.erb b/views/view_object.erb new file mode 100644 index 0000000..20a58d7 --- /dev/null +++ b/views/view_object.erb @@ -0,0 +1,3 @@ +<%= @data.title %> + +<a class="btn btn-warning" href="<%= @data.get_url %>">Edit</a> |