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.

71 lines
5.5 KiB

5 years ago
5 years ago
5 years ago
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 and respuestaca[pregunta.alias] is not empty %}
  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 no-contenido">
  24. </div>
  25. {% endif %}
  26. {% if app.user.getType == 'trainer' %}
  27. <div><label>{{ 'Green Entrepreneur Answer'|trans({}) }}</label>
  28. {% if respuestas is empty %}
  29. <pre>{{ 'Not available'|trans({}) }}</pre>
  30. {% else %}
  31. {% set encontrada = false %}
  32. {% if respuesta[pregunta.alias] is defined %}
  33. {% set encontrada=true %}
  34. <pre>{{ respuesta[pregunta.alias] }}</pre>
  35. {% endif %}
  36. {% if not encontrada %}
  37. <pre>{{ 'Not available'|trans({}) }}</pre>
  38. {% endif %}
  39. {% endif %}
  40. </div>
  41. {% if pregunta.isRevisable %}
  42. <div>
  43. <label for="review-{{ pregunta.alias }}">{{ 'Supervisor Review Mark'|trans({}) }}</label>
  44. <input type="checkbox" class="form-control icheckbox_minimal" data-sonata-icheck="false" id="review-{{ pregunta.alias }}" name="review-{{ pregunta.alias }}" {% if reviewed[pregunta.alias] is defined and reviewed[pregunta.alias] == true %} checked {% endif%} %}></input>
  45. </div>
  46. <div>
  47. <label for="comment-{{ pregunta.alias }}">{{ 'Supervisor Comment'|trans({}) }}</label>
  48. <textarea class="form-control" id="comment-{{ pregunta.alias }}" name="comment-{{ pregunta.alias }}" rows="10"> {% if comentarios is defined and comentarios[pregunta.alias] is defined and comentarios[pregunta.alias].comentario is defined and comentarios[pregunta.alias].comentario is not empty %}{{ comentarios[pregunta.alias].comentario|raw}}{% endif %}</textarea>
  49. </div>
  50. {% endif %}
  51. {% endif %}
  52. {% if app.user.getType == 'green_entrepreneur' %}
  53. {% if respuestas is empty %}
  54. <textarea class="form-control" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} rows="10" {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}{% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %}></textarea>
  55. {% else %}
  56. {% set encontrada = false %}
  57. {% if respuesta[pregunta.alias] is defined %}
  58. {% set encontrada=true %}
  59. <textarea class="form-control" id="{{pregunta.alias }}" name="{{pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} rows="10" {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}{% if not pregunta.editable and 'caso_estudio' not in app.user.username and 'caso_estudio' not in app.user.name %} readonly {% endif %}>{{ respuesta[pregunta.alias] }}</textarea>
  60. {% if pregunta.isRevisable and reviewed[pregunta.alias] and comentarios[pregunta.alias].comentario is defined and comentarios[pregunta.alias].comentario is not empty%}
  61. <div><label>{{ 'Supervisor Comment'|trans({}) }}</label>
  62. <pre>{{ comentarios[pregunta.alias].comentario|raw }}</pre>
  63. </div>
  64. {% endif %}
  65. {% endif %}
  66. {% if not encontrada %}
  67. <textarea class="form-control" id="{{ pregunta.alias }}" name="{{ pregunta.alias }}" placeholder="{{ pregunta.placeholder|trans({}) }}" {{ pregunta.TipoPreguntaOptions|raw }} rows="10" {% if pregunta.isRequired %} parsley-minlength="3" parsley-required="true" required {% endif %}{% if not pregunta.editable and 'caso_estudio' not in app.user.username %} readonly {% endif %}></textarea>
  68. {% endif %}
  69. {% endif %}
  70. {% endif %}
  71. </div>
  72. </div>