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
adminlte-generators-0.2.0 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.1.2 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.1.1 lib/generators/adminlte/install/templates/form_builder/_form.html.erb
adminlte-generators-0.1.0 lib/generators/adminlte/install/templates/form_builder/_form.html.erb