From: Andrew Shadura Date: Sat, 8 Oct 2016 16:41:52 +0000 (+0200) Subject: luci-mod-admin-full: routes: specify sizes for metric and MTU X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F821%2Fhead;p=project%2Fluci.git luci-mod-admin-full: routes: specify sizes for metric and MTU Specify reasonable sizes for metric and MTU fields to prevent the table from being too wide. Signed-off-by: Andrew Shadura --- diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua index e5f308e6da..1970f36a28 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua @@ -34,11 +34,13 @@ g.rmempty = true metric = s:option(Value, "metric", translate("Metric")) metric.placeholder = 0 metric.datatype = "range(0,255)" +metric.size = 5 metric.rmempty = true mtu = s:option(Value, "mtu", translate("MTU")) mtu.placeholder = 1500 mtu.datatype = "range(64,9000)" +mtu.size = 5 mtu.rmempty = true routetype = s:option(Value, "type", translate("Route type")) @@ -74,11 +76,13 @@ if fs.access("/proc/net/ipv6_route") then metric = s:option(Value, "metric", translate("Metric")) metric.placeholder = 0 metric.datatype = "range(0,65535)" -- XXX: not sure + metric.size = 5 metric.rmempty = true mtu = s:option(Value, "mtu", translate("MTU")) mtu.placeholder = 1500 mtu.datatype = "range(64,9000)" + mtu.size = 5 mtu.rmempty = true routetype = s:option(Value, "type", translate("Route type"))