Revision 6ef53d3f
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
490 | 490 |
if (!$is_template) { |
491 | 491 |
%column_defs = ( |
492 | 492 |
%column_defs, |
493 |
customer => { raw_data => sub { $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) },
|
|
493 |
customer => { raw_data => sub { $_[0]->customer->presenter->customer(display => 'table-cell', callback => $callback) },
|
|
494 | 494 |
sub => sub { $_[0]->customer->name } }, |
495 |
projectnumber => { raw_data => sub { $self->presenter->project($_[0]->project, display => 'table-cell', callback => $callback) },
|
|
495 |
projectnumber => { raw_data => sub { $_[0]->project ? $_[0]->project->presenter->project(display => 'table-cell', callback => $callback) : '' },
|
|
496 | 496 |
sub => sub { $_[0]->project_id ? $_[0]->project->projectnumber : '' } }, |
497 | 497 |
status => { sub => sub { $_[0]->status->description } }, |
498 | 498 |
type => { sub => sub { $_[0]->type->description } }, |
... | ... | |
555 | 555 |
->hide('#text-block-list-empty'); |
556 | 556 |
} |
557 | 557 |
|
558 |
my $node = $self->presenter->requirement_spec_text_block_jstree_data($text_block);
|
|
558 |
my $node = $text_block->presenter->jstree_data;
|
|
559 | 559 |
my $front_back = $text_block->output_position == 0 ? 'front' : 'back'; |
560 | 560 |
$self->js |
561 | 561 |
->jstree->create_node('#tree', "#tb-${front_back}", 'last', $node) |
... | ... | |
577 | 577 |
sub render_pasted_section { |
578 | 578 |
my ($self, $item, $parent_id) = @_; |
579 | 579 |
|
580 |
my $node = $self->presenter->requirement_spec_item_jstree_data($item);
|
|
580 |
my $node = $item->presenter->jstree_data;
|
|
581 | 581 |
$self->js |
582 | 582 |
->jstree->create_node('#tree', $parent_id ? "#fb-${parent_id}" : '#sections', 'last', $node) |
583 | 583 |
->jstree->open_node( '#tree', $parent_id ? "#fb-${parent_id}" : '#sections'); |
Auch abrufbar als: Unified diff
Presenter: Neue Struktur in RequirementSpecs umgesetzt