0377233eb6
Also removed no longer needed jquery.tooltip related files Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
63 lines
1.9 KiB
Twig
63 lines
1.9 KiB
Twig
{# vim: ft=htmljinja
|
|
#}
|
|
<div id="esemenyek-gomb">
|
|
<span id="esemeny-mutato">[események gomb]</span>
|
|
<div id="esemeny-box">
|
|
<div id="esemeny-belso">
|
|
<p class="honap">{{ firstDay|date('Y-m') }}</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
<td>H</td>
|
|
<td>K</td>
|
|
<td>Sze</td>
|
|
<td>Cs</td>
|
|
<td>P</td>
|
|
<td>Szo</td>
|
|
<td>V</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="woy">{{ firstDay|date('W') }}</td>
|
|
{% set curDow = 0 %}
|
|
{% if firstDayWeekday != 1 %}
|
|
{% for i in 1..(firstDayWeekday - 1) %}
|
|
{% set curDow = curDow + 1 %}{% if curDow == 8 %}{% set curDow = 1 %}{% endif %}
|
|
<td></td>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% set cur = firstDayWeekday - 1 %}
|
|
{% for i in 1..numDays %}
|
|
{% set cur = cur + 1 %}
|
|
{% set curDow = curDow + 1 %}{% if curDow == 8 %}{% set curDow = 1 %}{% endif %}
|
|
{% set eventCount = 0 %}
|
|
{# TODO Check if an event occurs on this date:
|
|
(event.startDate = this day AND event.endDate is NULL)
|
|
OR (event.startDate <= this day AND evend.endDate >= this day)
|
|
#}
|
|
<td id="event-calendar-{{ i }}"{% if eventList[i].events|length > 0 %} class="program" rel="{{ path('KekRozsakFrontBundle_eventAjaxList', {date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}"{% endif %}>
|
|
<a href="{{ path('KekRozsakFrontBundle_eventList', { date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}">{{ eventList[i].date|date('d') }}</a>
|
|
</td>
|
|
{% if cur is divisibleby(7) %}
|
|
</tr>
|
|
{% if cur != numDays %}
|
|
<tr>
|
|
<td class="woy">{{ eventList[i + 1].date|date('W') }}</td>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if curDow != 7 %}
|
|
{% for i in (curDow + 1)..7 %}
|
|
<td></td>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<a href="">További események</a>
|
|
</div>
|
|
</div>
|
|
</div>
|