Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

Commit 7a1d1c16 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Switch to table instead of list display for contacts and notifications

parent 7108b081
......@@ -24,28 +24,32 @@
{% if user_is_internal %}
<h1>Contacts</h1>
{% if contacts %}
<ul style="list-style-type: none; padding-left: 10px;">
<table style="padding-bottom: 10px">
{% for contact in contacts %}
<li style="padding-bottom: 5px;">
<tr>
<td>
{% if contact.verified %}
<a class="btn btn-primary" href="{% url "alerts:test-contact" contact.pk %}">Test</a>
{% else %}
<button class="btn btn-primary" disabled>Test</button>
{% endif %}
<a class="btn btn-secondary" href="{% url "alerts:edit-contact" contact.pk %}">Edit</a>
<a class="btn btn-danger" href="{% url "alerts:delete-contact" contact.pk %}">Delete</a>
<b>{{ contact.description }}</b> | {{ contact.display }}
<b>
{% if contact.verified %}
<div style="color: green; display: inline-block;">Verified</div>
{% else %}
<div style="color: red; display: inline-block;">Not verified</div>
<a class="btn btn-warning" href="{% url "alerts:verify-contact" contact.pk %}">Verify</a>
{% endif %}
</b>
</li>
</td>
<td><a class="btn btn-secondary" href="{% url "alerts:edit-contact" contact.pk %}">Edit</a></td>
<td><a class="btn btn-danger" href="{% url "alerts:delete-contact" contact.pk %}">Delete</a></td>
<td>
<b>{{ contact.description }}</b> | {{ contact.display }}
<b>
{% if contact.verified %}
<div style="color: green; display: inline-block;">Verified</div>
{% else %}
<div style="color: red; display: inline-block;">Not verified</div>
<a class="btn btn-warning" href="{% url "alerts:verify-contact" contact.pk %}">Verify</a>
{% endif %}
</b>
</td>
</tr>
{% endfor %}
</ul>
</table>
{% endif %}
<a class="btn btn-success" href="{% url "alerts:create-contact" %}">Create new contact</a>
......@@ -53,15 +57,15 @@
<h1>Notifications</h1>
{% if notifications %}
<ul style="list-style-type: none; padding-left: 10px;">
<table style="padding-bottom: 10px;">
{% for notification in notifications %}
<li style="padding-bottom: 5px;">
<a class="btn btn-secondary" href="{% url "alerts:edit-notification" notification.pk %}">Edit</a>
<a class="btn btn-danger" href="{% url "alerts:delete-notification" notification.pk %}">Delete</a>
<b>{{ notification.description }}</b> | {{ notification.display }}
</li>
<tr>
<td><a class="btn btn-secondary" href="{% url "alerts:edit-notification" notification.pk %}">Edit</a></td>
<td><a class="btn btn-danger" href="{% url "alerts:delete-notification" notification.pk %}">Delete</a></td>
<td><b>{{ notification.description }}</b> | {{ notification.display }}</td>
</tr>
{% endfor %}
</ul>
</table>
{% endif %}
<a class="btn btn-success" href="{% url "alerts:create-notification" %}">Create new notification</a>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment