mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Remove legacy actions from AB listview
This commit is contained in:
parent
3f6f7ff539
commit
dc656e85fd
@ -1456,10 +1456,8 @@ window.egw_LAB.wait(function() {
|
||||
|
||||
if ($query['filter'] && !($this->grants[(int)$query['filter']] & EGW_ACL_DELETE))
|
||||
{
|
||||
$readonlys["delete[$row[id]]"] = true;
|
||||
$row['class'] .= 'rowNoDelete ';
|
||||
}
|
||||
$readonlys["infolog[$row[id]]"] = !$GLOBALS['egw_info']['user']['apps']['infolog'];
|
||||
$row['class'] .= 'rowNoEdit '; // no edit in OrgView
|
||||
}
|
||||
else
|
||||
@ -1484,12 +1482,10 @@ window.egw_LAB.wait(function() {
|
||||
}
|
||||
if (!$this->check_perms(EGW_ACL_DELETE,$row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge' && $query['col_filter']['tid'] == addressbook_so::DELETED_TYPE))
|
||||
{
|
||||
$readonlys["delete[$row[id]]"] = true;
|
||||
$row['class'] .= 'rowNoDelete ';
|
||||
}
|
||||
if (!$this->check_perms(EGW_ACL_EDIT,$row))
|
||||
{
|
||||
$readonlys["edit[$row[id]]"] = true;
|
||||
$row['class'] .= 'rowNoEdit ';
|
||||
}
|
||||
|
||||
@ -1525,7 +1521,6 @@ window.egw_LAB.wait(function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
$readonlys["document[$row[id]]"] = !$this->prefs['default_document'];
|
||||
|
||||
// hide region for address format 'postcode_city'
|
||||
if (($row['addr_format'] = $this->addr_format_by_country($row['adr_one_countryname']))=='postcode_city') unset($row['adr_one_region']);
|
||||
@ -1553,10 +1548,7 @@ window.egw_LAB.wait(function() {
|
||||
// disable customfields column, if we have no customefield(s)
|
||||
if (!$this->customfields/* || !$this->prefs['no_auto_hide'] && !$customfields*/) $rows['no_customfields'] = true;
|
||||
|
||||
// disable filemanger icon if user has no access to filemanager
|
||||
$readonlys['filemanager/navbar'] = !isset($GLOBALS['egw_info']['user']['apps']['filemanager']);
|
||||
$readonlys['calendar'] = !isset($GLOBALS['egw_info']['user']['apps']['calendar']);
|
||||
|
||||
|
||||
$rows['order'] = $order;
|
||||
$rows['call_popup'] = $this->config['call_popup'];
|
||||
$rows['customfields'] = array_values($this->customfields);
|
||||
|
@ -52,7 +52,6 @@
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
<column width="75"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th">
|
||||
@ -124,10 +123,6 @@
|
||||
<nextmatch-sortheader label="Created" id="contact_created"/>
|
||||
<nextmatch-sortheader label="Last modified" id="contact_modified"/>
|
||||
</vbox>
|
||||
<hbox align="center" class="noPrint">
|
||||
<nextmatch-header align="center" label="Actions" id="legacy_actions"/>
|
||||
<button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('addressbook.index.rows').toggleAllSelected(); return false;" image="check"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row class="$row_cont[cat_id] $row_cont[class]" valign="top">
|
||||
<image align="center" label="$row_cont[type_label]" src="${row}[type]" no_lang="1"/>
|
||||
@ -201,19 +196,6 @@
|
||||
<menupopup type="select-account" id="${row}[modifier]" readonly="true"/>
|
||||
</menulist>
|
||||
</vbox>
|
||||
<vbox class="noPrint" options="0,0">
|
||||
<hbox>
|
||||
<image label="View" src="view" href="addressbook.addressbook_ui.view&contact_id=$row_cont[id]"/>
|
||||
<button label="Edit" id="edit[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&contact_id=$row_cont[id]'),'_blank','dependent=yes,width=870,height=460,scrollbars=yes,status=yes'); return false;" image="edit"/>
|
||||
<button statustext="Delete this contact" label="Delete" id="delete[$row_cont[id]]" onclick="et2_dialog.confirm(widget,'Delete this contact','Delete')" image="delete"/>
|
||||
<checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[id]"/>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<button label="Insert in document" id="document[$row_cont[id]]" image="etemplate/merge" class="image16"/>
|
||||
<image label="Filemanager" src="filemanager/navbar" href="/index.php?menuaction=filemanager.filemanager_ui.index&path=/apps/addressbook/$row_cont[id]" class="image16"/>
|
||||
<button label="Add appointment" id="calendar" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&participants=c$row_cont[id]'),'_blank','dependent=yes,width=750,height=410,scrollbars=yes,status=yes'); return false;" image="calendar/navbar" class="image16"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
@ -260,4 +242,4 @@
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
</overlay>
|
||||
</overlay>
|
||||
|
Loading…
Reference in New Issue
Block a user