diff options
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> |