Revision 4b211b2b
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/CT.pm | ||
---|---|---|
551 | 551 |
|
552 | 552 |
my @columns = qw(cp_title cp_givenname cp_name cp_email cp_phone1 cp_phone2 cp_abteilung cp_fax |
553 | 553 |
cp_mobile1 cp_mobile2 cp_satphone cp_satfax cp_project cp_privatphone cp_privatemail cp_birthday cp_gender |
554 |
cp_street cp_zipcode cp_city); |
|
554 |
cp_street cp_zipcode cp_city cp_function);
|
|
555 | 555 |
my @values = map( |
556 | 556 |
{ |
557 | 557 |
if ( $_ eq 'cp_gender' ) { |
... | ... | |
1123 | 1123 |
'vcnumber' => 'vcnumber, cp_name, cp_givenname', |
1124 | 1124 |
); |
1125 | 1125 |
|
1126 |
my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city vcname vcnumber); |
|
1126 |
my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city cp_function vcname vcnumber);
|
|
1127 | 1127 |
|
1128 | 1128 |
my $order_by = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name'; |
1129 | 1129 |
$::form->{sort} = $order_by; |
SL/DB/MetaSetup/Contact.pm | ||
---|---|---|
34 | 34 |
cp_zipcode => { type => 'text' }, |
35 | 35 |
cp_city => { type => 'text' }, |
36 | 36 |
cp_birthday => { type => 'date' }, |
37 |
cp_function => { type => 'text' }, |
|
37 | 38 |
], |
38 | 39 |
|
39 | 40 |
primary_key_columns => [ 'cp_id' ], |
bin/mozilla/ct.pl | ||
---|---|---|
303 | 303 |
|
304 | 304 |
my @columns = qw( |
305 | 305 |
cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 |
306 |
cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_birthday cp_gender |
|
306 |
cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_function cp_birthday cp_gender
|
|
307 | 307 |
); |
308 | 308 |
|
309 | 309 |
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; |
... | ... | |
336 | 336 |
'cp_mobile2' => { 'text' => $::locale->text('Mobile2'), }, |
337 | 337 |
'cp_email' => { 'text' => $::locale->text('E-mail'), }, |
338 | 338 |
'cp_abteilung' => { 'text' => $::locale->text('Department'), }, |
339 |
'cp_function' => { 'text' => $::locale->text('Function/position'), }, |
|
339 | 340 |
'cp_birthday' => { 'text' => $::locale->text('Birthday'), }, |
340 | 341 |
'cp_gender' => { 'text' => $::locale->text('Gender'), }, |
341 | 342 |
%column_defs_cvars, |
locale/de/all | ||
---|---|---|
913 | 913 |
'Full Access' => 'Vollzugriff', |
914 | 914 |
'Full Preview' => 'Alles', |
915 | 915 |
'Full access to all functions' => 'Vollzugriff auf alle Funktionen', |
916 |
'Function/position' => 'Funktion/Position', |
|
916 | 917 |
'Fwd' => 'Vorwärts', |
917 | 918 |
'GL Transaction' => 'Dialogbuchung', |
918 | 919 |
'GL transactions changeable' => 'Änderbarkeit von Dialogbuchungen', |
sql/Pg-upgrade2/contacts_add_cp_function.sql | ||
---|---|---|
1 |
-- @tag: contacts_add_cp_function |
|
2 |
-- @description: Feld 'Funktion/Position' zu Kontakten |
|
3 |
-- @depends: release_3_0_0 |
|
4 |
-- @charset: utf-8 |
|
5 |
ALTER TABLE contacts ADD COLUMN cp_function text; |
templates/webpages/ct/_contact.html | ||
---|---|---|
35 | 35 |
</td> |
36 | 36 |
</tr> |
37 | 37 |
|
38 |
<tr> |
|
39 |
<th align="left" nowrap>[% 'Function/position' | $T8 %]</th> |
|
40 |
<td>[% L.input_tag('cp_function', cp_function, size=40) %]</td> |
|
41 |
</tr> |
|
42 |
|
|
38 | 43 |
<tr> |
39 | 44 |
<th align="left" nowrap>[% 'Given Name' | $T8 %]</th> |
40 | 45 |
<td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td> |
templates/webpages/ct/search_contact.html | ||
---|---|---|
1 | 1 |
[%- USE HTML %] |
2 | 2 |
[%- USE T8 %] |
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %] |
|
3 | 5 |
<form method="post" action="ct.pl" name="Form"> |
4 | 6 |
|
5 | 7 |
<input type="hidden" name="db" value="[% db | html %]"> |
... | ... | |
110 | 112 |
<input name="l.cp_abteilung" id="l_cp_abteilung" type="checkbox" class="checkbox" value="Y"> |
111 | 113 |
<label for="l_cp_abteilung">[% 'Department' | $T8 %]</label> |
112 | 114 |
</td> |
115 |
|
|
116 |
<td>[% L.checkbox_tag('l.cp_function', value='Y', label=LxERP.t8('Function/position'), class='checkbox') %]</td> |
|
117 |
</tr> |
|
118 |
|
|
119 |
<tr> |
|
113 | 120 |
<td> |
114 | 121 |
<input name="l.cp_gender" id="l_cp_gender" type="checkbox" class="checkbox" value="Y"> |
115 | 122 |
<label for="l_cp_gender">[% 'Gender' | $T8 %]</label> |
... | ... | |
127 | 134 |
|
128 | 135 |
<input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]"> |
129 | 136 |
</form> |
130 |
|
Auch abrufbar als: Unified diff
Ansprechpersonen: Feld "Funktion/Position"