src/Trinity/FormsBundle/Resources/views/elements/email.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'forms' %}
  2. {% extends [':forms_elements:row.html.twig', '@TrinityForms/elements/row.html.twig'] %}
  3. {% block field %}
  4.     {% set getval = app.request.get('field' ~ Question.id) %}
  5.     {% if edit is defined or Question.placeholder is not empty %}
  6.         {% if Form and Form.floatingLabels %}
  7.             <div class="form-floating">
  8.         {% endif %}
  9.     {% endif %}
  10.         <input class="form-control" id="frm-lbl-{{Question.id}}" {% if Question.required and Question.hidden == false %}required="true"{% endif %} name="form[{% if Form is not null %}{{Form.id}}{% endif %}][{% if Question is not null %}{{Question.id}}{% endif %}]" type="email" {% if edit is defined %}disabled="disabled" placeholder="{{Question.placeholder ? (Question.placeholder|raw) : ('E-mailadres veld' | trans)}}"{% elseif Question.placeholder is not empty %}placeholder="{{Question.placeholder|raw}}"{% endif %} value="{{getval is not empty ? getval : '' }}" />
  11.     {% if Form and Form.floatingLabels and not Question.hiddenLabel %}
  12.         <label for="frm-lbl-{{Question.id}}">
  13.         {% if edit is defined %}
  14.             {{(Question.placeholder ? Question.placeholder : ('E-mailadres veld' | trans))}}
  15.         {% elseif Question.placeholder is not empty %}
  16.             {{Question.placeholder|raw}}
  17.         {% endif %}
  18.         </label>
  19.     {% endif %}
  20.     {% if edit is defined or Question.placeholder is not empty %}
  21.         {% if Form and Form.floatingLabels %}
  22.             </div>
  23.         {% endif %}
  24.     {% endif %}
  25. {% endblock %}