[yaml] tempalte cambio de titulo

Viewer

copydownloadembedprintName: tempalte cambio de titulo
  1. webform_title:
  2.   '#type': computed_twig
  3.   '#title': Título
  4.   '#title_display': invisible
  5.   '#template': |-
  6.     {% set currentWizardPage = webform_token('[webform_submission:current-page]', webform_submission, [], options) %}
  7.  
  8.     {% if currentWizardPage == 'lead' %}
  9.       <section class="header-title">
  10.         <h2>Selecciona la donación que deseas hacer:</h2>
  11.       </section>
  12.     {% elseif currentWizardPage == 'datos_contacto' or currentWizardPage == 'datos_transaccionales' %}
  13.       {% set donation_type = data.tipo_donacion == "recurrente" ? "mensual" : "única" %}
  14.       {% set donation_value = data.tipo_donacion == 'unica' ? webform_debug(data.valor_donacion_unica) : webform_debug(data.valor_donacion) %}
  15.       <section class="header-title-second-step">
  16.         <h2>Recuerda que estas haciendo una donación {{ donation_type }} por ${{ donation_value | number_format(0, ',', '.') }}.</h2>
  17.       </section>
  18.     {% endif %}

Editor

You can edit this paste and save as new:


File Description
  • tempalte cambio de titulo
  • Paste Code
  • 19 Apr-2024
  • 950 Bytes
You can Share it: