1 <md-dialog class="userProfile-dialog" aria-label="Clone UserProfile">
2 <form name="userProfileForm" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="STAFF.NAME">Name</label>
45 ng-model="vm.userProfile.name"
48 ng-disabled="!vm.newUserProfile"
52 ng-messages="userProfileForm['name'].$error"
53 ng-show="userProfileForm['name'].$touched"
56 <div ng-message="required">
57 <span translate="STAFF.ERRORS.NAME_REQUIRED"
58 >Name field is required</span
63 <md-input-container class="md-block">
64 <label translate="STAFF.DESCRIPTION">Description</label>
68 ng-model="vm.userProfile.description"
72 ng-messages="userProfileForm['description'].$error"
73 ng-show="userProfileForm['description'].$touched"
76 <div ng-message="required">
77 <span translate="STAFF.ERRORS.DESCRIPTION_REQUIRED"
78 >Description field is required</span
83 <md-input-container class="md-block">
84 <label translate="STAFF.CRUDPERMISSIONS">CrudPermissions</label>
86 name="crudPermissions"
87 ng-model="vm.userProfile.crudPermissions"
91 <md-option ng-value="'r'" disabled>
92 {{ 'STAFF.READ_PERMISSION' | translate }}
95 <md-option ng-value="'e'">
96 {{ 'STAFF.EDIT_PERMISSION' | translate }}
99 <md-option ng-value="'d'">
100 {{ 'STAFF.DELETE_PERMISSION' | translate }}
104 ng-messages="userProfileForm['crudPermissions'].$error"
105 ng-show="userProfileForm['crudPermissions'].$touched"
108 <div ng-message="required">
109 <span translate="STAFF.ERRORS.CRUDPERMISSIONS_REQUIRED"
110 >CrudPermissions field is required</span
114 </md-input-container>
116 <div class="error-list">
118 ng-repeat="error in vm.errors"
121 layout-align="space-between center"
124 <span class="message">{{error.message}}</span>
125 <span class="type">({{error.type}})</span>
127 <md-button class="md-icon-button">
129 md-font-icon="icon-alert-box"
130 aria-label="alert error"
138 <md-dialog-actions layout="row" layout-align="space-between center">
141 ng-click="vm.cloneUserProfile()"
142 class="send-button md-accent md-raised"
143 ng-disabled="userProfileForm.$invalid"
145 translate="STAFF.CLONE_USERPROFILE"
146 translate-attr-aria-label="STAFF.CLONE_USERPROFILE"