2019-11-27 23:43:21 +01:00
|
|
|
{% extends 'admin/schedule/index.twig' %}
|
2023-11-03 15:02:54 +01:00
|
|
|
{% import 'macros/base.twig' as m %}
|
2019-11-27 23:43:21 +01:00
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
|
2023-11-03 15:02:54 +01:00
|
|
|
{% block title %}
|
|
|
|
{{ m.button(m.icon('chevron-left'), url('/admin/schedule'), 'secondary', 'sm') }}
|
|
|
|
{{ __('schedule.import.load.title') }}
|
|
|
|
{% endblock %}
|
2019-11-27 23:43:21 +01:00
|
|
|
|
|
|
|
{% block row_content %}
|
2022-12-10 02:24:20 +01:00
|
|
|
<form method="post" action="{{ url('/admin/schedule/import/' ~ schedule_id) }}">
|
2019-11-27 23:43:21 +01:00
|
|
|
{{ csrf() }}
|
|
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<p>{{ __('schedule.import.load.info', [schedule.conference.title, schedule.version]) }}</p>
|
|
|
|
|
2023-10-15 19:25:55 +02:00
|
|
|
<h2>{{ __('schedule.import.locations.add') }}</h2>
|
|
|
|
{{ _self.locationsTable(locations.add) }}
|
2019-11-27 23:43:21 +01:00
|
|
|
|
|
|
|
<h2>{{ __('schedule.import.shifts.add') }}</h2>
|
|
|
|
{{ _self.shiftsTable(shifts.add) }}
|
|
|
|
|
|
|
|
<h2>{{ __('schedule.import.shifts.update') }}</h2>
|
|
|
|
{{ _self.shiftsTable(shifts.update) }}
|
|
|
|
|
|
|
|
<h2>{{ __('schedule.import.shifts.delete') }}</h2>
|
|
|
|
{{ _self.shiftsTable(shifts.delete) }}
|
|
|
|
|
|
|
|
{{ f.submit(__('form.import')) }}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2023-10-15 19:25:55 +02:00
|
|
|
{% macro locationsTable(locations) %}
|
2019-11-27 23:43:21 +01:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-10-02 16:15:25 +02:00
|
|
|
<th>{{ __('general.name') }}</th>
|
2019-11-27 23:43:21 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2023-10-15 19:25:55 +02:00
|
|
|
{% for location in locations %}
|
2019-11-27 23:43:21 +01:00
|
|
|
<tr>
|
2023-10-15 19:25:55 +02:00
|
|
|
<td>{{ location.name }}</td>
|
2019-11-27 23:43:21 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro shiftsTable(shifts) %}
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ __('schedule.import.shift.dates') }}</th>
|
|
|
|
<th>{{ __('schedule.import.shift.type') }}</th>
|
2023-10-01 22:33:58 +02:00
|
|
|
<th>{{ __('title.title') }}</th>
|
2023-10-15 19:25:55 +02:00
|
|
|
<th>{{ __('schedule.import.shift.location') }}</th>
|
2019-11-27 23:43:21 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for shift in shifts %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ shift.date.format(__('Y-m-d H:i')) }} - {{ shift.endDate.format(__('H:i')) }}</td>
|
|
|
|
<td>{{ shift.type }}</td>
|
|
|
|
<td>{{ shift.title }}{% if shift.subtitle %}<br><small>{{ shift.subtitle }}</small>{% endif %}</td>
|
2023-10-20 23:31:14 +02:00
|
|
|
<td>{{ shift.room.name }}</td>
|
2019-11-27 23:43:21 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|