Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
795 B

5 years ago
  1. {% if respuestas is empty %}
  2. <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }} ">
  3. {% else %}
  4. {% set encontrada = false %}
  5. {% if respuesta[pregunta.alias] is defined %}
  6. {% set encontrada=true %}
  7. <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" value="{{ respuesta[pregunta.alias] }}" {% if pregunta.isRequired %} required {% endif %} >
  8. {% endif %}
  9. {% if not encontrada %}
  10. <input type="hidden" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {% if pregunta.isRequired %} required {% endif %}>
  11. {% endif %}
  12. {% endif %}