{% extends 'admin/schedule/index.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('schedule.import.load.title') }}{% endblock %} {% block content_title %} {{ m.button(m.icon('chevron-left'), url('/admin/schedule'), {'size': 'sm', 'title': __('general.back')}) }} {{ block('title') }} {% endblock %} {% block row_content %}
{{ csrf() }}

{{ __('schedule.import.load.info', [schedule.conference.title, schedule.version]) }}

{{ __('schedule.import.locations.add') }}

{{ _self.locationsTable(locations.add) }}

{{ __('schedule.import.shifts.add') }}

{{ _self.shiftsTable(shifts.add) }}

{{ __('schedule.import.shifts.update') }}

{{ _self.shiftsTable(shifts.update) }}

{{ __('schedule.import.shifts.delete') }}

{{ _self.shiftsTable(shifts.delete) }} {{ f.submit(__('form.import'), {'icon_left': 'box-arrow-in-down'}) }}
{% endblock %} {% macro locationsTable(locations) %}
{% for location in locations %} {% endfor %}
{{ __('general.name') }}
{{ location.name }}
{% endmacro %} {% macro shiftsTable(shifts) %}
{% for shift in shifts %} {% endfor %}
{{ __('schedule.import.shift.dates') }} {{ __('schedule.import.shift.type') }} {{ __('title.title') }} {{ __('schedule.import.shift.location') }}
{{ shift.date.format(__('general.datetime')) }} - {{ shift.endDate.format(__('H:i')) }} {{ shift.type }} {{ shift.title }}{% if shift.subtitle %}
{{ shift.subtitle }}{% endif %}
{{ shift.room.name }}
{% endmacro %}