Revision 4cab0b74
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
148 | 148 |
sub action_show { |
149 | 149 |
my ($self) = @_; |
150 | 150 |
|
151 |
my $item = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections }[0]; |
|
151 |
my $title = $self->requirement_spec->is_template ? t8('Show requirement spec template') : t8('Show requirement spec'); |
|
152 |
my $item = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections }[0]; |
|
152 | 153 |
$self->requirement_spec_item($item); |
153 | 154 |
|
154 |
$self->render('requirement_spec/show', title => t8('Show requirement spec'));
|
|
155 |
$self->render('requirement_spec/show', title => $title);
|
|
155 | 156 |
} |
156 | 157 |
|
157 | 158 |
sub action_create { |
... | ... | |
210 | 211 |
unlink $result{file_name}; |
211 | 212 |
} |
212 | 213 |
|
214 |
sub action_select_template_to_paste { |
|
215 |
my ($self) = @_; |
|
216 |
|
|
217 |
my @templates = grep { @{ $_->sections } || @{ $_->text_blocks } } @{ SL::DB::Manager::RequirementSpec->get_all(where => [ is_template => 1 ], sort_by => 'lower(title)') }; |
|
218 |
$self->render('requirement_spec/select_template_to_paste', { layout => 0 }, TEMPLATES => \@templates); |
|
219 |
} |
|
220 |
|
|
213 | 221 |
# |
214 | 222 |
# filters |
215 | 223 |
# |
Auch abrufbar als: Unified diff
Pflichtenheftvorlage: Maske zur Auswahl des Einzufügenden