{% extends 'admin/schedule/index.twig' %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('schedule.import.load.title') }}{% endblock %} {% block row_content %}
{{ csrf() }}

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

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

{{ _self.roomsTable(rooms.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 roomsTable(rooms) %}
{% for room in rooms %} {% endfor %}
{{ __('schedule.import.rooms.name') }}
{{ room.name }}
{% endmacro %} {% macro shiftsTable(shifts) %}
{% for shift in shifts %} {% endfor %}
{{ __('schedule.import.shift.dates') }} {{ __('schedule.import.shift.type') }} {{ __('schedule.import.shift.title') }} {{ __('schedule.import.shift.room') }}
{{ 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 %}