do all address fields as taglist in popup display window

This commit is contained in:
Klaus Leithoff 2013-07-20 08:02:20 +00:00
parent bd3e741905
commit 803099a49d
2 changed files with 12 additions and 8 deletions

View File

@ -1628,7 +1628,7 @@ unset($query['actions']);
$sel_options[$field][] = array(
// taglist requires these
'id' => $field_data['EMAIL'],
'label' => $field_data['PERSONAL_NAME'],
'label' => ($field_data['PERSONAL_NAME'] && $field_data['PERSONAL_NAME']!='NIL') ? $field_data['PERSONAL_NAME']:$field_data['EMAIL'],
// Optional
'title' => $field_data['RFC822_EMAIL']
)

View File

@ -4,21 +4,25 @@
<template id="mail.display" template="" lang="" group="0" version="1.9.001">
<html id="msg"/>
<vbox class="mailDisplay mailDisplayHeaderSection" width="100%">
<hbox class="mailDisplayHeaders" width="100%">
<hbox class="mailDisplayHeaders" disabled="!@FROM" width="100%">
<description value="From"/>
<taglist id="FROM" readonly="true" onclick="app.mail.address_click"/>
</hbox>
<hbox class="mailDisplayHeaders" width="100%">
<hbox class="mailDisplayHeaders" disabled="!@SENDER" width="100%">
<description value="on behalf of"/>
<html id="mail_displayonbehalfofaddress" readonly="true"/>
<taglist id="SENDER" readonly="true" onclick="app.mail.address_click"/>
</hbox>
<hbox class="mailDisplayHeaders" width="100%">
<hbox class="mailDisplayHeaders" disabled="!@TO" width="100%">
<description value="To"/>
<taglist id="TO" readonly="true" onclick="app.mail.address_click"/>
</hbox>
<hbox class="mailDisplayHeaders" disabled="!@CC" width="100%">
<description value="Cc"/>
<html id="mail_displayccaddress" readonly="true"/>
<taglist id="CC" readonly="true" onclick="app.mail.address_click"/>
</hbox>
<hbox class="mailDisplayHeaders" width="100%">
<hbox class="mailDisplayHeaders" disabled="!@BCC" width="100%">
<description value="Bcc"/>
<html id="mail_displaybccaddress" readonly="true"/>
<taglist id="BCC" readonly="true" onclick="app.mail.address_click"/>
</hbox>
<hbox class="mailDisplayHeaders" width="100%">
<description value="Date"/>