Sha256: efe3ccb64a42b2f02c6bc698c35a7cc3efd59637cb2f10f2549cd6e1985fbe37
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
<%%= form_for(@<%= singular_name %>) do |f| %> <div class="module_content"> <%% if @<%= singular_name %>.errors.any? %> <div id="error_explanation"> <h4 class='alert_error'><%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this category from being saved:</h4> <ul> <%% @<%= singular_name %>.errors.full_messages.each do |msg| %> <li><%%= msg %></li> <%% end %> </ul> </div> <%% end %> <%- model_attributes.each do |attribute| -%> <fieldset> <label><b><%%= I18n.t :<%= attribute.name %> %></label></b> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </fieldset> <%- end -%> </div> <footer> <div class="submit_link"> <%%= f.submit %> <input type="reset" value="Reset"> <%%= link_to image_tag("/assets/icn_jump_back.png", :alt => I18n.t(:back), :title => I18n.t(:back)), <%= plural_name %>_path %> <%% if params[:action] == 'edit' %> <%%= link_to image_tag("/assets/icn_folder.png", :alt => I18n.t(:show), :title => I18n.t(:show)), @<%= singular_name %> %> <%% end %> </div> </footer> <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zscaffold_admin-0.0.2 | lib/generators/scaffold_admin/templates/views/_form.html.erb |