Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4b211b2b

Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt

  • ID 4b211b2b087d445984df5220437400bced1dd1dd
  • Vorgänger dea7951f
  • Nachfolger 604765d5

Ansprechpersonen: Feld "Funktion/Position"

Unterschiede anzeigen:

SL/CT.pm
my @columns = qw(cp_title cp_givenname cp_name cp_email cp_phone1 cp_phone2 cp_abteilung cp_fax
cp_mobile1 cp_mobile2 cp_satphone cp_satfax cp_project cp_privatphone cp_privatemail cp_birthday cp_gender
cp_street cp_zipcode cp_city);
cp_street cp_zipcode cp_city cp_function);
my @values = map(
{
if ( $_ eq 'cp_gender' ) {
......
'vcnumber' => 'vcnumber, cp_name, cp_givenname',
);
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);
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);
my $order_by = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name';
$::form->{sort} = $order_by;
SL/DB/MetaSetup/Contact.pm
cp_zipcode => { type => 'text' },
cp_city => { type => 'text' },
cp_birthday => { type => 'date' },
cp_function => { type => 'text' },
],
primary_key_columns => [ 'cp_id' ],
bin/mozilla/ct.pl
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_birthday cp_gender
cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_function cp_birthday cp_gender
);
my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
......
'cp_mobile2' => { 'text' => $::locale->text('Mobile2'), },
'cp_email' => { 'text' => $::locale->text('E-mail'), },
'cp_abteilung' => { 'text' => $::locale->text('Department'), },
'cp_function' => { 'text' => $::locale->text('Function/position'), },
'cp_birthday' => { 'text' => $::locale->text('Birthday'), },
'cp_gender' => { 'text' => $::locale->text('Gender'), },
%column_defs_cvars,
locale/de/all
'Full Access' => 'Vollzugriff',
'Full Preview' => 'Alles',
'Full access to all functions' => 'Vollzugriff auf alle Funktionen',
'Function/position' => 'Funktion/Position',
'Fwd' => 'Vorwärts',
'GL Transaction' => 'Dialogbuchung',
'GL transactions changeable' => 'Änderbarkeit von Dialogbuchungen',
sql/Pg-upgrade2/contacts_add_cp_function.sql
-- @tag: contacts_add_cp_function
-- @description: Feld 'Funktion/Position' zu Kontakten
-- @depends: release_3_0_0
-- @charset: utf-8
ALTER TABLE contacts ADD COLUMN cp_function text;
templates/webpages/ct/_contact.html
</td>
</tr>
<tr>
<th align="left" nowrap>[% 'Function/position' | $T8 %]</th>
<td>[% L.input_tag('cp_function', cp_function, size=40) %]</td>
</tr>
<tr>
<th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
<td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
templates/webpages/ct/search_contact.html
[%- USE HTML %]
[%- USE T8 %]
[%- USE L %]
[%- USE LxERP %]
<form method="post" action="ct.pl" name="Form">
<input type="hidden" name="db" value="[% db | html %]">
......
<input name="l.cp_abteilung" id="l_cp_abteilung" type="checkbox" class="checkbox" value="Y">
<label for="l_cp_abteilung">[% 'Department' | $T8 %]</label>
</td>
<td>[% L.checkbox_tag('l.cp_function', value='Y', label=LxERP.t8('Function/position'), class='checkbox') %]</td>
</tr>
<tr>
<td>
<input name="l.cp_gender" id="l_cp_gender" type="checkbox" class="checkbox" value="Y">
<label for="l_cp_gender">[% 'Gender' | $T8 %]</label>
......
<input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
</form>

Auch abrufbar als: Unified diff