Sha256: d3c21eff95d034a6047b16e8fae3a1025fd564bb5e38631963bf3b59b95a2d99

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 Bytes

Contents

<%%= form_for <%= item_path :instance_variable => true %>, :html => { :class => 'form-horizontal' } do |f| %>
  <fieldset>
    <legend><%%= form_action_title %> <%= singular_name.titleize %></legend>
    <%- model_attributes.each do |attribute| -%>
    <div class="control-group">
      <%%= f.label :<%= attribute.name %>, :class => 'control-label' %>
      <div class="controls">
        <%%= f.<%= attribute.field_type %> :<%= attribute.name %>, :class => '<%= attribute.field_type %>' %>
      </div>
    </div>
    <%- end -%>
    <div class="form-actions">
      <%%= f.submit nil, :class => 'btn btn-primary' %>
      <%%= link_to 'Cancel', <%= items_path %>, :class => 'btn' %>
    </div>
  </fieldset>
<%% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrapped-2.0.4 lib/generators/bootstrapped/scaffold/templates/views/erb/_form.html.erb
bootstrapped-2.0.3 lib/generators/bootstrapped/scaffold/templates/views/erb/_form.html.erb
bootstrapped-1.0.1 lib/generators/bootstrapped/scaffold/templates/views/erb/_form.html.erb
bootstrapped-1.0.0 lib/generators/bootstrapped/scaffold/templates/views/erb/_form.html.erb
bootstrapped-0.9.0 lib/generators/bootstrapped/scaffold/templates/views/erb/_form.html.erb