Privileges modal

This commit is contained in:
Mo Bitar
2018-11-09 13:49:49 -06:00
parent 29c9d8f36a
commit 0410391fc5
7 changed files with 225 additions and 36 deletions

View File

@@ -85,7 +85,10 @@
.panel-row
%a.panel-row.condensed{"ng-click" => "openPasswordWizard('change-pw')"} Change Password
%a.panel-row.condensed{"ng-click" => "openPasswordWizard('change-pw')"}
Change Password
%a.panel-row.condensed{"ng-click" => "openPrivilegesModal('')"}
Manage Privileges
%a.panel-row.justify-left.condensed.success{"ng-if" => "securityUpdateAvailable", "ng-click" => "openPasswordWizard('upgrade-security')"}
.inline.circle.small.success.mr-8
.inline Security Update Available

View File

@@ -0,0 +1,25 @@
.background{"ng-click" => "cancel()"}
.content#privileges-modal
.sn-component
.panel
.header
%h1.title Manage Privileges
%a.close-button.info{"ng-click" => "cancel()"} Cancel
.content
.panel-section
%table
%thead
%tr
%th
%th{"ng-repeat" => "cred in availableCredentials"}
{{cred}}
%tbody
%tr{"ng-repeat" => "action in availableActions"}
%td
%p {{metadata[action].displayInfo.label}}
%th{"ng-repeat" => "cred in availableCredentials"}
%input{"type" => "checkbox", "ng-model" => "metadata[action]['credentialValues'][cred]", "ng-change" => "checkboxValueChanged(action)"}
.footer
.button.info.big.block.bold{"ng-click" => "submit()"} Save