<ul class="todo-list ui-sortable" data-widget="todo-list">
    {% for reminder in reminders %}
        <li class="">
            <label class="big form-check-label">
                <input type="checkbox" name="" value="1"
                       class="form-check-input  checkbox-valid-reminder"
                       data-url="{{ path('easyadmin', { action: 'setReminderDone', entity: 'Reminder', id: reminder.id }) }}">
                <span class="checkmark"></span>
            </label>
            <span class="text">{{ reminder.title }}</span>
            {% if reminder.dateReminder %}
                <small class="badge badge-info">
                    <i class="far fa-clock"></i>
                    {{ reminder.dateReminder|date('d-m-Y') }}
                </small>
            {% endif %}
            <div class="tools">
                <button type="button" class="btn-sm btn-success" data-toggle="modal"
                        data-target="#modal-reminder-{{ reminder.id }}">
                    <i class="fas fa-eye"></i>
                </button>
                <button type="button" class="btn-sm btn-info btn-edit-reminder"
                        data-url="{{ path('easyadmin', { action: 'edit', entity: 'Reminder', id: reminder.id }) }}">
                    <i class="fas fa-edit"></i>
                </button>
            </div>
            {% include '@LcShop/backend/default/modal/show_reminder.twig' %}
        </li>

    {% else %}
        <li>Aucun élement</li>
    {% endfor %}

</ul>

