From 0cc65a057d79e009ea07cd5deb86f84aaf49b537 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 23 Aug 2022 16:15:23 +0200 Subject: Add a room to a center using the scopes tree With this commit users can select a center from the scopes tree, and then add a room to that center. --- ogcp/templates/macros.html | 6 ++++++ ogcp/views.py | 14 +++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'ogcp') diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index f67b1a6..0283d26 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -28,6 +28,12 @@ value="{{ scope["server_ip_port"] }}" onclick="return false;" {% if scope.get("selected", False) %}checked{% endif %} name="scope-server" hidden/> + {% elif scope["type"] == "center" %} + {% elif scope["type"] == "room" %}