2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
18 s = m:section(TypedSection, "samba", "Samba")
21 s:option(Value, "name")
22 s:option(Value, "description")
23 s:option(Value, "workgroup")
24 s:option(Flag, "homes")
27 s = m:section(TypedSection, "sambashare")
30 s.template = "cbi/tblsection"
32 s:option(Value, "name", translate("name"))
33 s:option(Value, "path").titleref = luci.dispatcher.build_url("admin", "system", "fstab")
35 s:option(Value, "users").rmempty = true
37 ro = s:option(Flag, "read_only")
41 go = s:option(Flag, "guest_ok")
45 cm = s:option(Value, "create_mask")
49 dm = s:option(Value, "dir_mask")