From 7b50e98b876196ce5404150d3a0c8cf0e2382f7e Mon Sep 17 00:00:00 2001 From: Leonidas Poulopoulos Date: Tue, 20 Dec 2011 18:20:02 +0200 Subject: [PATCH] Changed application UI. Added ports section as accordion for advanced settings --- templates/apply.html | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/templates/apply.html b/templates/apply.html index 6186b2a..9a67c5f 100644 --- a/templates/apply.html +++ b/templates/apply.html @@ -126,6 +126,15 @@ $('#port_diag').dialog('open'); return false; }); + + $("#portsacc").accordion({ + collapsible: true, + active: false, + + }); + + $("#applybutton").button(); + }); @@ -138,6 +147,10 @@ th { vertical-align: top; } +.accord_wrapper{ + height: 100% !important; +} + .help { font-style: italic; @@ -170,15 +183,23 @@ th { {{ form.source.label_tag }}{{ form.source }}{{ form.source.errors|join:", " }} {{ form.source.help_text }} -{{ form.sourceport.label_tag }}{{ form.sourceport }}  {{ form.sourceport.errors|join:", " }} -{{ form.sourceport.help_text }} {{ form.destination.label_tag }}{{ form.destination }}{{ form.destination.errors|join:", " }} {{ form.destination.help_text }} + +
+

Advanced Settings (Ports)

+
+ Select source/destination port(s), or select common port(s) for both source/destination + + + +
{{ form.sourceport.label_tag }}{{ form.sourceport }}  {{ form.sourceport.errors|join:", " }}
{{ form.sourceport.help_text }}
{{ form.destinationport.label_tag }}{{ form.destinationport }}  {{ form.destinationport.errors|join:", " }}
{{ form.destinationport.help_text }}
{{ form.port.label_tag }}{{ form.port }}  {{ form.port.errors|join:", " }}
{{ form.port.help_text }}
+
{% trans "Rule Actions" %} @@ -202,7 +223,7 @@ th {

-

+

-- 1.7.10.4