mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +01:00
30 lines
1.6 KiB
HTML
30 lines
1.6 KiB
HTML
<div class="well panel-group well-custom" style="margin: 0;">
|
|
<div class="row">
|
|
<div class="pull-right clearfix"><a href="javascript:void(0);" ng-click="vm.close()"><span class="glyphicon glyphicon-remove-circle"></span></a></div>
|
|
<form name="form" class="css-form" novalidate>
|
|
<div class="col-xs-10 col-md-10">
|
|
<div class="form-group col-md-6">
|
|
<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>
|
|
<div class="error-message">
|
|
<div ng-messages="form.$submitted && form.uUsername.$error">
|
|
<span ng-message="required">// 'username_is_required' | tr //</span>
|
|
</div>
|
|
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="roleIdList">// 'role' | tr //:</label>
|
|
<span ng-repeat="role in vm.roles">
|
|
<input type="radio" name="role" ng-model="vm.optRole" value="//role.id//"> //role.name//
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-2 col-md-2">
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary" id="btnSave" ng-click="vm.save(pm)">// 'save' | tr //</button>
|
|
<button type="button" class="btn btn-default" id="btnCancel" ng-click="vm.cancel(form)">// 'cancel' | tr //</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div> |