Sha256: 724cf3d99d36ef18a4627aabb82b6cd5758f14117f12f12f08865dbd375a6de7

Contents?: true

Size: 847 Bytes

Versions: 3

Compression:

Stored size: 847 Bytes

Contents

<%-
strformfor = "@#{singular_table_name}"
if not namespace_alone.blank? then
  strformfor = "[:#{namespace_alone}, @#{singular_table_name} ]"
end
-%>

<%%= form_for(<%= strformfor %>) do |f| %>
  <%% if @<%= singular_table_name %>.errors.any? %>
    <div id="error_explanation">
      <h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>

      <ul>
        <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %><li><%%= msg %></li><%% end %>
      </ul>
    </div>
  <%% end %>
  <%= render_partial 'app/views/partials/_form_field.html.erb' %><!-- Beautiful_scaffold - AddField - Do not remove -->
  <div>
    <%%= f.submit :class => "btn btn-primary", :data => { :disable_with => t(:saving, :default => "Saving...") } %>
  </div>
<%% end %>


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beautiful_scaffold-1.0.1 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-1.0.0.pre lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.6 lib/generators/templates/app/views/_form.html.erb