{% extends 'layouts/app.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('schedule.import.title') }}{% endblock %} {% block content %}

{% block content_title %}{{ block('title') }}{% endblock %} {% if is_index|default(false) %} {{ m.button(m.icon('plus-lg'), url('/admin/schedule/edit'), 'secondary') }} {% endif %}

{% include 'layouts/parts/messages.twig' %}
{% block row_content %}

{{ __('schedule.import.text') }}

{% for schedule in schedules %} {% endfor %}
{{ __('schedule.name') }} {{ __('schedule.url') }}
{{ schedule.name }} {{ schedule.url }}
{{ csrf() }}
{{ m.button(m.icon('box-arrow-in-down'), url('/admin/schedule/load/' ~ schedule.id), 'secondary', 'sm', __('form.import')) }} {{ m.button(m.icon('pencil'), url('/admin/schedule/edit/' ~ schedule.id), 'secondary', 'sm', __('form.edit')) }} {{ f.delete(null, { 'title': __('form.delete'), 'confirm_button_text': __('form.delete'), 'confirm_title': __('schedule.delete.title', [schedule.shifts|length]), 'size': 'sm' }) }}
{% endblock %}
{% endblock %}