Sha256: ed22eec2ae6aa39afa588ad3b0337411ec53d943513618ccedc65e1f4640e6ef

Contents?: true

Size: 652 Bytes

Versions: 30

Compression:

Stored size: 652 Bytes

Contents

<%%= form_for(@<%= singular_table_name %>, html: { class: 'form-horizontal'}) do |f| %>

<% attributes.each do |attribute| -%>
  <div class="form-group">
    <%%= f.label :<%= attribute.name %>, class: 'col-md-2' %>
    <%
      colsize = 6
      colsize = 2 if attribute.type == :integer
    %>
    <div class="col-md-<%= colsize %>">
      <%%= f.<%= attribute.field_type %> :<%= attribute.name %><%= "?" if attribute.type == :boolean %>, class: 'form-control' %>
    </div>
  </div>

<% end -%>
  <div class="form-group">
    <div class="col-md-offset-2 col-md-6">
      <%%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
<%% end %>

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ez-1.3.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.2.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.1.3 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.1.2 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.1.1 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.1.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-1.0.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.9 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.7 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.6 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.5 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.1 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.9.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.8.7 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.8.6 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.7.0 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.6.5 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.6.4 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.6.3 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb
ez-0.6.2 lib/generators/ez/resource/templates/dried/bootstrapped/_form.html.erb