modules/admin-full: Optimized mount-point configuration page
authorSteven Barth <steven@midlink.org>
Wed, 13 Aug 2008 23:19:48 +0000 (23:19 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 13 Aug 2008 23:19:48 +0000 (23:19 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua

index be2562c..6d1f057 100644 (file)
@@ -16,6 +16,7 @@ m = Map("fstab", translate("a_s_fstab"))
 mount = m:section(TypedSection, "mount", translate("a_s_fstab_mountpoints"), translate("a_s_fstab_mountpoints1"))
 mount.anonymous = true
 mount.addremove = true
 mount = m:section(TypedSection, "mount", translate("a_s_fstab_mountpoints"), translate("a_s_fstab_mountpoints1"))
 mount.anonymous = true
 mount.addremove = true
+mount.template = "cbi/tblsection"
 
 mount:option(Flag, "enabled", translate("enable"))
 mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
 
 mount:option(Flag, "enabled", translate("enable"))
 mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
@@ -27,6 +28,7 @@ mount:option(Value, "options", translate("options"), translatef("manpage", "sieh
 swap = m:section(TypedSection, "swap", "SWAP", translate("a_s_fstab_swap1"))
 swap.anonymous = true
 swap.addremove = true
 swap = m:section(TypedSection, "swap", "SWAP", translate("a_s_fstab_swap1"))
 swap.anonymous = true
 swap.addremove = true
+swap.template = "cbi/tblsection"
 
 swap:option(Flag, "enabled", translate("enable"))
 swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
 
 swap:option(Flag, "enabled", translate("enable"))
 swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))