Sha256: 4be0923dee46f53921b09615388f7a32fbdaff7eff813ec4f08f345490a2e493

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

section.clearfix
  div.col.col-sm-8
    h3 Defined Toggles (#{@toggles.count})
    div.table-responsive
      table.toggles.table.table-striped.table-hover.table-condensed
        thead
          tr
            th Name
            th Type
            th Acceptable Values
            th.text-center Actions
        tbody
          - @toggles.each_with_index do |toggle, index|
            tr
              td = toggle.name
              td = toggle.type
              td = toggle.acceptable_values
              td.text-center
                = link_to "Edit", toggles_path(:toggle_name => toggle.name)
                '  | 
                = link_to "Delete", 
                          toggle_path(toggle.name), 
                          :method => :delete,
                          :confirm => 'Are you sure?',
                          :data => {:confirm => "Are you sure?"}

  div.col-sm-4
    h3 Create/Edit Toggle
    = render 'form'
    h3 Load From YAML
    p.text-muted
      small Load toggles from config_manager/toggles.yml
    div.text-center
      = link_to "Load",
                load_default_toggles_path,
                :method => :post,
                :class => 'btn-block btn btn-warning'
    h3 Dump To YAML
    p.text-muted
      small Dump toggles to config_manager/toggles.yml
    div.text-center
      = link_to "Dump",
                dump_toggles_path,
                :method => :post,
                :class => 'btn-block btn btn-warning'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
config_manager-0.0.2 app/views/config_manager/toggles/index.html.slim
config_manager-0.0.1 app/views/config_manager/toggles/index.html.slim