2019-11-27 23:43:21 +01:00
|
|
|
{% extends 'layouts/app.twig' %}
|
|
|
|
{% import 'macros/base.twig' as m %}
|
|
|
|
{% import 'macros/form.twig' as f %}
|
|
|
|
|
|
|
|
{% set title %}{% block title %}{{ __('schedule.import.title') }}{% endblock %}{% endset %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2020-11-21 20:54:04 +01:00
|
|
|
<h1>
|
|
|
|
{% block content_title %}{{ title }}{% endblock %}
|
2019-11-27 23:43:21 +01:00
|
|
|
|
2020-11-21 20:54:04 +01:00
|
|
|
{% if is_index|default(false) %}
|
2021-07-22 21:22:21 +02:00
|
|
|
{{ m.button(m.icon('plus-lg'), url('/admin/schedule/edit'), 'secondary') }}
|
2020-11-21 20:54:04 +01:00
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
{% include 'layouts/parts/messages.twig' %}
|
2019-11-27 23:43:21 +01:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{% block row_content %}
|
2020-11-21 20:54:04 +01:00
|
|
|
<div class="col-md-12">
|
|
|
|
<p>{{ __('schedule.import.text') }}</p>
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ __('schedule.name') }}</th>
|
|
|
|
<th>{{ __('schedule.url') }}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{% for schedule in schedules %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ schedule.name }}</td>
|
2022-12-21 12:06:58 +01:00
|
|
|
<td><a href="{{ schedule.url }}" target="_blank">{{ schedule.url }}</a></td>
|
2020-11-21 20:54:04 +01:00
|
|
|
<td>
|
|
|
|
<div class="btn-group">
|
|
|
|
<a
|
|
|
|
href="{{ url('/admin/schedule/load/' ~ schedule.id) }}"
|
2021-09-10 14:30:16 +02:00
|
|
|
class="btn btn-sm btn-secondary">
|
2020-11-21 20:54:04 +01:00
|
|
|
{{ __('form.import') }}
|
|
|
|
</a>
|
|
|
|
<a
|
|
|
|
href="{{ url('/admin/schedule/edit/' ~ schedule.id) }}"
|
2021-09-10 14:30:16 +02:00
|
|
|
class="btn btn-sm btn-secondary">
|
2020-11-21 20:54:04 +01:00
|
|
|
{{ __('form.edit') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-11-27 23:43:21 +01:00
|
|
|
</div>
|
2020-11-21 20:54:04 +01:00
|
|
|
</div>
|
2019-11-27 23:43:21 +01:00
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|