.page-header
  %h2
    .icon-eye-open
    = 'Dynamic configuration'

%h4=$filename.(fileExists($filename)?" (found)":" (NOT found)")

%form(method="POST")
  %table.table.table-condensed
    %thead
      %th='Configuration'
      %th='Current status'
      %th='Change status'
    %tbody
      -foreach($dynconfig as $name => $status)
        %tr
          %td=$name
          %td
            -if($status)
              %font(color="green")='ENABLED'
            -else
              %font(color="red")='DISABLED'
          %td
            %select(name="#{$name}")
              -if($status)
                %option(value="0")='DISABLED'
                %option(value="1" selected="selected")='ENABLED'
              -else
                %option(value="0" selected="selected")='DISABLED'
                %option(value="1")='ENABLED'
  %input(type="submit" name="SET" value="SET")
  
