Minor formatting around the exporter toggle button
<th>Job</th>
<th>Port</th>
<th>Metrics Path</th>
+ <th>Toggle</th>
<th>&nbsp;</th>
</tr>
{% for exporter in project.exporter_set.all %}
<td>{{ exporter.job }}</td>
<td>{{ exporter.port }}</td>
<td>{{ exporter.path }}</td>
- <td>
- <form method="post" action="{% url 'exporter-delete' exporter.id %}" onsubmit="return confirm('Delete this exporter?')" style="display: inline">
- {% csrf_token %}
- <button class="btn btn-danger btn-xs">{% trans "Delete" %}</button>
- </form>
- </td>
<td style="white-space: nowrap">
<form method="post" action="{% url 'exporter-toggle' exporter.id %}" style="display: inline">
{% csrf_token %}
{% if exporter.enabled %}
- <a href="#" class="btn btn-default btn-sm" disabled>ON</a>
- <button class="btn btn-primary btn-sm">OFF</button>
+ <a href="#" class="btn btn-default btn-xs" disabled>ON</a>
+ <button class="btn btn-primary btn-xs">OFF</button>
{% else %}
- <button class="btn btn-primary btn-sm">ON</button>
- <a href="#" class="btn btn-default btn-sm" disabled>OFF</a>
+ <button class="btn btn-primary btn-xs">ON</button>
+ <a href="#" class="btn btn-default btn-xs" disabled>OFF</a>
{% endif %}
</form>
</td>
+ <td>
+ <form method="post" action="{% url 'exporter-delete' exporter.id %}" onsubmit="return confirm('Delete this exporter?')" style="display: inline">
+ {% csrf_token %}
+ <button class="btn btn-danger btn-xs">{% trans "Delete" %}</button>
+ </form>
+ </td>
</tr>
{% endfor %}
</table>
