Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5158:63294ed25e84
issue1842687: Keywords: After creating, stay in "Create New" mode.
Added support for __redirect_to form variable to the new action. If
set the value should be a url. If __redirect_to is present, the user is
directed to the url after the new action has completed successfully.
E.G. when creating new keywords you often want to stay on the create
new keyword page rather than change to the "Edit keyword" page. Setting
__redirect_to to the new keyword creation url lets you keep adding new
keywords.
This mechanism works for any @action=new. So you could keep the user
on an "add new issue" page so they can keep adding issues one after the
other.
Also change the classic tracker keyword.item.html page to have a
checkbox (checked by default) to stay on the "new keyword" page rather
than displaying the newly created keyword item.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 22 Jul 2016 16:32:01 -0400 |
| parents | 882fa4d9bead |
| children | 12190efa30d4 |
comparison
equal
deleted
inserted
replaced
| 5157:ae2a5d1afdd5 | 5158:63294ed25e84 |
|---|---|
| 1537 Perform an edit of an item in the database. There are some `special form | 1537 Perform an edit of an item in the database. There are some `special form |
| 1538 variables`_ you may use. | 1538 variables`_ you may use. |
| 1539 | 1539 |
| 1540 **new** | 1540 **new** |
| 1541 Add a new item to the database. You may use the same `special form | 1541 Add a new item to the database. You may use the same `special form |
| 1542 variables`_ as in the "edit" action. | 1542 variables`_ as in the "edit" action. Also you can set the |
| 1543 ``__redirect_to`` form variable to the URL that should be displayed after | |
| 1544 the new item is created. This is useful if you want to create another | |
| 1545 item rather than edit the newly created item. | |
| 1543 | 1546 |
| 1544 **retire** | 1547 **retire** |
| 1545 Retire the item in the database. | 1548 Retire the item in the database. |
| 1546 | 1549 |
| 1547 **editCSV** | 1550 **editCSV** |
| 1603 - Attach newly created items to a multilink property of the | 1606 - Attach newly created items to a multilink property of the |
| 1604 current item. | 1607 current item. |
| 1605 - Remove items from a multilink property of the current item. | 1608 - Remove items from a multilink property of the current item. |
| 1606 - Specify that some properties are required for the edit | 1609 - Specify that some properties are required for the edit |
| 1607 operation to be successful. | 1610 operation to be successful. |
| 1611 - Redirect to a different page after creating a new item (new action | |
| 1612 only, not edit action). Usually you end up on the page for the | |
| 1613 created item. | |
| 1608 - Set up user interface locale. | 1614 - Set up user interface locale. |
| 1609 | 1615 |
| 1610 These operations will only take place if the form action (the | 1616 These operations will only take place if the form action (the |
| 1611 ``@action`` variable) is "edit" or "new". | 1617 ``@action`` variable) is "edit" or "new". |
| 1612 | 1618 |
| 1709 properties, the form value is converted to the | 1715 properties, the form value is converted to the |
| 1710 appropriate | 1716 appropriate |
| 1711 | 1717 |
| 1712 Any of the form variables may be prefixed with a classname or | 1718 Any of the form variables may be prefixed with a classname or |
| 1713 designator. | 1719 designator. |
| 1720 | |
| 1721 Setting the form variable: ``__redirect_to=`` to a url when @action=new | |
| 1722 redirects the user to the specified url after successfully creating | |
| 1723 the new item. This is useful if you want the user to create another | |
| 1724 item rather than edit the newly created item. | |
| 1714 | 1725 |
| 1715 Two special form values are supported for backwards compatibility: | 1726 Two special form values are supported for backwards compatibility: |
| 1716 | 1727 |
| 1717 @note | 1728 @note |
| 1718 This is equivalent to:: | 1729 This is equivalent to:: |
