alfortville: display postit on avis pages (#10461)

This commit is contained in:
Frédéric Péters 2016-03-28 18:36:02 +02:00
parent 0124f797f0
commit ec45247f64
2 changed files with 7 additions and 2 deletions

View File

@ -10,11 +10,11 @@
<div class="cell document top">
<h2>{{title}}</h2>
<div>
<div class="mails">
<div class="mails source">
<ul>
{% for object in objects %}
<li
data-object-pk="{{object.id}}"
data-source-pk="{{object.id}}"
data-pdf-href="{{object.source.content.url}}">
{{object.source.creation_timestamp}}
{% for association in object.source.associations.all %}
@ -24,6 +24,10 @@
{% endfor %}
</ul>
</div>
<div id="postit" class="readonly" style="display: none"
data-base-url="{% url 'mail-edit-note' %}"
>
</div>
<iframe id="pdf-viewer" src="{% url 'mail-viewer' %}" style="width: 100%;
height: 100%; border: 0;">
</iframe>

View File

@ -362,6 +362,7 @@ $(function() {
});
$('#postit').on('click', window.displayPopup);
$('#postit.readonly').off('click');
$('#id_post_date').datepicker($.datepicker.regional["fr"]);
if ($('#category-filter').length) {