2016-12-09 07:08:20 +01:00
|
|
|
{% extends "./layout/default" %}
|
|
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, user) }}
|
2016-12-09 07:08:20 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
{% block content %}
|
2016-12-15 22:56:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ Form.model(user, {'class' : 'form-horizontal','id' : 'update','url' : route('admin.users.update',user.id) } ) }}
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="id" value="{{ user.id }}"/>
|
|
|
|
|
|
2016-12-09 07:08:20 +01:00
|
|
|
<div class="row">
|
2016-12-15 22:56:31 +01:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
|
|
|
<div class="box box-primary">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
2017-09-26 09:15:21 +02:00
|
|
|
{{ ExpandedForm.text('email',null,{'helpText': trans('firefly.admin_update_email')}) }}
|
2016-12-15 22:56:31 +01:00
|
|
|
{{ ExpandedForm.password('password') }}
|
|
|
|
|
{{ ExpandedForm.password('password_confirmation') }}
|
|
|
|
|
{{ ExpandedForm.checkbox('blocked') }}
|
|
|
|
|
{{ ExpandedForm.select('blocked_code', codes, user.blocked_code) }}
|
2020-03-23 17:54:49 +01:00
|
|
|
{% if user.id != currentUser.id %}
|
|
|
|
|
{{ ExpandedForm.checkbox('is_owner',1,isAdmin) }}
|
|
|
|
|
{% endif %}
|
2016-12-15 22:56:31 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-03-13 20:56:26 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2018-01-12 18:42:48 +01:00
|
|
|
{# panel for options #}
|
2016-12-15 22:56:31 +01:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'options'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
{{ ExpandedForm.optionsList('update','account') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-footer">
|
|
|
|
|
<button type="submit" class="btn pull-right btn-success">
|
|
|
|
|
{{ ('update_user')|_ }}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-12-09 07:08:20 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-03-13 20:56:26 +01:00
|
|
|
</form>
|
2016-12-09 07:08:20 +01:00
|
|
|
{% endblock %}
|