V2_Schedule
{% set calendar = module('V2_Schedule', '', { start: null }) %}
<div>
{{ include('/admin/module/setting.twig', { moduleInfo: calendar.moduleInfo }) }}
<div>
{% if calendar.date %}
<div>
<h3 class="acms-text-center"><a href="{{ BASE_URL }}calendar.html/{{ calendar.date.year }}/{{ calendar.date.month }}">{{ calendar.date.month }}月</a></h3>
<ul class="acms-text-center acms-list-inline">
<li><a href="{{ BASE_URL }}calendar.html/{{ calendar.date.prevDate }}" class="acms-btn-flat" title="前月へ">«</a></li>
<li>{{ calendar.date.year }}/{{ calendar.date.month }}</li>
<li><a href="{{ BASE_URL }}calendar.html/{{ calendar.date.nextDate }}" class="acms-btn-flat" title="次月へ">»</a></li>
</ul>
</div>
{% endif %}
<table class="acms-table acms-table-bordered">
<thead>
<tr class="acms-text-center">
{% for week in calendar.weekLabels %}
<td >{{ week.label }}</td>
{% endfor %}
</tr>
</thead>
<tbody>
{% for week in calendar.weeks %}
<tr class="acms-text-center">
{% for day in week %}
<td class="{{ day.data.class }}">
<p>{{ day.day }}<p>
<p>{{ day.data.label}}</p>
<p>{{ day.data.text}}</p>
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{# {% for i in 1..12 %}
{% set loopMonth = '%02d'|format(i) %}
{% set loopStart = Y ~ '-' ~ loopMonth ~ '-01' %}
...
{% endfor %} #}