templates/mdl/forms/one-time-authorization.html.twig line 1

Open in your IDE?
  1. {# templates/mdl/forms/one-time-authorization.html.twig #}
  2. {% with { message : message ?? '' } %}
  3. <form class="mdl-cell mdl-cell--12-col mdl-grid" id="OneTimeAuthorizationForm" method="post">
  4.     <div class="mdl-cell mdl-cell--12-col mdl-color-text--accent">
  5.         <strong>{{ message }}</strong>
  6.     </div>
  7. {% 
  8.     include('@mdl/fields/input.html.twig') with {
  9.         Wrapper: {'class': '~ mdl-cell mdl-cell--12-col'},
  10.         Label: {'class': '~', 'for': 'OneTimeAuthorizationFormEmail', 'text': 'Email'},
  11.         Input: {'class': '~', 'id': 'OneTimeAuthorizationFormEmail', 'name': 'email', 'type': 'email', 'value': '', 'required': true, 'autofocus': true},
  12.         Error: {'class': '~', 'text': 'valid email required'}
  13.     } 
  14. %}
  15.     <div class="mdl-cell mdl-cell--12-col centered">
  16.         <button type="submit" class="mdl-button mdl-js-ripple-effect mdl-js-button mdl-button--raised mdl-button--colored mdl-color--primary">
  17.             Send One-Time-Code
  18.         </button>
  19.     </div>
  20.     <input type="hidden" name="_csrf_token" value="{{ csrf_token('OneTimeAuthorizationForm') }}" >
  21. </form>
  22. {% endwith %}