blob: 09f4e40e33ac29deafcd154bd396e5a00dc6736c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<form id="profile-settings" role="form" action="{{ site.uri.public }}/account/settings/profile" method="post">
<div class="box-header">
<h3 class="box-title"><i class="fa fa-user fa-fw"></i> {{ translate("PROFILE.SETTINGS") }}</h3>
</div>
<div class="box-body">
{% include "forms/csrf.html.twig" %}
{% block settings_profile %}
<label for="input-first-name" class="control-label">{{ translate("NAME") }}</label>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<input type="text" id="input-first-name" class="form-control" name="first_name"
value="{{ current_user.first_name }}"
placeholder="{{ translate("FIRST_NAME") }}" {{ page.visibility }}>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input type="text" id="input-last-name" class="form-control" name="last_name"
value="{{ current_user.last_name }}"
placeholder="{{ translate("LAST_NAME") }}" {{ page.visibility }}>
</div>
</div>
</div>
<div class="form-group">
<label for="input-locale" class="control-label">{{ translate("LOCALE") }}</label>
<select id="input-locale" class="form-control js-select2" name="locale" {{ page.visibility }}>
{% for option, label in locales %}
{% if label is not empty %}
<option value="{{ option }}"
{% if (option == current_user.locale) %}selected{% endif %}>{{ label }}</option>
{% endif %}
{% endfor %}
</select>
<p class="help-block">{{ translate("LOCALE.ACCOUNT") }}.</p>
</div>
{% endblock %}
</div>
<div class="box-footer text-center">
<button type="reset" class="btn btn-default">{{ translate('RESET') }}</button>
<button type="submit" class="btn btn-primary js-submit">{{ translate('SAVE') }}</button>
</div>
</form>
|