2015-10-11 17:23:37 +02:00
|
|
|
{% load i18n %}
|
2016-03-28 16:56:41 +02:00
|
|
|
{% if object.post_date %}
|
2016-06-06 16:38:50 +02:00
|
|
|
<p class="post-date">{% trans "Post Date:" %} {{object.post_date}}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if object.registered_mail_number %}
|
|
|
|
<p class="registered-mail-number">{% trans "Registered Mail Number:" %} {{object.registered_mail_number}}</p>
|
2016-03-28 16:56:41 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2016-06-14 15:34:04 +02:00
|
|
|
{% if object.subject %}
|
|
|
|
<p class="subject">{% trans "Subject:" %} {{object.subject}}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-10-11 17:23:37 +02:00
|
|
|
<p class="thumbnail">
|
2015-11-30 18:24:03 +01:00
|
|
|
<a href="{{ site_base }}{{ object.content.url }}" target="_blank">
|
2015-10-11 17:23:37 +02:00
|
|
|
<img src="{{ site_base }}{{ object.content.url }}.png" alt=""/>
|
|
|
|
</a>
|
|
|
|
</p>
|
2015-10-11 17:24:02 +02:00
|
|
|
|
2016-02-26 12:34:26 +01:00
|
|
|
{% if object.note %}
|
|
|
|
<p class="postit">
|
|
|
|
{{object.html_note|safe}}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-10-11 17:24:02 +02:00
|
|
|
{% if object.associations.all|length > 1 %}
|
|
|
|
<strong>{% trans 'Mail with multiple formdata:' %}</strong>
|
|
|
|
<ul>
|
|
|
|
{% for association in object.associations.all %}
|
|
|
|
<li><a href="{{association.formdata_url}}">{{association.formdef_name}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2015-10-11 17:40:51 +02:00
|
|
|
|
|
|
|
{% if object.get_mandatory_avis|length %}
|
2015-10-28 16:39:35 +01:00
|
|
|
<div class="bo-block
|
|
|
|
{% for avis in object.get_mandatory_avis %}{% if not avis.comments %} important {% endif %}{% endfor %}">
|
2015-10-11 17:40:51 +02:00
|
|
|
<strong>{% trans "Mandatory Avis" %}</strong>
|
|
|
|
<ul>
|
|
|
|
{% for avis in object.get_mandatory_avis %}
|
|
|
|
<li>{{avis.role_name}}:
|
|
|
|
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2015-10-28 16:39:35 +01:00
|
|
|
</div>
|
2015-10-11 17:40:51 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2016-05-16 18:11:28 +02:00
|
|
|
{% if object.get_avis|length %}
|
|
|
|
<div class="bo-block">
|
|
|
|
<strong>{% trans "Avis" %}</strong>
|
2016-03-28 18:24:00 +02:00
|
|
|
<ul>
|
2016-05-16 18:11:28 +02:00
|
|
|
{% for avis in object.get_avis %}
|
2016-03-28 18:24:00 +02:00
|
|
|
<li>{{avis.role_name}}:
|
|
|
|
{% if avis.comments %}{{ avis.comments }}{% else %}{% trans 'Waiting for avis.' %}{% endif %}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if object.get_info_roles|length %}
|
|
|
|
<div class="bo-block visas">
|
|
|
|
<strong>{% trans "Visas" %}</strong>
|
|
|
|
<ul>
|
|
|
|
{% for info in object.get_info_roles %}
|
|
|
|
<li>{{info.role_name}} {% if not info.done %}{% trans "(not yet seen)" %}{% endif %}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
p.postit {
|
|
|
|
background: rgba(241,231,103,1);
|
|
|
|
transform: rotate(2deg);
|
|
|
|
box-shadow: 3px 3px 3px #aaa;
|
|
|
|
padding: 1ex;
|
|
|
|
width: 90%;
|
|
|
|
}
|
|
|
|
div.visas ul {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
</style>
|