backups: Make backup location tables collapsible

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
[sunil@medhas.org Fix incorrectly removed <tr> tag in <thead>]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2019-07-29 14:09:28 -07:00
1 parent c2cb187d91
commit faac8cdd9c
2 files changed
+7 -6

No files matched your search

@@ -21,10 +21,11 @@
<table class="table table-bordered table-condensed table-striped"
id="archives-list">
<thead>
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
<tr>
<th colspan="2">
<span style="vertical-align: text-top">
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
{% if repository.error %}
<span class="fa fa-exclamation-triangle mount-error"
aria-hidden="true" title="{{ repository.error }}">
@@ -63,7 +64,7 @@
{% endif %}
<a title="{% trans 'Remove Location. This will not delete the remote backup.' %}"
<a title="{% trans 'Remove Backup Location. This will not delete the remote backup.' %}"
role="button" class="repository-remove btn btn-sm btn-default"
href="{% url 'backups:repository-remove' uuid %}">
<span class="fa fa-trash-o" aria-hidden="true">
@@ -77,7 +78,7 @@
</tr>
</thead>
<tbody>
<tbody class="collapse in" id="{{ uuid }}">
{% if repository.mounted %}
{% for archive in repository.archives %}