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.

39 lines
3.2 KiB

5 years ago
  1. <div class="form-row {{ pregunta.alias }} {{ pregunta.class }}">
  2. <div class="form-holder">
  3. {% if pregunta.preTitulo is not empty %}
  4. <div class="{{ tarea[0].getProcesosId.alias }}_pretitulo">{{ pregunta.preTitulo|trans({})|raw }}</div>
  5. {% else %}
  6. <div class="{{ tarea[0].getProcesosId.alias }}_pretitulo no-contenido">{{ pregunta.preTitulo|trans({})|raw }}</div>
  7. {% endif %}
  8. <label for="{{ pregunta.alias }}" class="{{ tarea[0].getProcesosId.alias }}_nombre">{{ pregunta.nombre|trans({})|raw }}</label>
  9. {% if pregunta.descripcion is not empty %}
  10. <div class="{{ tarea[0].getProcesosId.alias }}_descripcion">{{ pregunta.descripcion|trans({})|raw }}</div>
  11. {% else %}
  12. <div class="{{ tarea[0].getProcesosId.alias }}_descripcion no-contenido">{{ pregunta.descripcion|trans({})|raw }}</div>
  13. {% endif %}
  14. {% if casoestudio is defined and casoestudio is not empty %}
  15. {% if respuestaca[pregunta.alias] is defined %}
  16. <a class="btn btn-primary btn-sm casoestudiobtn" data-toggle="collapse" data-target="#casoestudio{{ pregunta.id }}">{{ 'Caso de estudio'|trans({}) }}</a>
  17. <div id="casoestudio{{ pregunta.id }}" class="collapse casoestudiodiv">
  18. <pre>{{ respuestaca[pregunta.alias]|raw }}</pre>
  19. </div>
  20. {% endif %}
  21. {% else %}
  22. <a class="btn btn-primary btn-sm casoestudiobtn no-contenido" data-toggle="collapse" data-target="#casoestudio{{ pregunta.id }}"></a>
  23. <div id="casoestudio{{ pregunta.id }}" class="collapse casoestudiodiv">
  24. </div>
  25. {% endif %}
  26. {% if respuestas is empty %}
  27. <input type="text" class="form-control" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %}" {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}>
  28. {% else %}
  29. {% set encontrada = false %}
  30. {% if respuesta[pregunta.alias] is defined %}
  31. {% set encontrada=true %}
  32. <input type="text" class="form-control" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} value="{{ respuesta[pregunta.alias] }}" {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %} {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}>
  33. {% endif %}
  34. {% if not encontrada %}
  35. <input type="text" class="form-control" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} {% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %}" {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}>
  36. {% endif %}
  37. {% endif %}
  38. </div>
  39. </div>