diff options
author | brantje <brantje@gmail.com> | 2016-10-03 19:14:18 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-03 19:14:18 +0300 |
commit | 0a9c0979105aee38cb6344a87841472b981b6328 (patch) | |
tree | 4296d45dae28c117f7484b26da214e7c0cd8c476 /templates/views/partials/forms/share_credential/basics.html | |
parent | 23daf3a3aed8eb771bdb211911936e22ccd18abe (diff) |
Add hasPermission
Diffstat (limited to 'templates/views/partials/forms/share_credential/basics.html')
-rw-r--r-- | templates/views/partials/forms/share_credential/basics.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/templates/views/partials/forms/share_credential/basics.html b/templates/views/partials/forms/share_credential/basics.html index 079748fc..45341085 100644 --- a/templates/views/partials/forms/share_credential/basics.html +++ b/templates/views/partials/forms/share_credential/basics.html @@ -16,12 +16,6 @@ </td> <td> - <select ng-model="selectedAccessLevel"> - <option ng-repeat="lvl in accessLevels" - value="{{lvl.value}}"> - {{lvl.label}} - </option> - </select> <button class="button" ng-click="shareWith(inputSharedWith, selectedAccessLevel)"> + @@ -62,8 +56,11 @@ ng-show="share_settings.credentialSharedWithUserAndGroup.length > 0"> <thead> <tr> - <td>User / group</td> - <td>Access</td> + <td>User</td> + <td>Read</td> + <td>Write</td> + <td>Files</td> + <td>Revisions</td> </tr> </thead> <tr ng-repeat="user in share_settings.credentialSharedWithUserAndGroup"> @@ -71,8 +68,12 @@ <i class="fa fa-user" ng-if="user.type === 'user'"></i> <i class="fa fa-group" ng-if="user.type === 'group'"></i> {{user.userId}} + {{user}} </td> - <td>{{user.accessLevel}}</td> + <td><input type="checkbox" ng-checked="hasPermission(user.acl, 'READ')"> </td> + <td><input type="checkbox"></td> + <td><input type="checkbox"></td> + <td><input type="checkbox"></td> </tr> </table> </div> |