{# templates/mdl/forms/one-time-authorization.html.twig #}
{% with { message : message ?? '' } %}
<form class="mdl-cell mdl-cell--12-col mdl-grid" id="OneTimeAuthorizationForm" method="post">
<div class="mdl-cell mdl-cell--12-col mdl-color-text--accent">
<strong>{{ message }}</strong>
</div>
{%
include('@mdl/fields/input.html.twig') with {
Wrapper: {'class': '~ mdl-cell mdl-cell--12-col'},
Label: {'class': '~', 'for': 'OneTimeAuthorizationFormEmail', 'text': 'Email'},
Input: {'class': '~', 'id': 'OneTimeAuthorizationFormEmail', 'name': 'email', 'type': 'email', 'value': '', 'required': true, 'autofocus': true},
Error: {'class': '~', 'text': 'valid email required'}
}
%}
<div class="mdl-cell mdl-cell--12-col centered">
<button type="submit" class="mdl-button mdl-js-ripple-effect mdl-js-button mdl-button--raised mdl-button--colored mdl-color--primary">
Send One-Time-Code
</button>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('OneTimeAuthorizationForm') }}" >
</form>
{% endwith %}