block.html.twig 4.5KB

3 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {% if reminders %}
  2. <div class="col-sm-12">
  3. <div id="reminders" class="card card-outline card-danger">
  4. <ul class="todo-list">
  5. {% for reminder in reminders %}
  6. <li>
  7. <label class="big form-check-label">
  8. <input type="checkbox" name="" value="1"
  9. class="form-check-input checkbox-reminder"
  10. data-url="{{ path('sov_admin_reminder_done') }}" data-id="{{ reminder.id }}"/>
  11. <span class="checkmark"></span>
  12. </label>
  13. <div class="text">
  14. {% if reminder.dateReminder %}
  15. <small class="badge badge-info badge-date">
  16. <i class="far fa-clock"></i>
  17. {{ reminder.dateReminder|date('d/m/Y') }}
  18. </small>
  19. {% endif %}
  20. {{ reminder.title }}
  21. </div>
  22. <div class="tools">
  23. <a href="#" class="btn-sm btn-success" data-toggle="modal"
  24. data-target="#modal-reminder-{{ reminder.id }}">
  25. <i class="fas fa-eye"></i>
  26. </a>&nbsp;
  27. <a href="{{ path(sov_parameter('app.reminder.route_render_modal')) }}"
  28. class="btn-sm btn-info btn-reminder" data-id="{{ reminder.id }}">
  29. <i class="fas fa-edit"></i>
  30. </a>
  31. </div>
  32. {% embed '@LcSov/adminlte/embed/modal.twig' %}
  33. {% block id %}modal-reminder-{{ reminder.id }}{% endblock %}
  34. {% block title %}
  35. Pense-bête #{{ reminder.id }}
  36. {% endblock %}
  37. {% block body %}
  38. <div class="row">
  39. <div class="col-1 align-center">
  40. <i class="fa fa-thumbtack"></i>
  41. </div>
  42. <div class="col-11">
  43. <h5><strong>{{ reminder.title }}</strong></h5>
  44. </div>
  45. {% if reminder.dateReminder %}
  46. <div class="col-1 align-center">
  47. <i class="fa fa-calendar"></i>
  48. </div>
  49. <div class="col-11">
  50. <p>{{ reminder.dateReminder|date('d/m/Y') }}</p>
  51. </div>
  52. {% endif %}
  53. {% if reminder.description %}
  54. <div class="col-1 align-center">
  55. <i class="fa fa-align-left"></i>
  56. </div>
  57. <div class="col-11">
  58. <p>{{ reminder.description|nl2br }}</p>
  59. </div>
  60. {% endif %}
  61. {# {% if reminder.relatedPage %}
  62. <div class="col-1 align-center">
  63. <i class="fa fa-link"></i>
  64. </div>
  65. <div class="col-11">
  66. <a href="{{ path('easyadmin', {"action" : reminder.entityAction, 'entity' : reminder.entityName, 'id': reminder.entityId }) }}">{{ reminder.relatedPage }}</a>
  67. </div>
  68. {% endif %} #}
  69. </div>
  70. {% endblock %}
  71. {% block footer %}
  72. <button type="button" class="btn btn-default float-right" data-dismiss="modal">Fermer
  73. </button>
  74. {% endblock %}
  75. {% endembed %}
  76. </li>
  77. {% endfor %}
  78. </ul>
  79. </div>
  80. </div>
  81. {% endif %}