diff --git a/main.py b/main.py index 8478ef0..e6c3f29 100755 --- a/main.py +++ b/main.py @@ -19,6 +19,7 @@ app.secret_key = "6ab77f3c45447429c2ae163c260a626029519a66450e474c" debug = True users_file = "/etc/freeradius/users.dpto2" +dhcp_hosts_file = "/etc/dnsmasq.d/dpto2/dhcp_hosts" def reload_freeradius(): call("./reload_freeradius") @@ -161,14 +162,18 @@ def list_users(): lines = render_users_tree(tree) return render_template("users.html", users=lines) +@app.route("/dhcp") +def dhcp(): + return render_template("dhcp.html") + @app.route("/logout") def logout(): session.pop("logged_in",None) return redirect(url_for("index")) - if __name__ == '__main__': if "debug" in sys.argv: users_file = "users.dpto2" + dhcp_hosts_file = "dhcp_hosts.dpto2" app.debug = True app.run(host="0.0.0.0") diff --git a/static/css/isabel.css b/static/css/isabel.css deleted file mode 100644 index 12cb83c..0000000 --- a/static/css/isabel.css +++ /dev/null @@ -1,28 +0,0 @@ -.container { - width: 960px; -} - -.tests-table-header { - border-top: 0px; -} - -.cpi-average { - text-align: right; -} - -#tests-table { - margin-top: 60px; -} - -#selected-tests span { - margin-left: 0.5em; -} - -div.users-tree { - line-height: initial; -} - -.edges { - font-family: monospace; - line-height: initial; -} diff --git a/templates/admin.html b/templates/admin.html index 2109779..d681792 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -75,7 +75,9 @@ +
Lista de usuarios
Cerrar sesiĆ³n
+
Reservas de DHCP
{% endblock %} diff --git a/templates/base.html b/templates/base.html index fa69b6d..9861f57 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,7 +9,7 @@ - + @@ -28,7 +28,7 @@ -
+
{% block content %} {% endblock %}