32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends "chrono/manager_agenda_view.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block bodyargs %}class="monthview"{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a>{{ view.date|date:"F Y" }}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>
|
|
<a href="{{ view.get_previous_month_url }}">←</a>
|
|
<span class="date-title">{{ view.date|date:"F Y" }}</span>
|
|
{% with selected_month=view.date|date:"n" selected_year=view.date|date:"Y" %}
|
|
<div class="date-picker" style="display: none">
|
|
<select name="month">{% for month, month_label in view.get_months %}<option value="{{ month }}" {% if selected_month == month %}selected{% endif %}>{{ month_label }}</option>{% endfor %}</select>
|
|
<select name="year">{% for year in view.get_years %}<option value="{{ year }}" {% if selected_year == year %}selected{% endif %}>{{year}}</option>{% endfor %}</select>
|
|
<button>{% trans 'Set Date' %}</button>
|
|
</div>
|
|
{% endwith %}
|
|
<a href="{{ view.get_next_month_url }}">→</a>
|
|
</h2>
|
|
<span class="actions">
|
|
{% if user_can_manage %}
|
|
<a href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Settings' %}</a>
|
|
{% endif %}
|
|
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
|
|
{% block extra-actions %}{% endblock %}
|
|
</span>
|
|
{% endblock %}
|