Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
krav committed Nov 19, 2012
1 parent de30f6a commit e746eaa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions web/tmpl/database_edit.ejs
@@ -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.