Sha256: 37defd2594bb70f6664f031dc3a3fc888dc273e65ae36aeaf5890fe28ce9c8d0

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

<%%= form_for(@<%= singular_table_name %>, html: {class: 'form-horizontal'}) do |f| %>
  <%%= render(partial: 'shared/errors', locals: {model: @<%= singular_table_name %>}) %>
  
<% attributes.each do |attribute| -%>
  <div class="control-group">
    <%%= f.label :<%= attribute.name %>, class: 'control-label' %>
    <div class="controls">
      <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
    </div>
  </div>
<% end -%>
  <div class="form-actions">
    <%%= f.submit <%= key_value :class, "'btn btn-primary'" %> %>
    <%%= link_to 'Back', <%= plural_table_name %>_path, <%= key_value :class, "'btn btn-default'" %> %>
  </div>
<%% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootstrap2-rails-0.0.7 lib/templates/erb/scaffold/_form.html.erb
bootstrap2-rails-0.0.6 lib/templates/erb/scaffold/_form.html.erb