Sha256: a52052e49edc905e7efa284199c11811b61e11aeb3ec3acfcd3255c259cf17c3

Contents?: true

Size: 1.12 KB

Versions: 24

Compression:

Stored size: 1.12 KB

Contents

<section class="content invoice">
  <div class="row">
    <div class="col-md-10">
      <%%= form_for(@<%= singular_table_name %>, :html => { :role => "form" }) do |f| %>
        <%% if @<%= singular_table_name %>.errors.any? %>
          <div class="alert alert-danger alert-dismissable" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">x</button>
            <h4><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h4>

            <ul>
            <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %>
              <li><%%= msg %></li>
            <%% end %>
            </ul>
          </div>
        <%% end %>

    <% attributes.each do |attribute| -%>
  <div class="form-group">
        <%%= f.label :<%= attribute.name %> %>
        <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, :class => "form-control" %>
      </div>
    <% end -%>
  <div class="form-group">
        <%%= f.submit :class => "btn btn-primary" %>
      </div>
    <%% end %>
    </div>
  </div>
</section> 

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
phcmembers-2.2.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-2.1.3 lib/templates/erb/scaffold/_form.html.erb
phcmembers-2.1.2 lib/templates/erb/scaffold/_form.html.erb
phcmembers-2.1.1 lib/templates/erb/scaffold/_form.html.erb
phcmembers-2.1.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-2.0.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.9.9 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.9.5 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.9.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.8.1 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.8.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.7.8 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.7.6 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.7.5 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.7.0 lib/templates/erb/scaffold/_form.html.erb
phcmembers-1.6.0 lib/templates/erb/scaffold/_form.html.erb
adminlte-generators-0.2.4 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.2.3 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.2.2 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.2.1 lib/generators/adminlte/install/templates/form_builder/_form.html.erb