Permalink
Browse files

edit

  • Loading branch information...
krav committed Nov 19, 2012
1 parent de30f6a commit e746eaa43aa46a7896122fbb1e5d55a1f9bd5984
Showing with 18 additions and 0 deletions.
  1. +18 −0 web/tmpl/database_edit.ejs
View
@@ -0,0 +1,18 @@
+<form class="form-horizontal" id='entry'>
+ <% $.each(fields, function(i, f){ %>
+ <div class="control-group">
+ <label class="control-label" for="<%= f %>"><%= f %></label>
+ <div class="controls">
+ <input type="text" name="<%= f %>" value="<%= entry[f] %>">
+ </div>
+ </div>
+ <% }) %>
+ <div id="extra_fields"></div>
+ <div class="control-group">
+ <div class="controls">
+ <button class="btn">Add field</button>
+ <button class="btn btn-danger" id="save">Save</button>
+ </div>
+ </div>
+</form>
+

0 comments on commit e746eaa

Please sign in to comment.