.sk-modal-background(ng-click='ctrl.cancel()')
#privileges-modal.sk-modal-content
  .sn-component
    .sk-panel
      .sk-panel-header
        .sk-panel-header-title Manage Privileges
        a.sk-a.close-button.info(ng-click='ctrl.cancel()') Done
      .sk-panel-content
        .sk-panel-section
          table.sk-table
            thead
              tr
                th
                th(ng-repeat='cred in ctrl.availableCredentials')
                  .priv-header
                    strong {{ctrl.credentialDisplayInfo[cred].label}}
                    .sk-p.font-small(
                      ng-show='!ctrl.credentialDisplayInfo[cred].availability', 
                      style='margin-top: 2px'
                      ) Not Configured
            tbody
              tr(ng-repeat='action in ctrl.availableActions')
                td
                  .sk-p {{ctrl.displayInfoForAction(action)}}
                th(ng-repeat='credential in ctrl.availableCredentials')
                  input(
                    ng-checked='ctrl.isCredentialRequiredForAction(action, credential)', 
                    ng-click='ctrl.checkboxValueChanged(action, credential)', 
                    ng-disabled='!ctrl.credentialDisplayInfo[credential].availability', 
                    type='checkbox'
                    )
        .sk-panel-section(ng-if='ctrl.sessionExpirey && !ctrl.sessionExpired')
          .sk-p.sk-panel-row 
            | You will not be asked to authenticate until {{ctrl.sessionExpirey}}.
          a.sk-a.sk-panel-row.info(ng-click='ctrl.clearSession()') Clear Session
      .sk-panel-footer
        .sk-h2.sk-bold About Privileges
        .sk-panel-section.no-bottom-pad
          .sk-panel-row
            .text-content
              .sk-p
                | Privileges represent interface level authentication for accessing 
                | certain items and features. Note that when your application is unlocked,
                | your data exists in temporary memory in an unencrypted state.
                | Privileges are meant to protect against unwanted access in the event of
                | an unlocked application, but do not affect data encryption state.
              p.sk-p
                | Privileges sync across your other devices; however, note that if you 
                | require a "Local Passcode" privilege, and another device does not have 
                | a local passcode set up, the local passcode requirement will be ignored 
                | on that device.
