my $cvar_configs = CVar->get_configs('module' => 'Contacts');
my @columns = qw(
- cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2
- cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_position cp_birthday cp_gender
+ cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 cp_privatphone
+ cp_mobile1 cp_mobile2 cp_fax cp_email cp_privatemail cp_abteilung cp_position cp_birthday cp_gender
);
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
'cp_position' => { 'text' => $::locale->text('Function/position'), },
'cp_birthday' => { 'text' => $::locale->text('Birthday'), },
'cp_gender' => { 'text' => $::locale->text('Gender'), },
+ 'cp_fax' => { 'text' => $::locale->text('Fax'), },
+ 'cp_privatphone' => { 'text' => $::locale->text('Private Phone') },
+ 'cp_privatemail' => { 'text' => $::locale->text('Private E-Mail') },
%column_defs_cvars,
);
$row->{vcname}->{link} = build_std_url('action=edit', 'id=' . E($ref->{vcid}), 'db=' . E($ref->{db}), 'callback', @hidden_nondefault);
$row->{vcnumber}->{link} = $row->{vcname}->{link};
- $row->{cp_email}->{link} = 'mailto:' . E($ref->{cp_email});
+
+ for (qw(cp_email cp_privatemail)) {
+ $row->{$_}->{link} = 'mailto:' . E($ref->{$_}) if $ref->{$_};
+ }
$report->add_data($row);
}
<input name="l.cp_mobile" id="l_cp_mobile" type="checkbox" class="checkbox" value="Y" checked>
<label for="l_cp_mobile">[% 'Mobile' | $T8 %]</label>
</td>
- <td>
- <input name="l.cp_email" id="l_cp_email" type="checkbox" class="checkbox" value="Y" checked>
- <label for="l_cp_email">[% 'E-mail' | $T8 %]</label>
- </td>
+
+ <td>[%- L.checkbox_tag('l.cp_privatphone', value='Y', label=LxERP.t8('Private Phone'), class='checkbox', checked=1) %]</td>
+ </tr>
+
+ <tr>
+ <td>[%- L.checkbox_tag('l.cp_fax', value='Y', label=LxERP.t8('Fax'), class='checkbox') %]</td>
+ <td>[%- L.checkbox_tag('l.cp_email', value='Y', label=LxERP.t8('E-Mail'), class='checkbox', checked=1) %]</td>
+ <td>[%- L.checkbox_tag('l.cp_privatemail', value='Y', label=LxERP.t8('Private E-Mail'), class='checkbox') %]</td>
</tr>
<tr>
- <td>
- <input name="l.cp_birthday" id="l_cp_birthday" type="checkbox" class="checkbox" value="Y">
- <label for="l_cp_birthday">[% 'Birthday' | $T8 %]</label>
- </td>
<td>
<input name="l.cp_abteilung" id="l_cp_abteilung" type="checkbox" class="checkbox" value="Y">
<label for="l_cp_abteilung">[% 'Department' | $T8 %]</label>
<input name="l.cp_gender" id="l_cp_gender" type="checkbox" class="checkbox" value="Y">
<label for="l_cp_gender">[% 'Gender' | $T8 %]</label>
</td>
+
+ <td>
+ <input name="l.cp_birthday" id="l_cp_birthday" type="checkbox" class="checkbox" value="Y">
+ <label for="l_cp_birthday">[% 'Birthday' | $T8 %]</label>
+ </td>
</tr>
[% CUSTOM_VARIABLES_INCLUSION_CODE %]