Commit ef4fa009 by Kálmán Viktor

dashboard: show managed in select option

parent 4d42e3e5
...@@ -126,9 +126,16 @@ ...@@ -126,9 +126,16 @@
<form method="POST" action=""> <form method="POST" action="">
{% csrf_token %} {% csrf_token %}
<div class="input-group" style="max-width: 330px;"> <div class="input-group" style="max-width: 330px;">
<select name="new_network_vlan" class="form-control"> <select name="new_network_vlan" class="form-control font-awesome-font">
{% for v in vlans %} {% for v in vlans %}
<option value="{{ v.pk }}">{{ v.name }}</option> <option value="{{ v.pk }}">
{% if v.managed %}
&#xf0ac;
{% else %}
&#xf0c1;
{% endif %}
{{ v.name }}
</option>
{% empty %} {% empty %}
<option value="-1">No more networks!</option> <option value="-1">No more networks!</option>
{% endfor %} {% endfor %}
......
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 sign in to comment