Sha256: 38bf316d3ed85b5dee2b5984543cc83d4a1c6d2ab535c49f46f291275bc70418
Contents?: true
Size: 1.1 KB
Versions: 15
Compression:
Stored size: 1.1 KB
Contents
<div id="pageTitle"> <h1>Edit <%%= @<%= name.downcase %>.<%= attributes[0] %>%></h1> </div> <div id="toolbar"> <div id="leftItem" class="backButton"><%%= link_to "Cancel", :action => :show, :id => @<%= name.downcase %>.object %></div> <div id="rightItem" class="regularButton"><%%= link_to "Delete", :action => :delete, :id => @<%= name.downcase %>.object %></div> </div> <div id="content"> <form method="POST" action="<%%= url_for :action => :update %>"> <input type="hidden" name="id" value="<%%= @<%= name.downcase %>.object %>"/> <ul> <% attributes.each do |attribute| %> <li> <label for="<%= name.downcase %>[<%= attribute %>]" class="fieldLabel"><%= humanize(attribute) %></label> <input type="text" name="<%= name.downcase %>[<%= attribute %>]" value="<%%= @<%= name.downcase %>.<%= attribute %>%>" <%%= placeholder( "<%= humanize(attribute) %>" ) %> /> </li> <% end %> </ul> <input type="submit" class="standardButton" value="Update" /> </form> </div>
Version data entries
15 entries across 15 versions & 1 rubygems