Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0c23c415

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 0c23c415e83273c23ffe10e9004ebd2930eee69d
  • Vorgänger 1c4d3cd5
  • Nachfolger b52b09d8

ActionBar: Verwendung bei Pflichtenheft(vorlagen)suche

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
53 53
sub action_list {
54 54
  my ($self) = @_;
55 55

  
56
  $self->_setup_search_action_bar;
56 57
  $self->prepare_report;
57
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get);
58
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
58 59
}
59 60

  
60 61
sub action_new {
......
703 704
  }
704 705
}
705 706

  
707
sub _setup_search_action_bar {
708
  my ($self, %params) = @_;
709

  
710
  for my $bar ($::request->layout->get('actionbar')) {
711
    $bar->add(
712
      action => [
713
        t8('Search'),
714
        submit    => [ '#search_form', { action => 'RequirementSpec/list' } ],
715
        accesskey => 'enter',
716
      ],
717
      link => [
718
        t8('Add'),
719
        link => $self->url_for(action => 'new', is_template => $::form->{is_template}),
720
      ],
721
    );
722
  }
723
}
724

  
706 725
1;
templates/webpages/requirement_spec/_filter.html
7 7
<div class="filter_toggle" style="display:none">
8 8
 <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8("Hide Filter") %]</a>
9 9

  
10
 <form method="post" action="controller.pl">
10
 <form method="post" action="controller.pl" id="search_form">
11 11
  [%- L.hidden_tag("is_template", is_template) %]
12 12

  
13 13
  <p>
......
80 80
[%- END %]
81 81
   </table>
82 82
  </p>
83

  
84
  [% L.hidden_tag("action", "RequirementSpec/list") %]
85

  
86
  <p>[% L.submit_tag("dummy", LxERP.t8("Continue")) %]</p>
87 83
 </form>
88 84
</div>

Auch abrufbar als: Unified diff