summaryrefslogtreecommitdiffstats
path: root/welco/sources/mail/templates/welco/mail_home.html
blob: 851de096843d13a01b5d7ff0f9b76ece0d771e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% 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="{% firstof mail.registered_mail_number %}"
			    >{{ 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 %}
		</form>
		<div id="postit" style="display: none"
			data-title-selector="h2"
			data-base-url="{% url 'mail-edit-note' %}"
			data-inplace-submit="true">
		</div>
		<iframe id="pdf-viewer" src="{% url 'mail-viewer' %}">
		</iframe>
	</div>
</div>