Jo-Philipp Wich
7c0ea17623
libs/cbi: implement tabbing to split large sections and group options in tabs
2009-08-16 03:29:46 +00:00
Jo-Philipp Wich
892ed55ba0
libs/cbi: attach pcdata() to template scope and use it
2009-08-13 17:14:25 +00:00
Jo-Philipp Wich
6b1be858be
libs/cbi: properly escape values in dynlist widget ( #79 )
2009-08-13 14:36:18 +00:00
Jo-Philipp Wich
68af07222c
libs/cbi: fix default property of ListValue fields
2009-07-31 23:22:10 +00:00
Jo-Philipp Wich
f311d13ca1
libs/cbi: fix error reporting in map loading
2009-07-31 00:13:24 +00:00
Steven Barth
2561ed9b7a
Fix errorhandling in Delegators
2009-07-30 16:58:37 +00:00
Steven Barth
d7a90e994a
Fix delegators
2009-07-30 16:05:12 +00:00
Jo-Philipp Wich
8fcd841aa9
convert luci.fs users to nixio.fs api
2009-07-19 00:24:58 +00:00
Steven Barth
30b216f774
Drop support for luaposix and bitlib (obsoleted by nixio)
...
Mark luci.fs as deprecated
2009-06-21 13:42:26 +00:00
Steven Barth
341f757255
Merge fixes / improvements
2009-06-20 07:14:36 +00:00
Steven Barth
4209a47b6e
Extend CBI Delegators, fix some CBI issue
2009-05-25 10:31:12 +00:00
Steven Barth
ee690abb0f
CBI Delegators (Wizards)
...
Example CBI-Map:
d = Delegator()
d.allow_back = true -- Back-button
d:add("step1", load("mywizard/form1")) -- model/cbi/mywizard/form1
d:add("step2", load("mywizard/form2"))
return d
2009-05-24 17:17:53 +00:00
Jo-Philipp Wich
383cac453b
libs/cbi: workaround git deficiencies
2009-04-16 10:36:29 +00:00
Steven Barth
0acedfff3e
Fix some fallout
2009-04-09 13:59:50 +00:00
Jo-Philipp Wich
9835296ba2
trunk: prepare LuCI to handle .lua.gz files
2009-04-04 22:54:16 +00:00
Steven Barth
f3deef9ec5
Backport Skip-Button support
2009-04-03 18:08:25 +00:00
Jo-Philipp Wich
0c7effc0c0
libs/cbi: properly handle uvl errors without childs
2009-03-29 22:13:26 +00:00
Steven Barth
8368432a63
Fix last commit
2009-03-26 12:39:43 +00:00
Steven Barth
b9fbed39ca
Correctly set status FORM_PROCEED instead of FORM_CHANGED if user
...
creates / deletes a field or section
2009-03-26 12:37:26 +00:00
Steven Barth
7b5d67305e
Allow SimpleForm handler to set CBI status
2009-03-09 14:28:55 +00:00
Steven Barth
ad57125f41
Allow combination of SimpleForms as Forms into pages with Maps
...
Allow subsequent changes of Table data
2009-03-07 11:30:41 +00:00
Steven Barth
1eec55dd47
Fix option dependencies, this was lost in some IE fixing stuff
2009-02-23 22:53:42 +00:00
Jo-Philipp Wich
eedf535996
libs/cbi: remove workaround for libuci
2009-01-20 00:51:01 +00:00
Jo-Philipp Wich
10ab31ef5f
libs/cbi:
...
- add workaround for libuci-lua bug when writing list values
- compare values against keyllist not vallist when validating StaticList
-> fixes StaticList and DynamicList widgets
2009-01-20 00:05:18 +00:00
Steven Barth
4957144262
Autoapplying on creation / deletion of sections is annoying, disable it.
2009-01-17 13:06:18 +00:00
Jo-Philipp Wich
c730262d14
libs/cbi: implement .sectionhead and .sectiondesc properties to allow labelling the id column in table layouts
2009-01-12 17:31:19 +00:00
Jo-Philipp Wich
dfbd41b2dc
libs/cbi: also set id attribute for hidden fields
2009-01-11 15:45:34 +00:00
Jo-Philipp Wich
fb7aea55e8
libs/cbi: add support for hidden form fields in sections
2009-01-11 03:44:04 +00:00
Steven Barth
85f780f576
Resolve dependencies when a combobox is updated.
2009-01-09 10:57:28 +00:00
Steven Barth
014d971eab
Fix urltoken passing on several pages
2008-12-22 21:54:20 +00:00
Steven Barth
0b34ab07d4
Scope compatibility fixes
2008-11-29 21:58:39 +00:00
Steven Barth
6b6359a7ef
Enable rmempty by default
2008-11-27 22:03:50 +00:00
Jo-Philipp Wich
6114c47269
* luci/i18n/french: refresh and fix french translation, thanks! ( fixes #4 )
2008-11-09 22:42:36 +00:00
Steven Barth
f64847e2dd
Fix a nasty Internet Suxplorer bug which prevented XHR forms from being correctly submitted.
2008-11-08 15:27:31 +00:00
Steven Barth
a5cb3b04cb
Skip validation of options on second parse cycle
2008-11-06 21:00:16 +00:00
Steven Barth
caf05a86f3
Workaround some Heisenbug
2008-11-06 18:32:07 +00:00
Steven Barth
9f28871ffc
Fix error handling for SimpleForms
2008-11-05 21:12:26 +00:00
Steven Barth
5c36f21751
Handle empty fields correctly
2008-11-05 14:53:37 +00:00
Steven Barth
e0e58e842d
Overall CBI improvements
2008-11-03 19:20:21 +00:00
Steven Barth
14a2e32142
Merge CBI change-detection
2008-11-03 10:05:48 +00:00
Steven Barth
c7a06b61c7
Extend CBI state handling
2008-11-01 18:32:02 +00:00
Steven Barth
ae6fd93b8c
Add XHR CBI helper
2008-11-01 17:11:11 +00:00
Steven Barth
ea9b377ec5
Merge pageactions
2008-11-01 17:11:02 +00:00
Steven Barth
e29810c534
* set .pageaction = false transparently in cbi SimpleForm constructor
2008-11-01 17:10:50 +00:00
Steven Barth
8c4492db5f
Removed UCI Save/Apply cache from Essentials
...
Made CBI controllers configurable
2008-10-31 09:35:11 +00:00
Jo-Philipp Wich
50442d7438
* luci/libs/cbi: fix possible "Error in template cbi/full_valuefooter: ?:0: attempt to get length of field 'description' (a nil value)"
2008-10-30 02:39:54 +00:00
Steven Barth
ac3489049f
Added missing submitstate-function to tables pseudo map
2008-10-21 20:22:42 +00:00
Steven Barth
de4b0abeb9
Propagate CBI status via HTTP-Header
2008-10-20 22:35:11 +00:00
Jo-Philipp Wich
76f8a9cfd2
* luci/themes: fix small styling issue
2008-10-20 19:02:26 +00:00
Steven Barth
c31dc4f97f
CBI: Push savestatus to commit_handler
2008-10-19 19:01:50 +00:00
Jo-Philipp Wich
eb05b1ee7e
* luci/themes/openwrt.org: first round of layout fixes for IE6
2008-10-14 22:55:44 +00:00
Steven Barth
39efe2207d
Fixed a typo in button template
2008-10-11 11:40:44 +00:00
Jo-Philipp Wich
b618361bf1
* luci/libs/cbi: implement file browse fields
...
* luci/modules/admin-full: add file browse controller
2008-10-10 21:52:22 +00:00
Jo-Philipp Wich
bfb5a53c45
* luci/libs/cbi: implement addremove_template
2008-10-10 11:47:32 +00:00
Jo-Philipp Wich
c6143b89d3
* luci/libs/cbi: also set css class names for dynamically generated select lists
2008-10-07 16:01:10 +00:00
Jo-Philipp Wich
8ecff0a9cc
* luci/libs/cbi: add css classes to input fields - needed for IE compat
2008-10-07 15:41:15 +00:00
Jo-Philipp Wich
86e1aebb59
* luci-trunk: huge xhtml, css and accessibility improvement patch - thanks Alina!
2008-10-07 13:10:24 +00:00
Steven Barth
fb2f4af1fb
Fixed a typo which prevented proper dependency tracking for additional fields
2008-09-30 21:13:14 +00:00
Jo-Philipp Wich
b869dfa552
* luci/libs/cbi: remove leftover debugging code
2008-09-23 13:32:04 +00:00
Jo-Philipp Wich
c0b2cda50e
* luci/libs: move upload dispatching from dispatcher to cbi.load()
2008-09-23 13:30:07 +00:00
Jo-Philipp Wich
6b3985b6be
* luci/libs/cbi:
...
- implement file upload fields
- change default enctype in forms to multipart/form-data
- add upload template
* luci/libs/web:
- dispatch file uploads to cbi form fields
* luci/i18n:
- add german and english translations for file upload fields
2008-09-23 00:10:51 +00:00
Jo-Philipp Wich
dc253f4af4
* luci/libs/cbi: implement commit hooks in cbi maps
...
* luci/moules/admin-mini: reload global config namespace when change theme or language (for persistent environments)
* luci/moules/admin-full: reload global config namespace when change theme or language (for persistent environments)
2008-09-20 22:11:41 +00:00
Steven Barth
712424dc0c
Overall CBI improvements: DummyValue handling, dependency conflicts, ...
2008-09-19 10:42:02 +00:00
Steven Barth
6785c3ed4b
Work around an ugly Opera and Internet Explorer event handling bug.
2008-09-18 14:36:26 +00:00
Steven Barth
309a448a1f
Don't validate dependencies for fields which are not part of the form
2008-09-17 12:06:05 +00:00
Steven Barth
38e60dcf9b
More IE compatibility fixes
2008-09-16 15:51:11 +00:00
Steven Barth
0a0220ca29
Internet suXplorer JavaScript compatibility fixes
2008-09-16 10:08:20 +00:00
Steven Barth
d0442f8aab
libs/cbi: Fix option initialisation errors
2008-09-14 21:58:55 +00:00
Steven Barth
f9303705a0
Overall CBI-UVL ineraction fixes
2008-09-13 12:20:39 +00:00
Jo-Philipp Wich
8d372d2f28
* luci/libs/cbi: better layout for apply output
...
* luci/themes: introduce new css class for apply ul
2008-09-08 16:51:50 +00:00
Jo-Philipp Wich
eff278317e
* luci/libs/cbi: fix html errors in cbi templates
2008-09-08 00:34:27 +00:00
Steven Barth
19c79a30b9
Fixed DHCP-Options and some CBI stuff
2008-09-07 23:50:58 +00:00
Steven Barth
2590722de0
libs/cbi: Fixed DynamicLists
2008-09-07 23:03:05 +00:00
Steven Barth
7fb577f21e
Fixed last commit
2008-09-07 22:55:59 +00:00
Steven Barth
7334fc65b2
Fixed a swap of keys and descriptions in additional fields of dynamic sections
2008-09-07 22:55:10 +00:00
Steven Barth
d8282d382b
libs/cbi: Catch errors while creating named sections
2008-09-07 21:22:39 +00:00
Steven Barth
7bcd7e67d4
Fixed last commit
2008-09-07 16:27:01 +00:00
Steven Barth
85f9c51016
libs/cbi: Don't validate on reparse after commiting
2008-09-07 16:25:42 +00:00
Jo-Philipp Wich
c5278e17dc
* luci/libs/cbi: fix error assignment in cbi sections
2008-09-06 22:37:56 +00:00
Steven Barth
38bdb5f504
Fixed a whitespace issue
2008-09-06 16:09:58 +00:00
Steven Barth
9befed193a
cbi: Increare responsiveness of "Save & Apply"
2008-09-06 14:59:48 +00:00
Steven Barth
dbde0216c2
Rewrote UCI apply logic
2008-09-06 13:51:51 +00:00
Jo-Philipp Wich
7f7a600b12
* luci/libs/cbi: remove dead code
2008-09-05 23:25:51 +00:00
Jo-Philipp Wich
898c45743a
* luci/libs/cbi: improved error integration with uvl
2008-09-05 23:21:37 +00:00
Steven Barth
3e9e582572
Heavy memory/performance optimizations #1
2008-09-05 18:34:46 +00:00
Steven Barth
8af9060efd
libs/cbi: Pass default values from UVL
2008-09-05 15:58:19 +00:00
Steven Barth
9243e20e27
Added .href parameter to DummyValues
2008-09-05 13:32:59 +00:00
Steven Barth
cc4c0688b5
Fix whitespace issues in CBI template
2008-09-05 11:36:47 +00:00
Steven Barth
1f2289b41e
libs/cbi: Use a Combobox for optional values if a section is dynamic and has defined optional fields
2008-09-04 09:55:46 +00:00
Steven Barth
ccc02d4188
Fixed event handlers to be more standards compliant
...
(fixed dependency tracking not working correctly on Konqueror and others)
2008-09-04 09:31:54 +00:00
Steven Barth
34ab619ee3
libs/cbi: Compatibility changes for non-standards-compliant browsers
2008-09-03 22:51:27 +00:00
Steven Barth
3568e2ba50
libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output
2008-09-01 19:51:37 +00:00
Steven Barth
05d6b9684c
libs/cbi: Make sure newly created sections have optional field selectors
2008-08-30 20:32:13 +00:00
Steven Barth
d5cfb28f9b
libs/cbi: Add a check whether a section was recently created
2008-08-30 20:32:07 +00:00
Steven Barth
171cbec25d
libs/cbi: Simplified _uvl_validate_section
2008-08-30 15:41:02 +00:00
Steven Barth
0e05dbb02e
libs/cbi: Use :is instead of .code == for UVL error tests
2008-08-30 15:29:09 +00:00
Steven Barth
63706a9f43
libs/cbi: Disable strict mode for now
2008-08-30 12:47:14 +00:00
Steven Barth
055cef5336
Optimized UVL validation handling
2008-08-30 12:11:27 +00:00
Steven Barth
7e792dad2e
libs/cbi: Create section after validation to avoid validation errors with empty fields
2008-08-30 10:18:56 +00:00
Steven Barth
ccf73ec14e
libs/cbi: Temporarily allow invalid configuration values to be saved
2008-08-30 09:21:38 +00:00