chrono/chrono/manager/templates/chrono/manager_events_timesheet.html

31 lines
954 B
HTML

{% extends "chrono/manager_agenda_view.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'chrono-manager-events-timesheet' pk=agenda.pk %}">{% trans "Timesheet" %}</a>
{% endblock %}
{% block appbar_actions %}{% endblock %}
{% block content %}
<div class="section">
<h3>{% trans "Timesheet configuration" %}</h3>
<div>
<form id="timesheet">
{{ form.as_p }}
<button class="submit-button">{% trans "See timesheet" %}</button>
{% if request.GET and form.is_valid %}
<button class="submit-button" name="pdf">{% trans "Get PDF file" %}</button>
{% endif %}
</form>
{% if request.GET and form.is_valid %}
<h4>{% blocktrans with start=form.cleaned_data.date_start end=form.cleaned_data.date_end %}Timesheet from {{ start }} to {{ end }}{% endblocktrans %}</h4>
{% include 'chrono/manager_events_timesheet_fragment.html' %}
{% endif %}
</div>
</div>
{% endblock %}