This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/settings/account/details.twig

36 lines
2 KiB
Twig
Raw Permalink Normal View History

2017-03-23 15:01:53 +00:00
{% extends '@yuuno/settings/account/master.twig' %}
2016-09-08 21:32:33 +00: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 18:00:10 +00:00
<form enctype="multipart/form-data" method="post" action="javascript:;" onsubmit="updateSettingsConfirm(this, '{{ route('settings.account.details') }}');">
2016-12-09 18:09:33 +00:00
<input type="hidden" name="session" value="{{ session_id() }}">
<div class="profile-field">
<div><h2>E-mail address</h2></div>
2016-11-09 18:32:23 +00:00
<div><input type="text" name="email" placeholder="{{ user.email }}" class="input__text"></div>
</div>
2016-09-08 21:32:33 +00: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 18:32:23 +00: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 21:32:33 +00:00
</div>
{% endif %}
{% if edit_title %}
<div class="profile-field">
<div><h2>Title</h2></div>
2016-11-09 18:32:23 +00: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 21:32:33 +00:00
</div>
{% endif %}
<div class="profile-field">
<div><h2>Password</h2></div>
2016-11-09 18:32:23 +00:00
<div><input type="password" name="password" placeholder="Must be at least decently strong, size doesn't matter" class="input__text"></div>
</div>
2016-12-09 18:09:33 +00:00
<button class="input__button">Save</button>
2016-11-10 22:32:45 +00:00
<button type="reset" class="input__button">Reset</button>
2016-09-08 21:32:33 +00:00
</form>
{% endblock %}