2016-04-21 12:19:51 +02:00
|
|
|
<div class="well panel-group">
|
|
|
|
<div class="row">
|
2016-06-25 10:15:50 +02:00
|
|
|
<form name="form" class="css-form" novalidate>
|
|
|
|
<div class="col-xs-10 col-md-10">
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="form-group col-md-6">
|
2016-05-16 09:59:36 +02:00
|
|
|
<input type="text" class="form-control" id="addUsername" placeholder="// 'username' | tr //" ng-model="pm.username" name="uUsername" ng-model-options="{ debounce: 250 }" ng-change="vm.reset()" required>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="error-message">
|
2016-06-25 10:15:50 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uUsername.$error">
|
2016-05-14 07:34:54 +02:00
|
|
|
<span ng-message="required">// 'username_is_required' | tr //</span>
|
|
|
|
</div>
|
|
|
|
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
|
|
|
|
</div>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-05-14 07:34:54 +02:00
|
|
|
<label for="roleIdList">// 'role' | tr //:</label>
|
2016-04-22 18:49:52 +02:00
|
|
|
<span ng-repeat="role in vm.roles">
|
|
|
|
<input type="radio" name="role" ng-model="vm.optRole" value="//role.id//"> //role.name//
|
|
|
|
</span>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-2 col-md-2">
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="form-group">
|
2016-06-25 10:15:50 +02:00
|
|
|
<button type="submit" class="btn btn-primary" id="btnSave" ng-click="vm.save(pm)">// 'save' | tr //</button>
|
2016-05-18 11:03:06 +02:00
|
|
|
<button type="button" class="btn btn-default" id="btnCancel" ng-click="vm.cancel(form)">// 'cancel' | tr //</button>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</div>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|
2016-06-25 10:15:50 +02:00
|
|
|
</form>
|
2016-04-21 12:19:51 +02:00
|
|
|
</div>
|