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,54 +41,54 @@
|
|||||||
<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"
|
||||||
data-toggle="dropdown" aria-expanded="false">
|
data-toggle="dropdown" aria-expanded="false">
|
||||||
Active <span class="caret"></span>
|
Active <span class="caret"></span>
|
||||||
</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>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn btn-warning btn-xs dropdown-toggle"
|
class="btn btn-warning btn-xs dropdown-toggle"
|
||||||
data-toggle="dropdown" aria-expanded="false">
|
data-toggle="dropdown" aria-expanded="false">
|
||||||
Not Active <span class="caret"></span>
|
Not Active <span class="caret"></span>
|
||||||
</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>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@ -27,13 +27,13 @@
|
|||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for ap in aps %}
|
{% for ap in aps %}
|
||||||
<div class="list-group-item clearfix">
|
<div class="list-group-item clearfix">
|
||||||
<a display="inline-block" width="40%"
|
<a display="inline-block" width="40%"
|
||||||
href="{% url 'networks:connect' ap.connect_path %}">
|
href="{% url 'networks:connect' ap.connect_path %}">
|
||||||
{{ ap.ssid }}
|
{{ ap.ssid }}
|
||||||
</a>
|
</a>
|
||||||
<span class="btn btn-primary btn-xs pull-right">
|
<span class="btn btn-primary btn-xs pull-right">
|
||||||
{{ ap.strength }}%
|
{{ ap.strength }}%
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user