Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/views/backend/user/edit.volt

63 lines
1.6 KiB
Text

{% if (user.isActive() === false) %}
<div class="row">
<div class="col-sm-offset-2 col-sm-10">
<p class="badge badge-danger">{{ user.getStatus() }}</p>
</div>
</div>
{% endif %}
<form class="form-horizontal" method="post" action="">
<div class="form-group">
{{ form.renderDecorated('username', [ 'length': 7 ]) }}
{{ form.renderDecorated('id', [ 'length': 2, 'label-length' : 1 ]) }}
</div>
<div class="form-group">
{{ form.renderDecorated('name') }}
</div>
<div class="form-group">
{{ form.renderDecorated('email') }}
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<h4>Password</h4>
</div>
</div>
<div class="form-group">
{{ form.renderDecorated('passwordNew') }}
</div>
<div class="form-group">
{{ form.renderDecorated('passwordConfirm') }}
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<hr />
{{ form.render('Save') }}
{% set actions = [ 'Activate': 'Active', 'Suspend': 'Suspended', 'Delete': 'Deleted' ] %}
<div class="pull-right">
{% for label, status in actions %}
{% if (user.status != status) %}
<a class="button button-{{ status == 'Active' ? 'success' : 'danger' }}"
href="{{ url(['for': 'backend-user-status', 'type': status, 'id': user.getId() ]) }}">
{{ label }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</form>