Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #016503: TC-80: Sending information collection form is brok…
…en in admin2 Add support for allowing extensions to easily defining custom action handlers based on post action name. And fix feedback_form.tl issue with sender name missing on installs taht have sender name on feedback class.
- Loading branch information
Showing
12 changed files
with
127 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
{* Content (pre)view in content window. *} | ||
{node_view_gui content_node=$node view='admin_preview'} | ||
{def $custom_actions = $node.object.content_action_list} | ||
{if $custom_actions} | ||
<form method="post" action={'content/action'|ezurl}> | ||
<input type="hidden" name="TopLevelNode" value="{$node.object.main_node_id}" /> | ||
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> | ||
<input type="hidden" name="ContentObjectID" value="{$node.contentobject_id}" /> | ||
{/if} | ||
|
||
{node_view_gui content_node=$node view='admin_preview'} | ||
|
||
{if $custom_actions} | ||
<div class="button-right"> | ||
<div class="block"> | ||
{* Custom content action buttons. *} | ||
{foreach $custom_actions as $custom_action} | ||
<input class="button" type="submit" name="{$custom_action.action}" value="{$custom_action.name}" /> | ||
{/foreach} | ||
</div> | ||
</div> | ||
</form> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters