Hello. I want to add a button to the header of quoted line items.For that I have a file named quote-data-list-header.php in custom/module/Quotes/clients/base/views/quote-data-list
BUT, the core (sugar's own) file looks like this:
$viewdefs['Quotes']['base']['view']['quote-data-list-header'] = array(
'selection' => array(
'type' => 'multi',
'actions' => array(
array(
'name' => 'group_button',
'type' => 'rowaction',
'label' => 'LBL_CREATE_GROUP_SELECTED_BUTTON_LABEL',
'tooltip' => 'LBL_CREATE_GROUP_SELECTED_BUTTON_TOOLTIP',
'acl_action' => 'edit',
),
array(
'name' => 'massdelete_button',
'type' => 'rowaction',
'label' => 'LBL_DELETE_SELECTED_LABEL',
'tooltip' => 'LBL_DELETE_SELECTED_TOOLTIP',
'acl_action' => 'delete',
),
),
),
);
No button or panel or anything. BUT ironically, there is something custom there(in the UI, not the the above file), but that is the result of a custom button from the quoted line ROW (NOT header). Short version: I want to replace this:
With a button. And that text is there because of this (in the ROW, not header)
$viewdefs['Products']['base']['view']['quote-data-group-list']=array(
'panels'=>array(
array(
'name'=>'products_quote_data_group_list',
'label'=>'LBL_PRODUCTS_QUOTE_DATA_LIST',
'fields'=>array(
array(
"name"=>'custom-pricing-button',
'label'=>'LBL_CUSTOM_PRICING_BUTTON',
'widthClass'=>'cell-large',
'type'=>'custom-pricing-button'
),