Project

General

Profile

Feature proposal #1350 » toolbar.comprofiler.html.patch

krileon, 27 April 2011 17:34

View differences:

administrator/components/com_comprofiler/toolbar.comprofiler.html.php
}
/**
* Writes a common 'copy' button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
static function copyList( $task='edit', $alt=null ) {
$listprompt = CBTxt::T('Please select an item from the list to copy');
CBtoolmenuBar::addToToolBar($task, $alt, 'Copy', 'copy', false, $listprompt); // CBTxt::T("....") done in addToToolBar
}
/**
* Writes a common 'copy' button for a list of records.
* Extended version of copyList() calling hideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
static function copyListX( $task='edit', $alt=null ) {
$listprompt = CBTxt::T('Please select an item from the list to copy');
CBtoolmenuBar::addToToolBar($task, $alt, 'Copy', 'copy', true, $listprompt); // CBTxt::T("....") done in addToToolBar
}
/**
* Writes a common 'delete' button for a list of records
* @param string Postscript for the 'are you sure' message
* @param string An override for the task
......
static function _DEFAULT_FIELD() {
CBtoolmenuBar::startTable();
CBtoolmenuBar::custom( 'newField', 'new.png', 'new_f2.png', 'New Field', false );
CBtoolmenuBar::copyList('copyField');
CBtoolmenuBar::editList('editField');
CBtoolmenuBar::deleteList( CBTxt::T('The Field and all user data associated to this field will be lost and this cannot be undone!'), 'removeField');
CBtoolmenuBar::spacer();
(4-4/4)