summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/cbi.lua
AgeCommit message (Collapse)Author
2012-01-08libs/web: remove debugging codeJo-Philipp Wich
2012-01-08libs/web: allow zero-length string literals when parsing datatypesJo-Philipp Wich
2012-01-08libs/web: introduce recursive expression support for datatypes, introduce ↵Jo-Philipp Wich
"or" and "and" datatypes The commit adds a recursive parser for datatype expressions which allows nesting of validators, this allows for complex expressions like "list(or(range(0,65535),'infinite'))" to allow a list of values which are either integers between 0 and 65535 or the literal string "inifinite". That change also deprecates combined datatypes like "ipaddr" ["or(ip4addr,ip6addr)"] or "host" ["or(hostname,ip4addr,ip6addr)"]
2011-12-20[PATCH] Naive fix for bug #208Jo-Philipp Wich
For SimpleSection, use the section name (always "1") instead of the section type in the CBI-like string used to identify the upload. This allows upload fields to be placed in SimpleSections. The fix changes a minimal number of lines, but does introduce some unnecessary confusion, it may or may not be better than a more thorough/invasive fix. Set the enctype for the form element in the simpleform view to be multipart/form-data because the default application/x-www-form-urlencoded does not support input files. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2011-10-26libs/web: move ifattr() and attr() helpers into dispatcher scope to make ↵Jo-Philipp Wich
them avilable to all templates, remove duplicate exports in cbi tempalte scope
2011-10-09libs/web: pass origin section id to :create() callback, needed when ↵Jo-Philipp Wich
multiple, filtered TypedSection instances of the same type are used within a single Map
2011-09-22libs/web: cbi: provide a "last_child" property to allow for more layout ↵Jo-Philipp Wich
control in form rendering
2011-01-29libs/web: improve cbi handling of Flag values, support usage of .default ↵Jo-Philipp Wich
attribute to signalize default-on checkboxes, this helps to deal with the reversed logic of various uci bools within OpenWrt configs
2011-01-20libs/web: implement sortable rows for uci reorderingJo-Philipp Wich
2010-12-05libs/web: handle empty tables in Map.set()Jo-Philipp Wich
2010-12-03libs/web: fix dynamic list handlingJo-Philipp Wich
2010-11-22libs/web: combine apply actions of all maps on a page, prevents concurrent XHRJo-Philipp Wich
2010-11-20libs/web: better server side handling of DynList valuesJo-Philipp Wich
2010-11-20libs/web: skip empty values in DynList widgetJo-Philipp Wich
2010-11-16libs/web: add range(min,max) datatype validatorJo-Philipp Wich
2010-10-30libs/web: implement forcewrite attribute for cbi optionsJo-Philipp Wich
2010-10-25libs/web: rework DynamicList widgetJo-Philipp Wich
2010-10-14libs/web: cbi: add new on_before_save and on_after_save hook, implement ↵Jo-Philipp Wich
:reset_values() for options supporting :value()
2010-10-14libs/web: fix various issues in cbi option error handling, call validator ↵Jo-Philipp Wich
for missing options to obtain error message
2010-10-12libs/web: rework cbi field validation, let validators return custom error ↵Jo-Philipp Wich
messages, properly handle errors in multiple sections
2010-10-12libs: merge libs/cbi into libs/webJo-Philipp Wich