iknb/admin/components/user/user.template.html
2020-07-08 13:56:33 +02:00

51 lines
3.9 KiB
HTML

<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="toolbar" style="left:0px;">
<button type="button" ng-click="$ctrl.go('/users')" class="btn btn-default">Nazaj</button>
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
</div>
<h1>Nov uporabnik</h1>
<div class="toolbar">
<button type="button" ng-click="$ctrl.addUser()" class="btn btn-success save">Dodaj uporabnika</button>
<img ng-if="dataLoading" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA=="/>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="auth_container">
<div ng-show="$ctrl.error" class="alert alert-danger">{{$ctrl.error}}</div>
<div ng-show="$ctrl.success" class="alert alert-success" role="alert">{{$ctrl.success}}</div>
<form ng-hide="$ctrl.success" name="form" ng-submit="$ctrl.createNewUser()" role="form">
<div class="form-group">
<label for="username">Ime in priimek</label>
<input type="text" name="name" id="name" class="form-control" ng-model="$ctrl.name" required />
<span ng-show="form.name.$dirty && form.name.$error.required" class="help-block">Polno ime je zahtevano</span>
</div>
<div class="form-group">
<label for="username">Uporabniško ime</label>
<input type="text" name="username" id="username" class="form-control" ng-model="$ctrl.username" required />
<span ng-show="form.username.$dirty && form.username.$error.required" class="help-block">Uporabniško ime je zahtevano</span>
</div>
<div class="form-group">
<label for="password">Geslo</label>
<input type="password" name="password" id="password" class="form-control" ng-model="$ctrl.password" required />
<span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">Geslo je zahtevano</span>
</div>
<div class="form-group">
<label for="password_repeat">Ponovite geslo</label>
<input type="password" name="password_repeat" id="password_repeat" class="form-control" ng-model="$ctrl.password_repeat" required />
<span ng-show="form.password_repeat.$dirty && form.password_repeat.$error.required" class="help-block">Geslo je zahtevano</span>
</div>
<div class="form-group">
<label for="is_admin" style="display:inline-block;">Skrbnik</label>
<input type="checkbox" name="is_admin" id="is_admin" class="form-control" style="display: inline-block; width: 34px; margin-left: 10px; bottom: -10px; position: relative;" ng-model="$ctrl.is_admin" required />
</div>
</form>
</div>
</div>
</div>