53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
{% load i18n %}
|
|
<h2>{% trans 'Mails' %}</h2>
|
|
<div data-source-type="{{ source_type.id }}">
|
|
<div id="source-sidebar" class="mails">
|
|
{% if display_filter %}
|
|
<select id="category-filter"></select>
|
|
{% endif %}
|
|
<ul>
|
|
{% for mail in mails %}
|
|
<li data-source-pk="{{ mail.id }}"
|
|
data-pdf-href="{{ mail.content.url }}"
|
|
data-post-date="{{ mail.post_date|date:"d/m/Y" }}"
|
|
data-registered-mail-number="{{ mail.registered_mail_number|default:"" }}"
|
|
data-reference="{{ mail.reference|default:"" }}"
|
|
data-subject="{{ mail.subject|default:"" }}"
|
|
data-external-id="{{ mail.external_id|default:"" }}"
|
|
>{{ mail.creation_timestamp|date:"d/m/Y" }}
|
|
{{mail.contact_name}}
|
|
{% for association in mail.associations.all %}
|
|
/ <span data-formdef-reference="{{association.formdef_reference}}">{{association.formdef_name}}</span>
|
|
{% endfor %}
|
|
{% for category in mail.categories %}
|
|
<span style="display: none" data-category-name="{{category}}"></span>
|
|
{% endfor %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div id="source-mainarea">
|
|
<form>
|
|
{{form.as_p}}
|
|
<button data-action-url="{{source_form_url}}" class="save">✓</button>
|
|
|
|
{% if reject_url %}
|
|
<button data-action-url="{{reject_url}}" class="reject">Rejeter (illisible)</button>
|
|
{% endif %}
|
|
<br style="clear: both;">
|
|
</form>
|
|
<div id="postit" style="display: none">
|
|
<div class="hbar"></div>
|
|
<div class="content"
|
|
data-title-selector="h2"
|
|
data-base-url="{% url 'mail-edit-note' %}"
|
|
data-inplace-submit="true"
|
|
>
|
|
</div>
|
|
</div>
|
|
<iframe id="pdf-viewer" src="{% url 'mail-viewer' %}">
|
|
</iframe>
|
|
</div>
|
|
</div>
|
|
|