Browse Source

[security] Add a role button on privileges section

Enrico Berti 11 years ago
parent
commit
ba4c0521d0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/security/src/security/templates/hive.mako

+ 1 - 0
apps/security/src/security/templates/hive.mako

@@ -172,6 +172,7 @@ ${ layout.menubar(section='hive') }
             </div>
             <div class="span6 acl-panel">
               <div class="acl-panel-content">
+                <a data-bind="visible: $root.assist.privileges().length > 0, click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }" class="btn pointer pull-right"><i class="fa fa-plus-circle"></i> ${ _('Add role') }</a>
                 <h4 style="margin-top: 4px">${ _('Privileges') }</h4>
                 <div data-bind="visible: $root.assist.privileges().length == 0"><em class="muted">${ _('No privileges found for the selected item.')} <a class="pointer" data-bind="click: function(){ $root.showCreateRole(true); $('#createRoleModal').modal('show'); }">${ _('Click here to add a new role.') }</a> </em></div>
                 <div data-bind="template: { name: 'role', foreach: $root.assist.roles }"></div>