Sha256: 333323154db3a0ccd4fcc92f462d4920e88aa99e9811c47468e2187645957c4a
Contents?: true
Size: 972 Bytes
Versions: 30
Compression:
Stored size: 972 Bytes
Contents
- current_title = page_title(action, model_class) - title current_title .page-header %h1= current_title %hr .row .col-lg-12 = render 'tramway/core/shared/messages', object: @record_form .row .col-lg-12 = simple_form_for @record_form, url: { controller: :records, action: action, model: @record_form.model.class }, method: method, input_html: { class: 'form-horizontal' } do |f| - @record_form.properties.each do |property, type| = render 'tramway/core/shared/input', property: property, object: :record, type: type, form: f, destination: :admin, value: value_from_params(model_class: model_class, property: property, type: type) = hidden_field_tag :redirect, params[:redirect] = f.button :submit, t('helpers.links.save'), class: 'btn-success' = link_to t('helpers.links.back'), current_model_records_path, class: 'btn btn-secondary' -# NOTES -# * value_from_params helper is in tramway-core gem app/helpers/inputs_helpers.rb
Version data entries
30 entries across 30 versions & 1 rubygems