alfortville: display postit on avis pages (#10461)
This commit is contained in:
parent
0124f797f0
commit
ec45247f64
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue