luci-app-mwan3: move proto select after ip version selection
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 30 Nov 2021 10:11:49 +0000 (11:11 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 6 Dec 2021 14:02:37 +0000 (15:02 +0100)
Redmine-patch-id: 6620
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js

index 5cec172c83422ca7de67d52d060778eff650e64e..47a2c6c4898ffbf17a0c9dbdd470db23fad88c93 100644 (file)
@@ -39,6 +39,16 @@ return view.extend({
                o.value('ipv6', _('IPv6 only'));
                o.modalonly = true;
 
+               o = s.option(form.Value, 'proto', _('Protocol'),
+                       _('View the content of /etc/protocols for protocol description'));
+               o.default = 'all';
+               o.rmempty = false;
+               o.value('all');
+               o.value('tcp');
+               o.value('udp');
+               o.value('icmp');
+               o.value('esp');
+
                o = s.option(form.Value, 'src_ip', _('Source address'),
                        _('Supports CIDR notation (eg \"192.168.100.0/24\") without quotes'));
                o.datatype = 'ipaddr';
@@ -57,16 +67,6 @@ return view.extend({
                o.depends('proto', 'tcp');
                o.depends('proto', 'udp');
 
-               o = s.option(form.Value, 'proto', _('Protocol'),
-                       _('View the content of /etc/protocols for protocol description'));
-               o.default = 'all';
-               o.rmempty = false;
-               o.value('all');
-               o.value('tcp');
-               o.value('udp');
-               o.value('icmp');
-               o.value('esp');
-
                o = s.option(form.ListValue, 'sticky', _('Sticky'),
                        _('Traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface'));
                o.default = '0';