2017-03-23 16:01:53 +01:00
{% extends '@yuuno/settings/account/master.twig' %}
2016-09-08 23:32:33 +02:00
{% set mode = 'Details' %}
{% block description %}
<p>Alter the details of your account, leave fields blank to leave them unchanged.</p>
{% endblock %}
{% block settingsContent %}
2016-09-22 20:00:10 +02:00
<form enctype="multipart/form-data" method="post" action="javascript:;" onsubmit="updateSettingsConfirm(this, ' {{ route ( 'settings.account.details' ) }} ');">
2016-12-09 19:09:33 +01:00
<input type="hidden" name="session" value=" {{ session_id ( ) }} ">
2016-11-01 22:14:02 +01:00
<div class="profile-field">
<div><h2>E-mail address</h2></div>
2016-11-09 19:32:23 +01:00
<div><input type="text" name="email" placeholder=" {{ user .email }} " class="input__text"></div>
2016-11-01 22:14:02 +01:00
</div>
2016-09-08 23:32:33 +02:00
{% if edit_usern %}
<div class="profile-field">
<div><h2>Username {% if last_name_change %} (last change was <time class="time-ago" datetime=" {{ last_name_change | date ( 'r' ) }} "> {{ last_name_change | date ( config ( 'general.date_format' ) ) }} </time>) {% endif %} </h2></div>
2016-11-09 19:32:23 +01:00
<div><input type="text" name="username" {% if username_allow %} placeholder="At least {{ config ( 'user.name_min' ) }} and at most {{ config ( 'user.name_max' ) }} characters!" {% else %} disabled placeholder="You can't change your name right now!" {% endif %} class="input__text {% if username_allow %} input__text--disabled {% endif %} "></div>
2016-09-08 23:32:33 +02:00
</div>
{% endif %}
{% if edit_title %}
<div class="profile-field">
<div><h2>Title</h2></div>
2016-11-09 19:32:23 +01:00
<div><input type="text" name="title" placeholder="Max 64 characters, leaving this empty will actually reset it" class="input__text" value=" {{ user .title }} "></div>
2016-09-08 23:32:33 +02:00
</div>
{% endif %}
2016-11-01 22:14:02 +01:00
<div class="profile-field">
<div><h2>Password</h2></div>
2016-11-09 19:32:23 +01:00
<div><input type="password" name="password" placeholder="Must be at least decently strong, size doesn't matter" class="input__text"></div>
2016-11-01 22:14:02 +01:00
</div>
2016-12-09 19:09:33 +01:00
<button class="input__button">Save</button>
2016-11-10 23:32:45 +01:00
<button type="reset" class="input__button">Reset</button>
2016-09-08 23:32:33 +02:00
</form>
{% endblock %}