engelsystem/resources/views/admin/schedule/index.twig

63 lines
2.5 KiB
Twig
Raw Permalink Normal View History

{% 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 %}
2020-11-21 20:54:04 +01:00
{% if is_index|default(false) %}
{{ 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' %}
<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>
<td>{{ schedule.url }}</td>
<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>
</div>
2020-11-21 20:54:04 +01:00
</div>
{% endblock %}
</div>
</div>
{% endblock %}