Revision c88705d8
Von Moritz Bunkus vor etwa 10 Jahren hinzugefügt
SL/Controller/RequirementSpecItem.pm | ||
---|---|---|
14 | 14 |
use SL::DB::RequirementSpec; |
15 | 15 |
use SL::DB::RequirementSpecComplexity; |
16 | 16 |
use SL::DB::RequirementSpecItem; |
17 |
use SL::DB::RequirementSpecPredefinedText; |
|
17 | 18 |
use SL::DB::RequirementSpecRisk; |
18 | 19 |
use SL::Helper::Flash; |
19 | 20 |
use SL::JSON; |
... | ... | |
22 | 23 |
use Rose::Object::MakeMethods::Generic |
23 | 24 |
( |
24 | 25 |
scalar => [ qw(item visible_item visible_section clicked_item sections) ], |
25 |
'scalar --get_set_init' => [ qw(complexities risks js) ], |
|
26 |
'scalar --get_set_init' => [ qw(complexities risks js predefined_texts) ],
|
|
26 | 27 |
); |
27 | 28 |
|
28 | 29 |
__PACKAGE__->run_before('check_auth'); |
... | ... | |
528 | 529 |
return SL::DB::Manager::RequirementSpecRisk->get_all_sorted; |
529 | 530 |
} |
530 | 531 |
|
532 |
sub init_predefined_texts { |
|
533 |
return SL::DB::Manager::RequirementSpecPredefinedText->get_all_sorted(where => [ useable_for_sections => 1 ]); |
|
534 |
} |
|
535 |
|
|
531 | 536 |
sub init_js { |
532 | 537 |
my ($self) = @_; |
533 | 538 |
$self->js(SL::ClientJS->new); |
Auch abrufbar als: Unified diff
Pflichtenhefte: vordef Textblöcke auch bei Abschnitten verwenden können