Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1ae68610

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 1ae686100b75daf4590311ba74f8884f32df562e
  • Vorgänger 0b7d4ff9
  • Nachfolger f7551e1c

Pflichtenhefte: Abschnitte in richtiger Reihenfolge ausgeben

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
181 181
  my ($self) = @_;
182 182

  
183 183
  my $title  = $self->requirement_spec->is_template ? t8('Show requirement spec template') : t8('Show requirement spec');
184
  my $item   = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections }[0];
184
  my $item   = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections_sorted }[0];
185 185
  $self->requirement_spec_item($item);
186 186

  
187 187
  $self->render('requirement_spec/show', title => $title);
templates/webpages/requirement_spec/show.html
1 1
[%- USE JSON -%][%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%]
2
[% SET sections = SELF.requirement_spec.sections_sorted || [] %]
2 3

  
3 4
[%- INCLUDE 'common/flash.html' %]
4 5

  
......
62 63
      metadata: { type: "sections" },
63 64
      attr:     { id: "sections", class: "section-context-menu" },
64 65
      children: [
65
[% FOREACH section = SELF.requirement_spec.sections %]
66
[% FOREACH section = sections %]
66 67
 [% P.requirement_spec_item_jstree_data(section).json %][% IF !loop.last %],[% END %]
67 68
[% END %]
68 69
      ]},
......
78 79
  ];
79 80

  
80 81
  var initially_open = ['tb-front', 'tb-back', 'sections'
81
[%- FOREACH section = SELF.requirement_spec.sections -%]
82
[%- FOREACH section = sections -%]
82 83
        , "fb-[% section.id %]"
83 84
 [%- FOREACH function_block = section.children -%]
84 85
        , "fb-[% function_block.id -%]"

Auch abrufbar als: Unified diff