forked from rc/aircox
work on exposure to support inheritance, start to work on calendar with dynamic loading
This commit is contained in:
25
cms/templates/aircox/cms/calendar.html
Normal file
25
cms/templates/aircox/cms/calendar.html
Normal file
@ -0,0 +1,25 @@
|
||||
{% extends "aircox/cms/website.html" %}
|
||||
|
||||
{% block header %}
|
||||
<header>
|
||||
<a href="{% url exp.name key="render" year=prev_month.year month=prev_month.month %}"
|
||||
onclick="return Section.load_event(event);"><</a>
|
||||
|
||||
<time>{{ month|date:'F Y' }}</time>
|
||||
|
||||
<a href="{% url exp.name key="render" year=next_month.year month=next_month.month %}"
|
||||
onclick="return Section.load_event(event);">></a>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
<div first_weekday="{{ first_weekday }}">
|
||||
{% for day, url in days %}
|
||||
<a href="{{ url }}">{{ day }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user