/
index.html.twig
51 lines (46 loc) · 1.95 KB
/
index.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends 'vacancies.html.twig' %}
{% block title %}Auditions{% endblock %}
{% set current_vacancies_id='auditions' %}
{% block vacancies_header %}
<h3>Auditions</h3>
<ul role="navigation">
<li><i class="fa fa-list"></i> List view</li>
<li><a href="{{ path('get_auditions_diary') }}"><i class="fa fa-calendar"></i> Diary View</a></li>
<li><a href="{{ path('get_auditions_diary', {_format: 'ics'}) }}"><i class="fa fa-calendar"></i> iCal</a></li>
<li><a href="{{ path('get_auditions', {_format: 'rss'}) }}"><i class="fa fa-rss"></i> RSS Feed</a></li>
<li><a href="{{ path('get_auditions', {_format: 'txt'}) }}"><i class="fa fa-file-text-o"></i> Plain Text</a></li>
</ul>
{% endblock %}
{% block vacancies_body %}
{% spaceless %}
{% set currentName = null %}
{% for a in auditions %}
{% if a.show %}
{% if currentName != a.show.name %}
{% if currentName is not empty %}
</ul>
</div>
{% endif %}
{% set currentName = a.show.name %}
<hr>
<div id="{{ a.show.slug }}">
{% include 'show/advert_header.html.twig' with
{'show': a.show} %}
<p>{{ a.show.audextra | camdram_markdown }}</p>
<ul>
{% endif %}
{% if a.nonscheduled %}
</ul>
<p>Contact {{a.location}} before {{a.starttime|date('g:ia')}} {{a.date|date('D d M')}} for more details.</p>
</div>
{% set currentName = null %}
{% else %}
<li>{{ a.date|date('D jS M') }}, {{ a.starttime|date('g:ia') }}-{{ a.endtime|date('g:ia') }}, {{ a.location }}</li>
{% endif %}
{% endif %}
{% else %}
<p>There are currently no auditions listed - please check again later.</p>
{% endfor %}
</ul>
{% endspaceless %}
{% endblock %}