],
},
+ 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',
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;
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;
'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)',
'Confirm!' => '',
'Confirmation' => '',
'Contact' => '',
+ 'Contact Departments' => '',
'Contact Person' => '',
'Contact Person (database ID)' => '',
'Contact Person (name)' => '',
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