Sha256: 58186b3930255312e7567d261440c7d4f9ccb9dc89b45954e246e64a832f4652

Contents?: true

Size: 1.12 KB

Versions: 15

Compression:

Stored size: 1.12 KB

Contents

<%% if @<%= singular_name %>.errors.any? %>
<div id="error_explanation">
  <h2>Please correct the following errors:</h2>
  <%% @<%= singular_name %>.errors.to_a.in_groups(2, false).each do |group| %>
  <ul>
    <%% group.each do |msg| %>
    <li><%%= msg %></li>
    <%% end %>
  </ul>
  <%% end %>
  <br style="clear: both;" />
</div>
<br style="clear: both;" />
<%% end %>

<fieldset class="form_container">
  <%%= legend_tag 'About This <%= singular_name.titleize -%>' -%>

<%- model_attributes.in_groups(2).each do |group| -%>
  <div class="form_column">
<%- group.each do |attribute| -%>
  <%- if attribute -%>
    <%- if attribute.field_type == :check_box -%>
    <%%= f.<%= attribute.field_type -%> :<%= attribute.name -%>, :inline_label => 'Yes' -%>
    <%- else -%>
    <%%= f.<%= attribute.field_type -%> :<%= attribute.name -%> -%>
    <%- end -%>
  <%- end -%>
<%- end -%>
  </div>
<%- end -%>
  <br style="clear: both;" />
  <div class="link_block">
    <%%= f.submit 'Save', :class => 'link_button' -%>
    <%%= link_to 'Cancel', <%= plural_name -%>_path, :class => 'link_button' -%>
  </div>
</fieldset>

<br style="clear: both;" />

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
scaffold_logic-2.0.0 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.9 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.8 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.7 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.6 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.5 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.4 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.3 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.2 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.1 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.7.0 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.6.3 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.6.2 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.6.1 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb
scaffold_logic-1.6.0 lib/generators/scaffold_logic/scaffold/templates/views/erb/_form.html.erb