Sha256: 244682042907d014d55083f3e872387f50c71a76b55768453e8e5407baf0da4b

Contents?: true

Size: 718 Bytes

Versions: 1

Compression:

Stored size: 718 Bytes

Contents

<%%= form_for @<%= model_name.underscore  %>, :html => { :class => 'form-horizontal' } do |f| %>
  <fieldset>
    <legend><%%= controller.action_name.capitalize %> <%= model_name.titleize %></legend>

    <%- columns.each do |column| -%>
    <div class="control-group">
      <%%= f.label :<%= column.name %>, :class => 'control-label' %>
      <div class="controls">
        <%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
      </div>
    </div>

    <%- end -%>
    <div class="form-actions">
      <%%= f.submit nil, :class => 'btn btn-primary' %>
      <%%= link_to 'Cancel', <%= controller_routing_path %>_path, :class => 'btn' %>
    </div>
  </fieldset>
<%% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter-bootstrap-rails-2.0.3 lib/generators/bootstrap/themed/templates/_form.html.erb