Mercurial > p > roundup > code
diff CHANGES.txt @ 5185:349bef975367
Make @template support two alternate templates for error and ok cases.
Setting @template=oktmpl|errortmpl in a form will display the next
page using the oktmpl if the change did not cause an error. If
submitting the form caused an error (raised by an auditor or something
else), the user is displayed a page using the errortmpl. Docs in
customizing.tmpl. Look for modal edit.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 17 Feb 2017 19:44:15 -0500 |
| parents | 5c8808f55d93 |
| children | 36630a062fb5 |
line wrap: on
line diff
--- a/CHANGES.txt Fri Feb 17 19:33:01 2017 -0500 +++ b/CHANGES.txt Fri Feb 17 19:44:15 2017 -0500 @@ -160,6 +160,13 @@ string, the string is appended to the displayed option value. This allows the user to reset the value for the menu (select) to the original value. (John Rouillard) +- @template html url parameter can be set to "oktmpl|errortmpl". When + a form is submitted, if the form passes validation the oktmpl is + used for the resulting page. If the form fails submission the + errortmpl page is used to display the form. The errortmpl will + usually be the same template used to edit the form. See the section + on "Implementing Modal Editing Using @template" in + ``customizing.txt``. (John Rouillard) Fixed:
