Sha256: 5b0a113fcd843f885dbe192a9a6ea52ce152ce5e16df1fafe330600e7f119329

Contents?: true

Size: 614 Bytes

Versions: 38

Compression:

Stored size: 614 Bytes

Contents

<%%= simple_form_for @<%= resource_name %>, :html => { :class => 'form-horizontal' } do |f| %>
  <%- columns.each do |column| -%>
  <%%= f.input :<%= column.name %> %>
  <%- end -%>
  <%- if ::SimpleForm::FormBuilder.instance_methods.include?(:wrapped_button) -%>
  <%%= f.button :wrapped, :cancel => <%= controller_routing_path %>_path %>
  <%- else -%>
  <div class="form-actions">
    <%%= f.button :submit, :class => 'btn-primary' %>
    <%%= link_to t('.cancel', :default => t("helpers.links.cancel")),
                <%= controller_routing_path %>_path, :class => 'btn' %>
  </div>
  <%- end -%>
<%% end %>

Version data entries

38 entries across 38 versions & 9 rubygems

Version Path
devbootsrap-0.0.7 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
devbootsrap-0.0.6 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
devbootsrap-0.0.5 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
devbootsrap-0.0.4 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
devbootsrap-0.0.3 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
bootstrap-sass-extras-0.0.5 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.8 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.7 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
bootstrap-sass-extras-0.0.4 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
bootstrap-sass-extras-0.0.3 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
bootstrap-sass-extras-0.0.2 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
bootstrap-sass-extras-0.0.1 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.6 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.5 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.4 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.3 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.1 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
rails-cancan-bootstrap-scaffold-0.0.1 lib/generators/cancan_bootstrap/views/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.2.0 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb
twitter-bootstrap-rails-2.1.9 lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb