chrono/chrono/manager/templates/chrono/manager_replace_exceptions....

29 lines
1001 B
HTML

{% extends "chrono/manager_import_exceptions.html" %}
{% load i18n %}
{% block appbar %}
<h2>{% if form.instance.ics_filename %}{% trans "Replace exceptions" %}{% else %}{% trans "Refresh exceptions" %}{% endif %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
{% if form.instance.ics_filename %}
<p class="notice">{% trans "To replace existing exceptions, please upload a new file." %}</p>
{% else %}
<p class="notice">
{% trans 'Press the button "Refresh" to refresh existing exceptions from:' %}
<br />
<a href="{{ form.instance.ics_url }}">{{ form.instance.ics_url }}</a>
</p>
{% endif %}
{% csrf_token %}
{{ form.as_p }}
<p>
</p>
<div class="buttons">
<button>{% if form.instance.ics_filename %}{% trans "Replace" %}{% else %}{% trans "Refresh" %}{% endif %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}