Revision e7088e23
Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
374 | 374 |
|
375 | 375 |
sub init_include_cvars { |
376 | 376 |
my ($self) = @_; |
377 |
return $::form->{include_cvars} if $::form->{include_cvars} && (ref($::form->{include_cvars}) eq 'HASH');
|
|
377 |
return { map { ($_->name => $::form->{"include_cvars_" . $_->name}) } @{ $self->cvar_configs } } if $::form->{_include_cvars_from_form};
|
|
378 | 378 |
return { map { ($_->name => ($_->includeable && $_->included_by_default)) } @{ $self->cvar_configs } }; |
379 | 379 |
} |
380 | 380 |
|
... | ... | |
516 | 516 |
%column_defs = (%column_defs, %cvar_column_defs); |
517 | 517 |
} |
518 | 518 |
|
519 |
my @cvar_column_form_names = ('_include_cvars_from_form', map { "include_cvars_" . $_->name } @{ $self->includeable_cvar_configs }); |
|
520 |
|
|
519 | 521 |
$report->set_options( |
520 | 522 |
std_column_visibility => 1, |
521 | 523 |
controller_class => 'RequirementSpec', |
... | ... | |
528 | 530 |
); |
529 | 531 |
$report->set_columns(%column_defs); |
530 | 532 |
$report->set_column_order(@columns); |
531 |
$report->set_export_options(qw(list filter)); |
|
533 |
$report->set_export_options(qw(list filter), @cvar_column_form_names);
|
|
532 | 534 |
$report->set_options_from_form; |
533 | 535 |
$self->models->set_report_generator_sort_options(report => $report, sortable_columns => \@sortable); |
534 | 536 |
} |
templates/webpages/requirement_spec/_filter.html | ||
---|---|---|
9 | 9 |
|
10 | 10 |
<form method="post" action="controller.pl" id="search_form"> |
11 | 11 |
[%- L.hidden_tag("is_template", is_template) %] |
12 |
[%- L.hidden_tag("_include_cvars_from_form", 1) %] |
|
12 | 13 |
|
13 | 14 |
<p> |
14 | 15 |
<table> |
... | ... | |
56 | 57 |
[% END %] |
57 | 58 |
[% END %] |
58 | 59 |
|
59 |
[% L.hidden_tag("include_cvars.dummy__", 1) %] |
|
60 | 60 |
[% IF SELF.includeable_cvar_configs.size %] |
61 | 61 |
<tr> |
62 | 62 |
<th align="right">[% LxERP.t8("Include in Report") %]</th> |
... | ... | |
66 | 66 |
[% FOREACH cvar_cfg = SELF.includeable_cvar_configs %] |
67 | 67 |
<td> |
68 | 68 |
[% name__ = cvar_cfg.name; |
69 |
L.checkbox_tag("include_cvars." _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
|
|
69 |
L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
|
|
70 | 70 |
</td> |
71 | 71 |
[%- IF !loop.last && ((loop.count % 3) == 0) %] |
72 | 72 |
</tr><tr> |
Auch abrufbar als: Unified diff
Pflichtenhefte: Exportoption bzgl. benutzerdefinierter Variablen in Suchmaske gefixt