Sha256: 06f6540084e8ce62f8592e50726239371d42f6357dfdd4645c35b250f1e7d91a
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
= form_for @setting, html: {class: 'form-horizontal'} do |form| - if form.object.errors.any? ul.list-unstyled.alert.alert-danger - form.object.errors.full_messages.each do |message| li = message .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :app_name .col-xs-10 = form.text_field :app_name, class: 'form-control', disabled: form.object.persisted? .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :section .col-xs-10 = form.select :section, options_of_section_from_meta2_settings_for_select(form), {}, class: 'form-control', disabled: form.object.persisted? .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :path .col-xs-10 = form.text_field :path, class: 'form-control', disabled: (form.object.persisted? && !form.object.parts?) .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :name .col-xs-10 = form.select :name, options_for_select(I18n.t('meta2.setting.defaults').invert, selected: form.object.name), {}, class: 'form-control', disabled: form.object.persisted? .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :value .col-xs-10 = form.text_field :value, class: 'form-control' .form-group label.col-xs-2.control-label = Meta2::Setting.human_attribute_name :note .col-xs-10 = form.text_field :note, class: 'form-control' .form-group .col-xs-10.col-xs-offset-2 = form.submit I18n.t('meta2.setting.submit'), class: 'btn btn-warning'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meta2-0.0.3 | app/views/meta2/settings/_form.html.slim |
meta2-0.0.2 | app/views/meta2/settings/_form.html.slim |