43 lines
1.6 KiB
HTML
43 lines
1.6 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 %}
|
|
<ul class="objects-list single-links">
|
|
{% for object in exception_sources %}
|
|
<li>
|
|
<a title="{{ object }}" {% if not object.ics_filename %}href="{{ object }}"{% endif %}>{% if object.ics_filename %}{{ object|truncatechars:50 }}{% else %}{{ object|truncatechars:50 }}{% endif %}</a>
|
|
{% if object.ics_filename %}
|
|
<a rel="popup" class="link-action-icon refresh" href="{% url 'chrono-manager-time-period-exception-source-replace' object.pk %}">{% trans "replace" %}</a>
|
|
{% else %}
|
|
<a class="link-action-icon refresh" href="{% url 'chrono-manager-time-period-exception-source-refresh' object.pk %}">{% trans "refresh" %}</a>
|
|
{% endif %}
|
|
<a rel="popup" class="delete" href="{% url 'chrono-manager-time-period-exception-source-delete' object.pk %}">{% trans "remove" %}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% 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 %}
|