• last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added API to set errors on form elements

Clear the formerror array first, otherwise there are conflicts with multiple forms on one page

Made the form bomb when there's a validation error in a hidden element, because these errors are very hard to find, and cause the form to just go back in the face of the user over and over again. Better to bomb and make it explicit.

Merged over the get_errors proc from HEAD

  1. … 1 more file in changeset.
Added 'show_required_p' flag to forms, made standard-lars the default form style, and added a parameter for the default list style, which won't be relevant until I commit the list builder later, but it doesn't hurt any.

  1. … 3 more files in changeset.
merge of 4.6.3b1 to HEAD

  1. … 107 more files in changeset.
Added documentation for my new form builder enhancements

  1. … 1 more file in changeset.
Added parameter DefaultFormStyle for the default form style to use when none is specified. Used to be hard-coded to 'standard', now there's a site-wide setting for it.

  1. … 2 more files in changeset.
Renamed the action implementation from form:action to form:formaction to avoid clashes with normal form elements named 'action'.

Upgrade to 4.6.2: Form builder extensions, richtext widget, etc.

  1. … 19 more files in changeset.
cross link the form, element, widget, and validate procs, add template::data::validate::string, https should be valid url

  1. … 3 more files in changeset.
Changes to how buttons work: Form-builder now takes care of determining which buttons to use, not the template; Added actions functionality to form builder

  1. … 10 more files in changeset.
Implemented Tilmann's suggestion of cancel_url/cancel_label switches to form create, so the form builder can handle the cancel button for you.

  1. … 1 more file in changeset.
Implemented some enhancements to the form builder:

- support a -mode switch on forms, which can be either 'display' or 'edit'. If 'display', all fields are grayed out, and the pretty value is displayed instead of the internal value (e.g. the label of the element of a list).

- support multiple buttons on the form. Used for the 'Edit' button, but can be used for other buttons as well.

- Fixed all the standard templates to include the new buttons and to use the <label> tag.

- Added an example to the documentation showing how this new display/edit mode looks.

  1. … 15 more files in changeset.
Added a template::form::get_error function that returns an "array get" version of the errors on the form. It's mostly a convenient proc for debugging forms that don't work as expected due to the common situation where some hidden form element contains errors that cause the form to not process.

added dummy documentation procs for element form and multirow, documented template::multirow

  1. … 3 more files in changeset.
A few more doc strings... This looks like the last of the existing

docs in all of acs-core

  1. … 3 more files in changeset.
About 60 more ad_procs in acs-templating now have doc strings; still more to go

  1. … 8 more files in changeset.

Removed some log file noise (ns_log notice)

  1. … 3 more files in changeset.

Incorporated Bruno Mattarollo's HTML fixes (adding quotes to stuff, etc)

  1. … 2 more files in changeset.
tested and fixed the template query db api

  1. … 26 more files in changeset.
OpenACS 4.x

  1. … 1321 more files in changeset.
Initial revision

  1. … 1321 more files in changeset.