templates\forms\signup\_field-templates-list.html.twig line 1

Open in your IDE?
  1. {# choose the form control template #}
  2. {#{{dump(field.displayStatus)}}
  3. {{dump(field.displayStatus!='hide' 
  4.     and 
  5.     (field.displayStatus!='hideIfEmpty'
  6.         or (    
  7.             field.displayStatus=='hideIfEmpty'
  8.             and (
  9.                 userData is defined
  10.                 and userData[0][field.fieldname] is defined 
  11.                 and userData[0][field.fieldname] is not null        
  12.                 )
  13.         )
  14.     )
  15. )}}#}
  16. {% if field.displayStatus!='hide' 
  17.     and 
  18.     (field.displayStatus!='hideIfEmpty'
  19.         or (    
  20.             field.displayStatus=='hideIfEmpty'
  21.             and (
  22.                 userData is defined
  23.                 and userData[0][field.fieldname] is defined 
  24.                 and userData[0][field.fieldname] is not null        
  25.                 )
  26.         )
  27.     )    
  28. %}
  29. {% if field['eligibilityCheckHoldMessage'] != "" %}
  30.     <div id="CheckHold-{{ field['fieldname']}}" class="form-alert js-alert hide">
  31.         <div class="form-alert__text">{{ field.eligibilityCheckHoldMessage|raw}}</div>
  32.         <a href="#" class="form-alert__close js-alert-close" aria-label="close alert">
  33.           <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  34.             <path d="M18.0024 5.98767L5.99731 17.9928" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  35.             <path d="M18.0066 18.0001L5.99146 5.98242" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
  36.           </svg>      
  37.         </a>
  38.     </div>
  39. {% endif %}
  40.     {% if(field.control == 'input') %}
  41.         {% include 'forms/inputs/_text.html.twig' %}
  42.     {% endif %}
  43.     {% if(field.control == 'textarea') %}
  44.         {% include 'forms/inputs/_textarea.html.twig' %}
  45.     {% endif %}
  46.     {% if(field.control == 'checkbox') %}
  47.         {% include 'forms/inputs/_checkbox.html.twig' %}
  48.     {% endif %}
  49.     {% if(field.control == 'select') %}
  50.         {% include 'forms/inputs/_select.html.twig' %}
  51.     {% endif %}
  52.     {% if(field.control == 'multi-select') %}
  53.         {% include 'forms/inputs/_multiselect.html.twig' %}
  54.     {% endif %}
  55.     {% if(field.control == 'radio') %}
  56.         {% include 'forms/inputs/_radio.html.twig' %}
  57.     {% endif %}
  58. {%endif %}