Sha256: 421a018c8f8d309b2149ff5d2c4d765cd57cbcca525b09bf5f25cd901353c99e

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

<%= simple_form_for @resource, html: { role: "form" } do |f| %>
  <% attrs_for_form.each do |attr| %>
    <div class="form-group">
      <% if @resource_class.column_names.include? attr.to_s %>
        <%= f.input attr, error: false, input_html: { class: "form-control" } %>
      <% else %>
        <%= f.association attr, error: false, input_html: { class: "form-control chosen" } %>
      <% end %>
    </div>
  <% end %>
  <%= f.button :submit, class: "btn btn-default" %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
godmin-0.9.1 app/views/godmin/resource/_form.html.erb
godmin-0.9.0 app/views/godmin/resource/_form.html.erb