Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c2e49890

Von Bernd Bleßmann vor mehr als 4 Jahren hinzugefügt

  • ID c2e4989097c6a6817e6c4d7bbabf70e43f14253d
  • Vorgänger 041274ee
  • Nachfolger 761f4a3f

Anreden: SimpleSettings-Controller zum Editieren

Unterschiede anzeigen:

SL/Controller/SimpleSystemSetting.pm
65 65
    },
66 66
  },
67 67

  
68
  greeting => {
69
    class  => 'Greeting',
70
    auth   => 'config',
71
    titles => {
72
      list => t8('Greetings'),
73
      add  => t8('Add greeting'),
74
      edit => t8('Edit greeting'),
75
    },
76
  },
77

  
68 78
  language => {
69 79
    # Make locales.pl happy: $self->render("simple_system_setting/_language_form")
70 80
    class  => 'Language',
SL/DB/Manager/Greeting.pm
7 7

  
8 8
use parent qw(SL::DB::Helper::Manager);
9 9

  
10
use SL::DB::Helper::Sorted;
11

  
10 12
sub object_class { 'SL::DB::Greeting' }
11 13

  
12 14
__PACKAGE__->make_manager_methods;
13 15

  
16
sub _sort_spec {
17
  return ( default => [ 'description', 1 ],
18
           columns => { SIMPLE => 'ALL',
19
                        map { ( $_ => "lower(greetings.$_)" ) } qw(description)
20
                      });
21
}
22

  
14 23
1;
locale/de/all
205 205
  'Add department'              => 'Abteilung hinzufügen',
206 206
  'Add empty line (csv_import)' => 'Leere Zeile einfügen',
207 207
  'Add function block'          => 'Funktionsblock hinzufügen',
208
  'Add greeting'                => 'Anrede hinzufügen',
208 209
  'Add headers from last uploaded file (csv_import)' => 'Spalten aus der hochgeladenen Datei einfügen',
209 210
  'Add invoices'                => 'Rechnungen hinzufügen',
210 211
  'Add language'                => 'Sprache hinzufügen',
......
1203 1204
  'Edit department'             => 'Abteilung bearbeiten',
1204 1205
  'Edit file'                   => 'Datei bearbeiten',
1205 1206
  'Edit general settings'       => 'Grundeinstellungen bearbeiten',
1207
  'Edit greeting'               => 'Anrede bearbeiten',
1206 1208
  'Edit greetings'              => 'Anreden bearbeiten',
1207 1209
  'Edit language'               => 'Sprache bearbeiten',
1208 1210
  'Edit note'                   => 'Notiz bearbeiten',
locale/en/all
205 205
  'Add department'              => '',
206 206
  'Add empty line (csv_import)' => '',
207 207
  'Add function block'          => '',
208
  'Add greeting'                => '',
208 209
  'Add headers from last uploaded file (csv_import)' => '',
209 210
  'Add invoices'                => '',
210 211
  'Add language'                => '',
......
1203 1204
  'Edit department'             => '',
1204 1205
  'Edit file'                   => '',
1205 1206
  'Edit general settings'       => '',
1207
  'Edit greeting'               => '',
1206 1208
  'Edit greetings'              => '',
1207 1209
  'Edit language'               => '',
1208 1210
  'Edit note'                   => '',
menus/user/00-erp.yaml
1161 1161
  params:
1162 1162
    action: SimpleSystemSetting/list
1163 1163
    type: price_factor
1164
- parent: system
1165
  id: system_greetings
1166
  name: Greetings
1167
  order: 1250
1168
  params:
1169
    action: SimpleSystemSetting/list
1170
    type: greeting
1164 1171
- parent: system
1165 1172
  id: system_departments
1166 1173
  name: Departments

Auch abrufbar als: Unified diff