templates/web/customer/form_field/form_field.twig line 1

Open in your IDE?
  1. {##
  2.  # ____file_title____
  3.  #}
  4. {% if not this.getParam('fieldOnly') %}
  5.   {% include this.getFieldLabelTemplate() %}
  6. {% endif %}
  7. <div class="{{ this.getValueContainerClass() }}">
  8.   {% include this.getDir() ~ '/' ~ this.getFieldTemplate() %}
  9.   {% if this.hasHelp() %}
  10.     {{ widget('\\XLite\\View\\Tooltip', text=t(this.getParam('help')), helpWidget=this.getParam('helpWidget'), isImageTag='true', className='help-icon') }}
  11.   {% endif %}
  12.   {% if this.getParam('comment') %}
  13.     <div class="form-field-comment {{ this.getFieldId() }}-comment">{{ t(this.getParam('comment')) }}</div>
  14.   {% endif %}
  15.   {% if this.getFormFieldJSData() %}{{ this.displayCommentedData(this.getFormFieldJSData()) }}{% endif %}
  16.   {% if this.getInlineJSCode() %}
  17.     <script>{{ this.getInlineJSCode() }}</script>
  18.   {% endif %}
  19. </div>
  20. {% if not this.getParam('fieldOnly') %}
  21.   <div class="clear"></div>
  22. {% endif %}