Sha256: 1a2f83d6b34b7f16ed8e83303eb2e90e22b088c32fd0e6df0448214327607d62

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

<%%= simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %>
  <%- columns.each do |column| -%>
  <%%= f.input :<%= column.name %> %>
  <%%= f.error_span(@<%= resource_name %>[:<%= column.name %>]) %>
  <%- end -%>
  <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
  <%%= f.button :wrapped, :cancel => <%= controller_routing_path %>_path %>
  <%- else -%>

  <%%= f.button :submit, :class => 'btn-primary' %>
  <%%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                <%= controller_routing_path %>_path, :class => 'btn btn-default' %>
  <%- end -%>
<%% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railsstrap-3.3.4 lib/generators/railsstrap/themed/templates/simple_form/_form.html.erb