overview.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="exercise">
  2. {{ time_control }}
  3. {% if status is not empty %}
  4. <div class="alert alert-warning" role="alert">
  5. {{ status }}
  6. </div>
  7. {% endif %}
  8. {% if data.edit and data.session_id == api_get_session_id %}
  9. <div class="pull-right">
  10. <a class="btn btn-default" title="{{ "Edit"|get_lang }}" href="{{ _p.web_main }}exercise/admin.php?{{ _p.web_cid_query }}&id_session={{ _c.session_id }}&exerciseId={{ data.id }}">
  11. <i class="fa fa-pencil" aria-hidden="true"></i>
  12. </a>
  13. </div>
  14. {% endif %}
  15. <div class="page-header">
  16. <h2>{{ data.title }}</h2>
  17. </div>
  18. <div class="exercise_description">
  19. {{ data.description }}
  20. </div>
  21. {% if count == data.attempts %}
  22. <div class="alert alert-error" role="alert">
  23. {{ "Attempts" |get_lang }} {{ count }} / {{ data.attempts }}
  24. </div>
  25. {% else %}
  26. <div class="alert alert-info" role="alert">
  27. {{ "Attempts" |get_lang }} {{ count }} / {{ data.attempts }}
  28. </div>
  29. {% endif %}
  30. {% if data.url is not empty %}
  31. <div class="exercise-btn text-center">
  32. <a href="{{ data.url }}" class="btn btn-success btn-lg">
  33. {{ label }}
  34. </a>
  35. </div>
  36. {% endif %}
  37. {% if table_result is not empty %}
  38. <div class="table-responsive">
  39. {{ table_result }}
  40. </div>
  41. {% endif %}
  42. </div>