Sha256: e7c9573bc4010f45959aa61d45bb5491a1f73b608dbff0c25f0a8600be44ae01

Contents?: true

Size: 710 Bytes

Versions: 29

Compression:

Stored size: 710 Bytes

Contents

<%% content_for :right_page_toolbar do %>
<%%= link_to(render_icon_and_text_content('icon-circle-arrow-left', "#{t('labels.back_to')}#{t('model.list', :model => <%= class_name.split('::').last %>.model_name.human)}"), <%= plural_table_name %>_path, class: 'btn btn-inverse') %>
<%% end %>

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

  <div class="form-inputs">
  <%- attributes.each do |attribute| -%>
    <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
  <%- end -%>
  </div>

  <div class="form-actions">
    <%%= f.button :submit, class: 'btn btn-inverse' %>
  </div>
<%% end %>

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
conte_rails_template-0.0.29 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.28 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.27 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.26 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.25 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.24 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.23 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.22 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb
conte_rails_template-0.0.21 lib/generators/conte_rails_template/templates/erb/scaffold/_form.html.erb