mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Remove legacy actions from calendar listview
This commit is contained in:
parent
1ae9925cd5
commit
b1efac06c0
@ -155,7 +155,7 @@ class calendar_uilist extends calendar_ui
|
|||||||
'filter' => 'after',
|
'filter' => 'after',
|
||||||
'order' => 'cal_start',// IO name of the column to sort after (optional for the sortheaders)
|
'order' => 'cal_start',// IO name of the column to sort after (optional for the sortheaders)
|
||||||
'sort' => 'ASC',// IO direction of the sort: 'ASC' or 'DESC'
|
'sort' => 'ASC',// IO direction of the sort: 'ASC' or 'DESC'
|
||||||
'default_cols' => '!week,weekday,cal_title,cal_description,recure,cal_location,cal_owner,cat_id,pm_id,legacy_actions',
|
'default_cols' => '!week,weekday,cal_title,cal_description,recure,cal_location,cal_owner,cat_id,pm_id',
|
||||||
'filter_onchange' => "app.calendar.filter_change",
|
'filter_onchange' => "app.calendar.filter_change",
|
||||||
'header_left' => 'calendar.list.dates',
|
'header_left' => 'calendar.list.dates',
|
||||||
'row_id' => 'row_id', // set in get rows "$event[id]:$event[recur_date]"
|
'row_id' => 'row_id', // set in get rows "$event[id]:$event[recur_date]"
|
||||||
@ -377,15 +377,13 @@ class calendar_uilist extends calendar_ui
|
|||||||
$rows = $js_integration_data = array();
|
$rows = $js_integration_data = array();
|
||||||
foreach((array) $this->bo->search($search_params) as $event)
|
foreach((array) $this->bo->search($search_params) as $event)
|
||||||
{
|
{
|
||||||
if (($readonlys['edit['.$event['id'].']'] = !$this->bo->check_perms(EGW_ACL_EDIT,$event)))
|
if (!$this->bo->check_perms(EGW_ACL_EDIT,$event))
|
||||||
{
|
{
|
||||||
$event['class'] .= 'rowNoEdit ';
|
$event['class'] .= 'rowNoEdit ';
|
||||||
}
|
}
|
||||||
// show only edit or view icon, not both
|
|
||||||
$readonlys['view['.$event['id'].']'] = !$readonlys['edit['.$event['id'].']'];
|
|
||||||
|
|
||||||
// Delete disabled for other applications
|
// Delete disabled for other applications
|
||||||
if (($readonlys['delete['.$event['id'].']'] = !$this->bo->check_perms(EGW_ACL_DELETE,$event) || !is_numeric($event['id'])))
|
if (!$this->bo->check_perms(EGW_ACL_DELETE,$event) || !is_numeric($event['id']))
|
||||||
{
|
{
|
||||||
$event['class'] .= 'rowNoDelete ';
|
$event['class'] .= 'rowNoDelete ';
|
||||||
}
|
}
|
||||||
@ -395,8 +393,6 @@ class calendar_uilist extends calendar_ui
|
|||||||
{
|
{
|
||||||
$event['class'] .= 'rowDeleted ';
|
$event['class'] .= 'rowDeleted ';
|
||||||
}
|
}
|
||||||
// Filemanager disabled for other applications
|
|
||||||
$readonlys['filemanager['.$event['id'].']'] = !is_numeric($event['id']);
|
|
||||||
|
|
||||||
$event['recure'] = $this->bo->recure2string($event);
|
$event['recure'] = $this->bo->recure2string($event);
|
||||||
if ($params['csv_export'])
|
if ($params['csv_export'])
|
||||||
@ -437,7 +433,6 @@ class calendar_uilist extends calendar_ui
|
|||||||
}
|
}
|
||||||
if ($is_private)
|
if ($is_private)
|
||||||
{
|
{
|
||||||
$readonlys['filemanager['.$event['id'].']'] = $readonlys['view['.$event['id'].']'] = true; // no view icon
|
|
||||||
$event['class'] .= 'rowNoView ';
|
$event['class'] .= 'rowNoView ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row class="th">
|
<row class="th">
|
||||||
@ -53,10 +52,6 @@
|
|||||||
<description value="Last changed"/>
|
<description value="Last changed"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
<nextmatch-customfields label="Custom fields" id="cfs" readonly="true"/>
|
<nextmatch-customfields label="Custom fields" id="cfs" readonly="true"/>
|
||||||
<hbox class="noPrint" label="Actions">
|
|
||||||
<nextmatch-header statustext="Check all" label="Actions" id="legacy_actions" class="noPrint"/>
|
|
||||||
<button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('calendar.list.rows').toggleAllSelected(); return false;" image="check"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
</row>
|
||||||
<row class="$row_cont[category] $row_cont[class]" valign="top">
|
<row class="$row_cont[category] $row_cont[class]" valign="top">
|
||||||
<vbox id="start">
|
<vbox id="start">
|
||||||
@ -101,19 +96,6 @@
|
|||||||
<date-time id="${row}[modified]" readonly="true"/>
|
<date-time id="${row}[modified]" readonly="true"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
<customfields-list id="$row"/>
|
<customfields-list id="$row"/>
|
||||||
<vbox options="0,0" class="noPrint">
|
|
||||||
<hbox class="noPrint">
|
|
||||||
<button statustext="View this event" label="View" id="view[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&cal_id=$row_cont[id]&date=$row_cont[date]'),'425','dependent=yes,width=750,height=450,scrollbars=yes,status=yes'); return false;" image="view"/>
|
|
||||||
<button statustext="Edit this event" label="Edit" id="edit[$row_cont[id]]" onclick="$row_cont[edit_link]" image="edit"/>
|
|
||||||
<button statustext="Delete this event" label="Delete" id="delete[$row_cont[id]]" onclick="return confirm('Delete this event');" image="delete"/>
|
|
||||||
<checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[id]:$row_cont[recur_date]"/>
|
|
||||||
</hbox>
|
|
||||||
<hbox options="0,0">
|
|
||||||
<button label="merge" id="document[$row_cont[id]:$row_cont[recur_date]]" image="etemplate/merge"/>
|
|
||||||
<button label="Filemanager" id="filemanager[$row_cont[id]]" onclick="window.location.href=egw::link('/index.php','menuaction=filemanager.filemanager_ui.index&path=/apps/calendar/$row_cont[id]'); return false;" image="filemanager/navbar" class="image16"/>
|
|
||||||
<button label="Add timesheet entry" id="timesheet[$row_cont[info_id]]" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.edit&link_app[]=$row_cont[app]&cat_id=$row_cont[category]&link_id[]=$row_cont[app_id]$row_cont[extra_links]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;" image="timesheet"/>
|
|
||||||
</hbox>
|
|
||||||
</vbox>
|
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
@ -136,13 +118,6 @@
|
|||||||
<row>
|
<row>
|
||||||
<nextmatch id="nm" template="calendar.list.rows" span="all"/>
|
<nextmatch id="nm" template="calendar.list.rows" span="all"/>
|
||||||
</row>
|
</row>
|
||||||
<row class="noPrint" disabled="!@nm[selectcols]=/legacy_actions/">
|
|
||||||
<description/>
|
|
||||||
<hbox align="right">
|
|
||||||
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_globalObjectManager.getObjectById('calendar.list.rows').executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/>
|
|
||||||
<button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('calendar.list.rows').toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<styles>
|
<styles>
|
||||||
|
Loading…
Reference in New Issue
Block a user