Sha256: e4439ac855f55e4704dad9cd945493f7dfa6d507210a4d39734e1871ed7e869a
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
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| -%> <div class="field"> <label><b><%%= I18n.t :<%= attribute.name %> %></b></label> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </div> <%- end -%> </div> <%%= link_to arrow_left, <%= plural_name %>_path %> <%%= submit_link(f) %> <%%= submit_tag(I18n.t(:clear), class: 'btn btn-inverse', type: "reset" ) %> <%%= link_to(I18n.t(:show), @<%= singular_name %>, class: 'btn') if params[:action] == 'edit' %> <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zscaffold_admin-0.0.4 | lib/generators/scaffold_admin/templates/views/_form.html.erb |