2014-01-21 19:18:20 +00:00
< div class = "prototype-manager-element" >
< div class = "quay-spinner" ng-show = "loading" > < / div >
< div class = "container" ng-show = "!loading" >
< div class = "alert alert-info" >
2014-01-21 22:45:54 +00:00
Default permissions provide a means of specifying < span class = "context-tooltip" title = "By default, all repositories have the creating user added as an 'Admin'" bs-tooltip = "tooltip.title" > additional< / span > permissions that should be granted automatically to a repository.
2014-01-21 19:18:20 +00:00
< / div >
< div class = "side-controls" >
2014-01-21 20:09:47 +00:00
< button class = "btn btn-success" ng-click = "showAddDialog()" >
2014-01-21 19:18:20 +00:00
< i class = "fa fa-plus" > < / i >
New Default Permission
< / button >
< / div >
< table class = "table" >
< thead >
< th >
2014-01-21 23:34:54 +00:00
< span class = "context-tooltip"
title="The user or robot that is creating a repository. If '(Organization Default)', then any repository created in this organization will be granted the permission."
2014-01-21 19:18:20 +00:00
bs-tooltip="tooltip.title" data-container="body">
2014-01-21 23:34:54 +00:00
Repository Creator
2014-01-21 19:18:20 +00:00
< / span >
< / th >
< th >
2014-01-21 20:11:51 +00:00
< span class = "context-tooltip" title = "The user, robot or team that is being granted the permission"
2014-01-21 19:18:20 +00:00
bs-tooltip="tooltip.title" data-container="body">
2014-01-21 23:48:41 +00:00
Applies To User/Robot/Team
2014-01-21 19:18:20 +00:00
< / span >
< / th >
< th > Permission< / th >
< th style = "width: 150px" > < / th >
< / thead >
2014-01-21 23:34:54 +00:00
< tr ng-repeat = "prototype in prototypes | orderBy:comparePrototypes" >
< td >
< span class = "entity-reference block-reference" entity = "prototype.activating_user"
namespace="organization.name" ng-show="prototype.activating_user">< / span >
< span ng-show = "!prototype.activating_user" style = "font-variant: small-caps; font-weight: bold; font-size: 16px;" >
(Organization Default)
< / span >
2014-01-21 19:18:20 +00:00
< / td >
< td >
2014-01-21 21:23:00 +00:00
< span class = "entity-reference block-reference" entity = "prototype.delegate" namespace = "organization.name" > < / span >
2014-01-21 19:18:20 +00:00
< / td >
< td >
< span class = "role-group" current-role = "prototype.role" role-changed = "setRole(role, prototype)" roles = "roles" > < / span >
< / td >
< td >
< span class = "delete-ui" tabindex = "0" >
< span class = "delete-ui-button" ng-click = "deletePrototype(prototype)" > < button class = "btn btn-danger" > Delete< / button > < / span >
< i class = "fa fa-times" bs-tooltip = "tooltip.title" data-placement = "right" title = "Delete Permission" > < / i >
< / span >
< / td >
< / tr >
< / table >
< / div >
2014-01-21 20:09:47 +00:00
<!-- Modal message dialog -->
< div class = "modal fade" id = "addPermissionDialogModal" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
< h4 class = "modal-title" > Create Default Permission< / h4 >
< / div >
< div class = "modal-body" >
2014-01-21 23:34:54 +00:00
< div class = "super-option" >
< table style = "width: 100%;" >
< tr >
< td > Applies when a repository is created by:< / td >
< td >
< div class = "btn-group btn-group-sm" >
< button type = "button" class = "btn btn-default"
ng-class="newForWholeOrg ? 'active btn-info' : ''" ng-click="setNewForWholeOrg(true)">Anyone< / button >
< button type = "button" class = "btn btn-default"
ng-class="newForWholeOrg ? '' : 'active btn-info'" ng-click="setNewForWholeOrg(false)">A specific user< / button >
< / div >
< / td >
< / tr >
< / table >
< / div >
2014-01-21 20:09:47 +00:00
< table >
2014-01-21 23:34:54 +00:00
< tr ng-show = "!newForWholeOrg" >
2014-01-21 23:48:41 +00:00
< td > Repository Creator:< / td >
2014-01-21 20:09:47 +00:00
< td >
2014-01-21 23:48:41 +00:00
< span class = "entity-search" namespace = "organization.name" input-title = "'User/Robot'"
2014-01-21 20:09:47 +00:00
is-organization="true" include-teams="false" current-entity="activatingForNew" is-persistent="true"
clear-now="clearCounter">
< / span >
< / td >
< / tr >
< tr >
2014-01-21 23:48:41 +00:00
< td > Permission:< / td >
2014-01-21 20:09:47 +00:00
< td >
2014-01-21 23:48:41 +00:00
< span class = "role-group" current-role = "newRole" role-changed = "setRoleForNew(role)" roles = "roles" > < / span >
2014-01-21 20:09:47 +00:00
< / td >
< / tr >
< tr >
2014-01-21 23:48:41 +00:00
< td > Applied To:< / td >
2014-01-21 20:09:47 +00:00
< td >
2014-01-21 23:48:41 +00:00
< span class = "entity-search" namespace = "organization.name" input-title = "'User/Robot/Team'"
is-organization="true" include-teams="true" current-entity="delegateForNew" is-persistent="true"
clear-now="clearCounter">
< / span >
2014-01-21 20:09:47 +00:00
< / td >
< / tr >
< / table >
< / div >
< div class = "modal-footer" >
2014-01-21 23:34:54 +00:00
< button ype = "button" class = "btn btn-primary" ng-disabled = "!(newForWholeOrg || activatingForNew) || !delegateForNew" ng-click = "createPrototype()" >
2014-01-21 20:09:47 +00:00
Create Permission
< / button >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close< / button >
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2014-01-21 19:18:20 +00:00
< / div >