prevent edit external user role name

stable
Juanfran 2015-03-10 09:11:01 +01:00 committed by David Barragán Merino
parent fe40b0bcd6
commit 64481effbc
1 changed files with 21 additions and 16 deletions

View File

@ -13,6 +13,7 @@ div.wrapper.roles(ng-controller="RolesController as ctrl",
span Delete span Delete
div(ng-if="!role.external_user")
div(tg-edit-role) div(tg-edit-role)
.edit-role .edit-role
input(type="text", value="{{ role.name }}") input(type="text", value="{{ role.name }}")
@ -24,7 +25,7 @@ div.wrapper.roles(ng-controller="RolesController as ctrl",
div.any-computable-role(ng-hide="anyComputableRole") Be careful, no role in your project will be able to estimate the point value for user stories div.any-computable-role(ng-hide="anyComputableRole") Be careful, no role in your project will be able to estimate the point value for user stories
div.general-category(ng-if="!role.external_user") div.general-category
| When enabled, members assigned to this role will be able to estimate the point value for user stories | When enabled, members assigned to this role will be able to estimate the point value for user stories
div.check div.check
input(type="checkbox", ng-model="role.computable", ng-change="ctrl.setComputable()") input(type="checkbox", ng-model="role.computable", ng-change="ctrl.setComputable()")
@ -32,4 +33,8 @@ div.wrapper.roles(ng-controller="RolesController as ctrl",
span.check-text.check-yes Yes span.check-text.check-yes Yes
span.check-text.check-no No span.check-text.check-no No
div(ng-if="role.external_user")
p.total
span.role-name {{ role.name }}
div(tg-role-permissions, ng-model="role") div(tg-role-permissions, ng-model="role")