parent
cd369ca1a3
commit
675f7d13bd
|
@ -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/>
|
||||||
|
|
Loading…
Reference in New Issue