Revision 30d53fc8
Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt
SL/Controller/SimpleSystemSetting.pm | ||
---|---|---|
],
|
||
},
|
||
|
||
contact_department => {
|
||
class => 'ContactDepartment',
|
||
auth => 'config',
|
||
titles => {
|
||
list => t8('Contact Departments'),
|
||
add => t8('Add department'),
|
||
edit => t8('Edit department'),
|
||
},
|
||
},
|
||
|
||
contact_title => {
|
||
class => 'ContactTitle',
|
||
auth => 'config',
|
SL/DB/ContactDepartment.pm | ||
---|---|---|
|
||
use strict;
|
||
|
||
use SL::Util qw(trim);
|
||
|
||
use SL::DB::MetaSetup::ContactDepartment;
|
||
use SL::DB::Manager::ContactDepartment;
|
||
|
||
__PACKAGE__->meta->initialize;
|
||
|
||
__PACKAGE__->before_save('_before_save_trim_content');
|
||
|
||
sub _before_save_trim_content {
|
||
$_[0]->description(trim($_[0]->description));
|
||
return 1;
|
||
}
|
||
|
||
1;
|
SL/DB/Manager/ContactDepartment.pm | ||
---|---|---|
|
||
use parent qw(SL::DB::Helper::Manager);
|
||
|
||
use SL::DB::Helper::Sorted;
|
||
|
||
sub object_class { 'SL::DB::ContactDepartment' }
|
||
|
||
__PACKAGE__->make_manager_methods;
|
||
|
||
sub _sort_spec {
|
||
return ( default => [ 'description', 1 ],
|
||
columns => { SIMPLE => 'ALL',
|
||
map { ( $_ => "lower(contact_departments.$_)" ) } qw(description)
|
||
});
|
||
}
|
||
|
||
1;
|
locale/de/all | ||
---|---|---|
'Confirm!' => 'Bestätigen Sie!',
|
||
'Confirmation' => 'Auftragsbestätigung',
|
||
'Contact' => 'Kontakt',
|
||
'Contact Departments' => 'Abteilungen von Ansprechpersonen',
|
||
'Contact Person' => 'Ansprechperson',
|
||
'Contact Person (database ID)' => 'Ansprechperson (Datenbank-ID)',
|
||
'Contact Person (name)' => 'Ansprechperson (Name)',
|
locale/en/all | ||
---|---|---|
'Confirm!' => '',
|
||
'Confirmation' => '',
|
||
'Contact' => '',
|
||
'Contact Departments' => '',
|
||
'Contact Person' => '',
|
||
'Contact Person (database ID)' => '',
|
||
'Contact Person (name)' => '',
|
menus/user/00-erp.yaml | ||
---|---|---|
params:
|
||
action: SimpleSystemSetting/list
|
||
type: contact_title
|
||
- parent: system
|
||
id: system_contact_departments
|
||
name: Contact Departments
|
||
order: 1430
|
||
params:
|
||
action: SimpleSystemSetting/list
|
||
type: contact_department
|
||
- parent: system
|
||
id: system_project_types
|
||
name: Project Types
|
Auch abrufbar als: Unified diff
Abteilungen bei Ansprechpersonen: SimpleSettings-Controller zum Editieren