{% extends 'admin/schedule/index.twig' %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %} {{ m.button(m.icon('chevron-left'), url('/admin/schedule'), 'secondary', 'sm') }} {{ __('schedule.import.load.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')) }}
{% 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(__('Y-m-d H:i')) }} - {{ shift.endDate.format(__('H:i')) }} {{ shift.type }} {{ shift.title }}{% if shift.subtitle %}
{{ shift.subtitle }}{% endif %}
{{ shift.room.name }}
{% endmacro %}