leilukin-tumbleblog/themes/sparrow/forms/user/controls.twig

25 lines
1.3 KiB
Twig
Raw Normal View History

2024-06-20 14:10:42 +00:00
{% extends "layouts" ~ DIR ~ "default.twig" %}
{% block content %}
<div class="user_controls standalone">
<h2>{{ "Controls" | translate }}</h2>
<form action="{{ url('controls') }}" method="post" accept-charset="UTF-8">
<label for="full_name">{{ "Full name" | translate }}</label>
<input type="text" name="full_name" value="{{ posted('full_name', visitor.full_name) | fix(true, true) }}" id="full_name" maxlength="250">
<label for="email">{{ "Email" | translate }}</label>
<input type="email" name="email" value="{{ posted('email', visitor.email) | fix(true, true) }}" id="email" maxlength="128">
<label for="website">{{ "Website" | translate }}</label>
<input type="url" name="website" value="{{ posted('website', visitor.website) | fix(true, true) }}" id="website" maxlength="128">
<label for="new_password1">{{ "New password?" | translate }}</label>
<input type="password" name="new_password1" value="" id="new_password1" maxlength="128">
<label for="new_password2">{{ "Confirm" | translate }}</label>
<input type="password" name="new_password2" value="" id="new_password2" maxlength="128">
<input type="hidden" name="hash" value="{{ authenticate() }}" id="hash">
{{ trigger.call("user_controls") }}
<div class="doaction">
<button name="submit" type="submit" id="submit">{{ "Update" | translate }}</button>
</div>
</form>
</div>
{% endblock %}