calendar icon for addressbook.index to add an appointment for a contact

This commit is contained in:
Ralf Becker 2011-02-15 11:43:32 +00:00
parent ecb259f2ed
commit 3054731928
5 changed files with 20 additions and 9 deletions

View File

@ -340,7 +340,7 @@ class addressbook_ui extends addressbook_bo
{
//_debug_array(array('Typefilter:'=> $content['nm']['col_filter']['tid'],'Available Types:'=>$availabletypes,'action:'=>'remove invalid filter'));
unset($content['nm']['col_filter']['tid']);
}
}
if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0];
if (count($this->content_types) > 1)
{
@ -412,7 +412,7 @@ class addressbook_ui extends addressbook_bo
namepart = email.substring(0,splitter);
emailpart = email.substring(splitter);
email = namepart.replace(/@/g,' ')+emailpart;
if (document.getElementById('exec[nm][to][cc]').checked == true)
{
to = 'cc';
@ -1166,6 +1166,7 @@ class addressbook_ui extends addressbook_bo
// 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'];

View File

@ -22,6 +22,7 @@ add a new contact addressbook de Neuen Kontakt anlegen
add a new infolog addressbook de Neuen Infolog Eintrag hinzufügen
add a new list addressbook de Neuen Verteiler hinzufügen
add a single entry by passing the fields. addressbook de Hinzufügen eines einzelnen Eintrags durch Übergeben der Felder.
add appointment addressbook de Termin hinzufügen
add business email of whole distribution list? addressbook de E-Mail geschäftl. der kompletten Liste hinzufügen?
add custom field addressbook de Benutzerdefiniertes Feld hinzufügen
add emails of whole distribution list? addressbook de E-Mails der gesamten Verteilerliste hinzufügen?

View File

@ -22,6 +22,7 @@ add a new contact addressbook en Add a new contact
add a new infolog addressbook en Add a new Infolog
add a new list addressbook en Add a new list
add a single entry by passing the fields. addressbook en Add a single entry by passing the fields.
add appointment addressbook en Add appointment
add business email of whole distribution list? addressbook en Add business email of whole distribution list?
add custom field addressbook en Add Custom Field
add emails of whole distribution list? addressbook en Add emails of whole distribution list?

File diff suppressed because one or more lines are too long

View File

@ -6,15 +6,14 @@
<menupopup rows="1" cols="1" id="org_view" no_lang="1" statustext="Select a view" onchange="1" options="All contacts"/>
</menulist>
</template>
<template id="addressbook.index.right_add" template="" lang="" group="0" version="1.5.001">
<template id="addressbook.index.right_add" template="" lang="" group="0" version="1.7.001">
<hbox>
<buttononly id="search" label="Advanced search" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.search'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;"/>
<buttononly id="add" label="Add" statustext="Add a new contact" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="rightPadAdd"/>
<description id="manual" class="rightPadAdd"/>
</hbox>
<styles>.rightPadAdd { width: 30px; }</styles>
</template>
<template id="addressbook.index.rows" template="" lang="" group="0" version="1.7.002">
<template id="addressbook.index.rows" template="" lang="" group="0" version="1.7.005">
<grid width="100%">
<columns>
<column/>
@ -28,14 +27,16 @@
<column/>
<column/>
<column disabled="@no_customfields"/>
<column disabled="@no_note"/>
<column disabled="@no_distribution_list"/>
<column/>
<column/>
<column/>
<column width="75"/>
</columns>
<rows>
<row class="th">
<description/>
<description options="1"/>
<grid spacing="0" padding="0">
<columns>
<column/>
@ -87,7 +88,9 @@
<nextmatch-header id="email_home" label="Home email"/>
</vbox>
<nextmatch-customfields id="customfields"/>
<nextmatch-header label="Note" id="note"/>
<nextmatch-header label="Distribution lists" id="distribution_list"/>
<nextmatch-sortheader label="ID" id="contact_id"/>
<vbox options="0,0">
<nextmatch-header label="Last date" id="calendar"/>
<nextmatch-header label="Next date" id="calendar"/>
@ -149,7 +152,9 @@
<url-email class="fixedHeight" id="${row}[email_home]" readonly="true"/>
</vbox>
<customfields-list rows="1" cols="1" id="$row" class="customfields"/>
<textbox multiline="true" no_lang="1" id="${row}[note]" readonly="true"/>
<description id="${row}[distrib_lists]"/>
<description class="contactid" id="${row}[id]"/>
<vbox options="0,0">
<link id="${row}[last_link]"/>
<link id="${row}[next_link]"/>
@ -167,13 +172,14 @@
<vbox options="0,0" class="noPrint">
<hbox options="0">
<image options="addressbook.addressbook_ui.view&amp;contact_id=$row_cont[id]" label="View" src="view"/>
<button image="edit" label="Edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$row_cont[id]'),'_blank','dependent=yes,width=850,height=460,scrollbars=yes,status=yes'); return false;" id="edit[$row_cont[id]]"/>
<button image="edit" label="Edit" onclick="window.open(egw::link('/index.php','menuaction=addressbook.addressbook_ui.edit&amp;contact_id=$row_cont[id]'),'_blank','dependent=yes,width=870,height=460,scrollbars=yes,status=yes'); return false;" id="edit[$row_cont[id]]"/>
<button id="delete[$row_cont[id]]" image="delete" label="Delete" statustext="Delete this contact" onclick="return confirm('Delete this contact');"/>
<checkbox id="checked[]" options="$row_cont[id]" statustext="Select multiple contacts for a further action" align="right"/>
</hbox>
<hbox options="0">
<button id="document[$row_cont[id]]" image="new" label="Insert in document"/>
<image src="filemanager/navbar" options="/index.php?menuaction=filemanager.filemanager_ui.index&amp;path=/apps/addressbook/$row_cont[id]" class="image16" label="Filemanager"/>
<button id="calendar" image="calendar/navbar" class="image16" label="Add appointment" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&amp;participants=c$row_cont[id]'),'_blank','dependent=yes,width=750,height=410,scrollbars=yes,status=yes'); return false;"/>
</hbox>
</vbox>
</row>