mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
network: Untabify and minor refactoring
This commit is contained in:
parent
bc4ac58f2e
commit
fc6b59d59b
@ -41,24 +41,24 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for conn in connections %}
|
{% for connection in connections %}
|
||||||
<div class="list-group-item clearfix">
|
<div class="list-group-item clearfix">
|
||||||
<a href="{% url 'networks:delete' conn.id %}"
|
<a href="{% url 'networks:delete' connection.uuid %}"
|
||||||
class="btn btn-default btn-sm pull-right"
|
class="btn btn-default btn-sm pull-right"
|
||||||
role="button" title="Delete connection {{ conn.name }}">
|
role="button" title="Delete connection {{ connection.name }}">
|
||||||
<span class="glyphicon glyphicon-trash"
|
<span class="glyphicon glyphicon-trash"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="connection-edit-label"
|
<a class="connection-edit-label"
|
||||||
href="{% url 'networks:edit' conn.id %}"
|
href="{% url 'networks:edit' connection.uuid %}"
|
||||||
title="Edit connection {{ conn.name }}">
|
title="Edit connection {{ connection.name }}">
|
||||||
{{ conn.name }}
|
{{ connection.name }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span class="connection-type-label">{{ conn.type }}</span>
|
<span class="connection-type-label">{{ connection.type }}</span>
|
||||||
|
|
||||||
{% if conn.is_active %}
|
{% if connection.is_active %}
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn btn-success btn-xs dropdown-toggle"
|
class="btn btn-success btn-xs dropdown-toggle"
|
||||||
@ -67,7 +67,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'networks:deactivate' conn.id %}">
|
<a href="{% url 'networks:deactivate' connection.uuid %}">
|
||||||
Deactivate
|
Deactivate
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'networks:activate' conn.id %}">
|
<a href="{% url 'networks:activate' connection.uuid %}">
|
||||||
Activate
|
Activate
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user