pending.tpl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="media">
  2. <div class="media-left">
  3. <a href="#">
  4. <img class="media-object" src="{{ user_avatar }}" alt="{{ user.completeName }}">
  5. </a>
  6. </div>
  7. <div class="media-body">
  8. <h3 class="media-heading">{{ user.completeName }}</h3>
  9. <p>{{ user.username }}</p>
  10. </div>
  11. </div>
  12. <br>
  13. {% for survey in surveys %}
  14. <div class="panel panel-default">
  15. <div class="panel-body">
  16. <div>
  17. <a href="{{ survey.link }}">
  18. {{ survey.title }}
  19. </a>
  20. </div>
  21. <ul class="list-inline">
  22. {% if survey.course %}
  23. <li>
  24. <span class="label" style="background-color: {{ survey.session ? '#00496D' : '#458B00' }}">
  25. {{ survey.course.title }}
  26. {% if survey.session %}
  27. ({{ survey.session.name }})
  28. {% endif %}
  29. </span>
  30. </li>
  31. {% endif %}
  32. <li>
  33. {{ 'FromDateXToDateY'|get_lang|format(survey.avail_from|api_convert_and_format_date(2), survey.avail_till|api_convert_and_format_date(2)) }}
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. {% else %}
  39. <div class="alert alert-info">
  40. {{ 'NoPendingSurveys'|get_lang }}
  41. </div>
  42. {% endfor %}