Sha256: c387025b8475cfbede4dc7e1045bf17ca801f612993622e94645898b0eedab1f

Contents?: true

Size: 972 Bytes

Versions: 1

Compression:

Stored size: 972 Bytes

Contents

.page-header
  h1
    span = "#{Meta2::Setting.model_name.human}管理"
    small.pull-right = link_to I18n.t('meta2.setting.new'), new_setting_path(section: params[:section]), class: 'btn btn-default'

ul.nav.nav-tabs
  - Meta2::Setting.app_names.each do |app_name|
    li role="presentation" class="#{'active' if app_name == app_name_from_session}" = link_to app_name, change_app_settings_path(app_name: app_name), method: :post


table.table.table-borderd
  tr
    th = select_tag :section, options_for_select(I18n.t('meta2.setting.sections').to_hash.invert, selected: params[:section].presence || 'parts'), class: 'form-control', id: :meta2_activerecord_section_selecter, data: {path: settings_path}
    th = Meta2::Setting.human_attribute_name(:path)
    th = Meta2::Setting.human_attribute_name(:name)
    th = Meta2::Setting.human_attribute_name(:value)
    th = Meta2::Setting.human_attribute_name(:note)
    th
  = render partial: 'record', collection: @settings

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meta2-0.0.3 app/views/meta2/settings/index.html.slim