chrono/chrono/manager/templates/chrono/manager_import_exceptions.html

57 lines
1.5 KiB
HTML

{% extends "chrono/manager_agenda_view.html" %}
{% load i18n %}
{% block extrascripts %}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block appbar %}
<h2>{% trans "Import exceptions" %}</h2>
{% endblock %}
{% block content %}
<form method="post" enctype="multipart/form-data">
{% if exception_sources %}
<table class="main">
<thead>
<tr>
<th>{% trans "Exceptions" %}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for object in exception_sources %}
<tr>
<td>
<span title="{{ object }}">
{% if object.ics_filename %}{{ object|truncatechars:50 }}{% else %}<a href="{{ object }}">{{ object|truncatechars:50 }}</a>{% endif %}
</span>
</td>
<td>
<a rel="popup" href="">
{% if object.ics_filename %}{% trans "replace" %}{% else %}{% trans "refresh" %}{% endif %}
</a>
</td>
<td><a rel="popup" href="{% url 'chrono-manager-time-period-exception-source-delete' object.pk %}">{% trans "remove" %}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
<br />
{% endif %}
<p class="notice">{% trans "To add new exceptions, you can upload a file or specify an address to a remote calendar." %}</p>
{% csrf_token %}
{{ form.as_p }}
<p>
</p>
<div class="buttons">
<button>{% trans "Import" %}</button>
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
</div>
</form>
{% endblock %}