summaryrefslogtreecommitdiffstats
path: root/lib/controllerfunctions.lua
Commit message (Collapse)AuthorAgeFilesLines
* Removed controllerfunction.lua and moved handle_form and handle_clientdata ↵Ted Trask2012-02-231-99/+0
| | | | | | into mvc.lua mvc.lua has generic versions of the functions, overridden in acf_www and acf_cli with customizations
* Changed startstop to be a standard form by creating two model functions and ↵Ted Trask2012-02-221-7/+0
| | | | deleting the special controller function
* Make handle_form a little smarter about overriding form options from the modelTed Trask2012-02-221-2/+2
|
* Changed forms to always use 'submit' as name of submit button, plus allow ↵Ted Trask2012-02-221-3/+3
| | | | multiple submit buttons
* Fix parameter names with .'s to not assume clientdata converted to a table - ↵Ted Trask2010-12-101-1/+1
| | | | bug fix for cli.
* Modifed displayform and handle_clientdata to allow cfe groups in forms, ↵Ted Trask2010-10-151-3/+7
| | | | displayed under header tag.
* Modified handling of boolean fields to allow them to be hidden.Ted Trask2010-07-151-1/+1
|
* Fixed bug where single character entries in list were dropped.Ted Trask2010-07-061-1/+1
|
* Made command-line client work.Ted Trask2009-12-181-0/+17
|
* Changed status to use openrc status, changed startstop to enable all actions ↵root2009-06-041-6/+1
| | | | regardless of status.
* Changed the way startstop works in core to add a list of allowed actions. ↵ttrask2009-03-171-6/+4
| | | | | | Modified all ACFs that don't use the standard functions to work with new library method. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1730 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified viewfunctions to split displayform, creating displayformstart and ↵Ted Trask2008-10-221-3/+12
| | | | | | displayformend, to provide flexibility while still using the library. Also added support for hidden fields - including a common redir field. Removed redirectOnSuccess from controllerfunctions handle_form, and replaced it with the redir field. Removed redirectOnSuccess from controllers that used it and added handlecommandresults and redir entries to links and forms throughout many views. This will cause a redirect to the originating view when a form is successfully completed. acf_www-controller now includes orig_action in page_info to report the original action launched by the user. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1560 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed redirect_to_referrer with GET data. Moved handling of multi select ↵Ted Trask2008-07-121-16/+45
| | | | | | from acf_www-controller to controllerfunctions. Fixed form ids containing '.'. Added new handle_clientdata function to controllerfunctions. Modified password-controller to use handle_clientdata for multi select to work.k git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1299 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added generic form lsp file. A few updates to library functions and lsp files.Ted Trask2008-07-041-1/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1275 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Fixed expert page to work when prefix or controller has magic characters. ↵Ted Trask2008-07-041-1/+1
| | | | | | Added public getenabled function to modelfunctions and made controllerfunctions work with it. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1273 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changed interfaces to use controllerfunctions.Ted Trask2008-07-021-1/+4
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1268 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified core to create model and controller function libraries and some ↵Ted Trask2008-07-021-0/+51
common html views. Moved cfe to a library. Modified redirect_to_referrer function - may break some pages. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1267 ab2d0c66-481e-0410-8bed-d214d4d58bed