There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

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