Sha256: 68b695e2b27dbfefce0557fd3273093ed796eea5cc8b67d1129c50ed2ebb842d
Contents?: true
Size: 562 Bytes
Versions: 5
Compression:
Stored size: 562 Bytes
Contents
<h1><%%= @<%= singular_name %>.new_record? ? 'New' : 'Editing' %> <%= singular_name %></h1> <%% form_for([:admin, @<%= singular_name %>]) do |f| %> <%%= f.error_messages %> <% for attribute in attributes -%> <p> <%%= f.label :<%= attribute.name %> %><br /> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </p> <% end -%> <p class="submission"> <%%= f.submit @<%= singular_name %>.new_record? ? 'Create' : 'Update', :disable_with => 'Submitting...' %> or <%%= link_to 'Back', admin_<%= plural_name %>_path %> </p> <%% end %>
Version data entries
5 entries across 5 versions & 1 rubygems