Sha256: ec5646f45e6379829bc12fc71e71c4baf439b1213a9bcb028a63e5e68cc2513f
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
<div data-role="page"> <div data-role="header" data-position="inline"> <h1>Edit <%%= @<%= name.downcase %>.<%= attributes[0] %> %></h1> <a href="<%%= url_for :action => :show, :id => @<%= name.downcase %>.object %>" class="ui-btn-left" data-icon="back" data-direction="reverse">Cancel</a> <a href="<%%= url_for :action => :delete, :id => @<%= name.downcase %>.object %>" class="ui-btn-right" data-icon="delete" data-direction="reverse">Delete</a> </div> <div data-role="content"> <form method="POST" action="<%%= url_for :action => :update %>"> <input type="hidden" name="id" value="<%%= @<%= name.downcase %>.object %>"/> <% attributes.each do |attribute| %> <div data-role="fieldcontain"> <label for="<%= name.downcase %>[<%= attribute %>]" class="fieldLabel"><%= humanize(attribute) %></label> <input type="text" id="<%= name.downcase %>[<%= attribute %>]" name="<%= name.downcase %>[<%= attribute %>]" value="<%%= @<%= name.downcase %>.<%= attribute %> %>" <%%= placeholder( "<%= humanize(attribute) %>" ) %> /> </div> <% end %> <input type="submit" value="Update"/> </form> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems