51 lines
2.3 KiB
HTML
51 lines
2.3 KiB
HTML
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Редактирование пользователя</h5>
|
|
</div>
|
|
<div class="modal-body p-lg">
|
|
<form role="form" class="ng-pristine ng-valid container">
|
|
<div class="form-group row">
|
|
<div class="col-sm-12"><input class="form-control" id="current-login" placeholder="Логин" type="text" ng-model="currentUser.login"></div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<div class="col-sm-12"><input class="form-control" id="current-name" placeholder="Имя" type="text" ng-model="currentUser.name"></div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<div class="col-sm-12"><input class="form-control" id="current-password" placeholder="Пароль" type="password" ng-model="currentUser.password"></div>
|
|
</div>
|
|
</form>
|
|
|
|
<hr />
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered table-hover">
|
|
<thead>
|
|
<th>Право</th>
|
|
<th>Статус</th>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="right in currentUser.rights">
|
|
<td>{{ right.name }}</td>
|
|
<td style="width: 90px">
|
|
<label class="ui-switch ui-switch-md m-t-xs">
|
|
<input type="checkbox" ng-model="right.is_active" ng-change="onRight(right.code)">
|
|
<i></i>
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn danger p-x-md pull-left" data-toggle="modal" data-target="#edit-user-confirm-delete"><i class="material-icons"></i></button>
|
|
|
|
<button type="button" class="btn dark-white p-x-md" data-dismiss="modal">Отмена</button>
|
|
<button type="button" class="btn success p-x-md" ng-click="save()">Сохранить</button>
|
|
</div>
|
|
</div>
|
|
</div> |