results.tpl 883 B

12345678910111213141516171819202122232425262728293031
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. {% if form %}
  4. <h3>Consultar mis resultados</h3>
  5. <form
  6. action = "{{ url('resultsAction') }}"
  7. method = "post" {{ form_enctype(form) }}>
  8. {{ form_widget(form) }}
  9. </form>
  10. {% else %}
  11. <h3>Resultados de DNI: {{ dni }}</h3>
  12. <table class="data_table">
  13. {% for category in category_list %}
  14. <tr>
  15. <td>
  16. {{ category.title }}
  17. </td>
  18. <td>
  19. {{ category.score }} / {{ category.total }}
  20. {% if add_score[category.category_id] %}
  21. (Modifier {{ add_score[category.category_id] }})
  22. {% endif %}
  23. </td>
  24. <tr>
  25. {% endfor %}
  26. </table>
  27. {% endif %}
  28. {% endblock %}