Revision 428bc365
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
305 | 305 |
my $cvar_configs = CVar->get_configs('module' => 'Contacts'); |
306 | 306 |
|
307 | 307 |
my @columns = qw( |
308 |
cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 |
|
309 |
cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_position cp_birthday cp_gender |
|
308 |
cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 cp_privatphone
|
|
309 |
cp_mobile1 cp_mobile2 cp_fax cp_email cp_privatemail cp_abteilung cp_position cp_birthday cp_gender
|
|
310 | 310 |
); |
311 | 311 |
|
312 | 312 |
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; |
... | ... | |
342 | 342 |
'cp_position' => { 'text' => $::locale->text('Function/position'), }, |
343 | 343 |
'cp_birthday' => { 'text' => $::locale->text('Birthday'), }, |
344 | 344 |
'cp_gender' => { 'text' => $::locale->text('Gender'), }, |
345 |
'cp_fax' => { 'text' => $::locale->text('Fax'), }, |
|
346 |
'cp_privatphone' => { 'text' => $::locale->text('Private Phone') }, |
|
347 |
'cp_privatemail' => { 'text' => $::locale->text('Private E-Mail') }, |
|
345 | 348 |
%column_defs_cvars, |
346 | 349 |
); |
347 | 350 |
|
... | ... | |
399 | 402 |
|
400 | 403 |
$row->{vcname}->{link} = build_std_url('action=edit', 'id=' . E($ref->{vcid}), 'db=' . E($ref->{db}), 'callback', @hidden_nondefault); |
401 | 404 |
$row->{vcnumber}->{link} = $row->{vcname}->{link}; |
402 |
$row->{cp_email}->{link} = 'mailto:' . E($ref->{cp_email}); |
|
405 |
|
|
406 |
for (qw(cp_email cp_privatemail)) { |
|
407 |
$row->{$_}->{link} = 'mailto:' . E($ref->{$_}) if $ref->{$_}; |
|
408 |
} |
|
403 | 409 |
|
404 | 410 |
$report->add_data($row); |
405 | 411 |
} |
templates/webpages/ct/search_contact.html | ||
---|---|---|
97 | 97 |
<input name="l.cp_mobile" id="l_cp_mobile" type="checkbox" class="checkbox" value="Y" checked> |
98 | 98 |
<label for="l_cp_mobile">[% 'Mobile' | $T8 %]</label> |
99 | 99 |
</td> |
100 |
<td> |
|
101 |
<input name="l.cp_email" id="l_cp_email" type="checkbox" class="checkbox" value="Y" checked> |
|
102 |
<label for="l_cp_email">[% 'E-mail' | $T8 %]</label> |
|
103 |
</td> |
|
100 |
|
|
101 |
<td>[%- L.checkbox_tag('l.cp_privatphone', value='Y', label=LxERP.t8('Private Phone'), class='checkbox', checked=1) %]</td> |
|
102 |
</tr> |
|
103 |
|
|
104 |
<tr> |
|
105 |
<td>[%- L.checkbox_tag('l.cp_fax', value='Y', label=LxERP.t8('Fax'), class='checkbox') %]</td> |
|
106 |
<td>[%- L.checkbox_tag('l.cp_email', value='Y', label=LxERP.t8('E-Mail'), class='checkbox', checked=1) %]</td> |
|
107 |
<td>[%- L.checkbox_tag('l.cp_privatemail', value='Y', label=LxERP.t8('Private E-Mail'), class='checkbox') %]</td> |
|
104 | 108 |
</tr> |
105 | 109 |
|
106 | 110 |
<tr> |
107 |
<td> |
|
108 |
<input name="l.cp_birthday" id="l_cp_birthday" type="checkbox" class="checkbox" value="Y"> |
|
109 |
<label for="l_cp_birthday">[% 'Birthday' | $T8 %]</label> |
|
110 |
</td> |
|
111 | 111 |
<td> |
112 | 112 |
<input name="l.cp_abteilung" id="l_cp_abteilung" type="checkbox" class="checkbox" value="Y"> |
113 | 113 |
<label for="l_cp_abteilung">[% 'Department' | $T8 %]</label> |
... | ... | |
121 | 121 |
<input name="l.cp_gender" id="l_cp_gender" type="checkbox" class="checkbox" value="Y"> |
122 | 122 |
<label for="l_cp_gender">[% 'Gender' | $T8 %]</label> |
123 | 123 |
</td> |
124 |
|
|
125 |
<td> |
|
126 |
<input name="l.cp_birthday" id="l_cp_birthday" type="checkbox" class="checkbox" value="Y"> |
|
127 |
<label for="l_cp_birthday">[% 'Birthday' | $T8 %]</label> |
|
128 |
</td> |
|
124 | 129 |
</tr> |
125 | 130 |
|
126 | 131 |
[% CUSTOM_VARIABLES_INCLUSION_CODE %] |
Auch abrufbar als: Unified diff
Bericht Ansprechpersonen: weitere Spalten ausgeben können