luci-mod-network: Adjust DNS/DHCP tab order
authorHannu Nyman <hannu.nyman@iki.fi>
Sat, 5 Aug 2023 16:00:34 +0000 (19:00 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 6 Aug 2023 08:42:24 +0000 (11:42 +0300)
Adjust the order of tabs in the DNS/DHCP page.
Based on estimated importance of tabs
* move common (old) tabs to be earlier
* move the less frequently used (new) tabs later

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 7735bc1fdd2a98dbce15d52c1b1546d442cfcd40)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 4fd2e66badde74ebc0f94bb0be7ffb538c6e73df..795b98f4c83efffce6017dddb6a45742eff84072 100644 (file)
@@ -254,16 +254,16 @@ return view.extend({
                s.addremove = false;
 
                s.tab('general', _('General Settings'));
-               s.tab('relay', _('Relay'));
-               s.tab('files', _('Resolv and Hosts Files'));
-               s.tab('pxe_tftp', _('PXE/TFTP Settings'));
                s.tab('advanced', _('Advanced Settings'));
                s.tab('leases', _('Static Leases'));
+               s.tab('files', _('Resolv and Hosts Files'));
                s.tab('hosts', _('Hostnames'));
+               s.tab('ipsets', _('IP Sets'));
+               s.tab('relay', _('Relay'));
                s.tab('srvhosts', _('SRV'));
                s.tab('mxhosts', _('MX'));
                s.tab('cnamehosts', _('CNAME'));
-               s.tab('ipsets', _('IP Sets'));
+               s.tab('pxe_tftp', _('PXE/TFTP Settings'));
 
                s.taboption('general', form.Flag, 'domainneeded',
                        _('Domain required'),