Signed-off-by: Etzelia <etzelia@hotmail.com>
pull/2/head
Etzelia 2021-02-07 22:12:29 -06:00
parent cd369ca1a3
commit 675f7d13bd
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
1 changed files with 19 additions and 17 deletions

View File

@ -34,23 +34,25 @@
</div> </div>
{% if note.attachments.all|length > 0 %} {% if note.attachments.all|length > 0 %}
<div class="row"> <div class="row">
<table> <div class="col-xs-9 col-md-6">
<thead> <table>
<tr><th>Attachments</th></tr> <thead>
</thead> <tr><th>Attachments</th></tr>
<tbody> </thead>
{% for attachment in note.attachments %} <tbody>
<tr> {% for attachment in note.attachments %}
<td> <tr>
<a href="{% url 'attachment' attachment.id %}">{{ attachment.file_name }}</a> <td>
<span class="delete-attachment" data-name="{{ attachment.file_name }}" data-id="{{ attachment.id }}"> <a href="{% url 'attachment' attachment.id %}">{{ attachment.file_name }}</a>
<i class="glyphicon glyphicon-remove-circle text-danger"></i> <span class="delete-attachment" data-name="{{ attachment.file_name }}" data-id="{{ attachment.id }}">
</span> <i class="glyphicon glyphicon-remove-circle text-danger"></i>
</td> </span>
</tr> </td>
{% endfor %} </tr>
</tbody> {% endfor %}
</table> </tbody>
</table>
</div>
</div> </div>
{% endif %} {% endif %}
<br/> <br/>