2015-11-05 09:14:38 -05:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block title %}Subir Circuito{% endblock %}
|
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{% for row in range(16) %}
|
|
|
|
<div class="ips-row">
|
|
|
|
{% for col in range(16) -%}
|
|
|
|
{% set ip = row*16 + col %}
|
2015-11-05 10:12:58 -05:00
|
|
|
{% set unusable = ip == 0 or ip == 255 %}
|
|
|
|
{% set usable = not unusable %}
|
|
|
|
<a {% if usable %}href="ip/{{ ip }}"{% endif %}>
|
2015-11-05 09:14:38 -05:00
|
|
|
<div class="ips-cell
|
2015-11-05 10:12:58 -05:00
|
|
|
{%- if row == 0 %} ips-top{% endif %}
|
|
|
|
{%- if col == 0 %} ips-left{% endif %}
|
|
|
|
{%- if row == 15 %} ips-bottom{% endif %}
|
|
|
|
{%- if col == 15 %} ips-right{% endif %}
|
|
|
|
{%- if col == 7 %} ips-ver-half{% endif %}
|
|
|
|
{%- if row == 7 %} ips-hor-half{% endif %}
|
|
|
|
{% if unusable %} unusable{% endif %}
|
|
|
|
{%- if 216 <= ip <= 239 %} dhcp-pool{% endif -%}
|
|
|
|
">
|
2015-11-05 09:14:38 -05:00
|
|
|
<div class="name">
|
|
|
|
{% if 99 <= ip <= 103 or ip == 96%}
|
|
|
|
Andy
|
|
|
|
{% elif 216 <= ip <= 239 %}
|
|
|
|
DHCP
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-11-05 10:12:58 -05:00
|
|
|
{% if usable %}
|
|
|
|
{% if ip == 14 or ip == 99 %}
|
|
|
|
<span class="lock"><i class="fa fa-lock"></i></span>
|
|
|
|
{% endif %}
|
2015-11-05 09:14:38 -05:00
|
|
|
<span class="ip">.{{ row*16 + col }}</span>
|
2015-11-05 10:12:58 -05:00
|
|
|
{% endif %}
|
2015-11-05 09:14:38 -05:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2015-11-05 10:12:58 -05:00
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$(".ips-cell:not(.unusable)").hover(
|
|
|
|
function() {
|
|
|
|
$(this).addClass("hover");
|
|
|
|
},
|
|
|
|
function() {
|
|
|
|
$(this).removeClass("hover");
|
|
|
|
}
|
|
|
|
);
|
|
|
|
})
|
|
|
|
</script>
|
2015-11-05 09:14:38 -05:00
|
|
|
{% endblock %}
|