[interchange] Allow cutomization of "DO ANOTHER" HTML block in the table editor.
Peter Ajamian <[email protected]>
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit a2e08351c7363db9147f251eb48a0e5dbd4f76fa Author: Peter Ajamian <[email protected]> Date: Tue Jan 25 17:32:02 2011 +1300 Allow cutomization of "DO ANOTHER" HTML block in the table editor. The DO ANOTHER block contains hard-coded text and return-pages used for radio buttons which is always displayed for new entries. This change allows customized HTML to replace it for when you want to use the table editor in your own custom admin pages. lib/Vend/Table/Editor.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lib/Vend/Table/Editor.pm b/lib/Vend/Table/Editor.pm index f97a298..d7861d3 100644 --- a/lib/Vend/Table/Editor.pm +++ b/lib/Vend/Table/Editor.pm @@ -4229,7 +4229,7 @@ EOF if($opt->{ui_new_item}) { my $aa_msg = l('Add another item'); my $rt_msg = l('Return to table select'); - chunk 'DO_ANOTHER', 'OUTPUT_MAP', <<EOF; + chunk 'DO_ANOTHER', 'OUTPUT_MAP', $opt->{ui_do_another} || <<EOF; <small> <input type="radio" class="$opt->{widget_class}" name="mv_nextpage" value="admin/flex_select" CHECKED>