Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1ae68610

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

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

Pflichtenhefte: Abschnitte in richtiger Reihenfolge ausgeben

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
my ($self) = @_;
my $title = $self->requirement_spec->is_template ? t8('Show requirement spec template') : t8('Show requirement spec');
my $item = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections }[0];
my $item = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections_sorted }[0];
$self->requirement_spec_item($item);
$self->render('requirement_spec/show', title => $title);
templates/webpages/requirement_spec/show.html
[%- USE JSON -%][%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%]
[% SET sections = SELF.requirement_spec.sections_sorted || [] %]
[%- INCLUDE 'common/flash.html' %]
......
metadata: { type: "sections" },
attr: { id: "sections", class: "section-context-menu" },
children: [
[% FOREACH section = SELF.requirement_spec.sections %]
[% FOREACH section = sections %]
[% P.requirement_spec_item_jstree_data(section).json %][% IF !loop.last %],[% END %]
[% END %]
]},
......
];
var initially_open = ['tb-front', 'tb-back', 'sections'
[%- FOREACH section = SELF.requirement_spec.sections -%]
[%- FOREACH section = sections -%]
, "fb-[% section.id %]"
[%- FOREACH function_block = section.children -%]
, "fb-[% function_block.id -%]"

Auch abrufbar als: Unified diff