Sha256: 4ef32cdfc16318f10c620783fa5c62b348fa4f0f068caf504d6d3b7a293ba5e6

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

section.clearfix
  div.col.col-sm-8
    h3 Defined Settings (#{@settings.count})
    div.table-responsive
      table.settings.table.table-striped.table-hover.table-condensed
        thead
          tr
            th Name
            th Value
            th Tags
            th.text-center Actions
        tbody
          - @settings.each do |setting|
            tr
              td = setting.id
              td = setting.value
              td = setting.tags.join(', ')
              td.text-center
                = link_to "Edit", settings_path(:setting_id => setting.id)
                '  | 
                = link_to "Delete", 
                          setting_path(setting.id), 
                          :method => :delete,
                          :confirm => 'Are you sure?',
                          :data => {:confirm => "Are you sure?"}
  div.col-sm-4
    h3 Create/Edit Setting
    = render 'form'
    - unless Rails.env.production?
      h3 Load From YAML
      = form_tag load_settings_path, :multipart => true do
        div.form-group
          = file_field_tag :file
        div.buttons
          = submit_tag "Load", :class => "btn-block btn btn-warning"
    h3 Dump to YAML
    div.text-center
      = link_to "Dump", dump_settings_path, :class => 'btn-block btn btn-warning'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
config_manager-1.0.4 app/views/config_manager/settings/index.html.slim
config_manager-1.0.3 app/views/config_manager/settings/index.html.slim
config_manager-1.0.2 app/views/config_manager/settings/index.html.slim
config_manager-1.0.0 app/views/config_manager/settings/index.html.slim
config_manager-0.0.10 app/views/config_manager/settings/index.html.slim