Revision 002517b4
Von Bernd Bleßmann vor fast 11 Jahren hinzugefügt
SL/Controller/DeliveryTerm.pm | ||
---|---|---|
5 | 5 |
use parent qw(SL::Controller::Base); |
6 | 6 |
|
7 | 7 |
use SL::DB::DeliveryTerm; |
8 |
use SL::DB::Language; |
|
8 | 9 |
use SL::Helper::Flash; |
9 | 10 |
|
10 | 11 |
use Rose::Object::MakeMethods::Generic |
11 | 12 |
( |
12 |
scalar => [ qw(delivery_term) ], |
|
13 |
scalar => [ qw(delivery_term languages) ],
|
|
13 | 14 |
); |
14 | 15 |
|
15 | 16 |
__PACKAGE__->run_before('check_auth'); |
16 | 17 |
__PACKAGE__->run_before('load_delivery_term', only => [ qw(edit update destroy) ]); |
18 |
__PACKAGE__->run_before('load_languages', only => [ qw(new list edit create update) ]); |
|
17 | 19 |
|
18 | 20 |
|
19 | 21 |
# |
... | ... | |
113 | 115 |
$self->{delivery_term} = SL::DB::DeliveryTerm->new(id => $::form->{id})->load; |
114 | 116 |
} |
115 | 117 |
|
118 |
sub load_languages { |
|
119 |
my ($self) = @_; |
|
120 |
$self->{languages} = SL::DB::Manager::Language->get_all_sorted; |
|
121 |
} |
|
122 |
|
|
116 | 123 |
1; |
Auch abrufbar als: Unified diff
Lieferbedingungen übersetzbar gemacht.