Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c1569bc1

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID c1569bc195865fa5c25c6945bbad78c872fa2046
  • Vorgänger 54daa586
  • Nachfolger ca7c2f91

Pflichtenhefte bearbeiten

Unterschiede anzeigen:

SL/Controller/RequirementSpec.pm
19 19

  
20 20
use Rose::Object::MakeMethods::Generic
21 21
(
22
 scalar => [ qw(requirement_spec customers projects types statuses db_args flat_filter is_template) ],
22
 scalar => [ qw(requirement_spec requirement_spec_item customers projects types statuses db_args flat_filter is_template) ],
23 23
);
24 24

  
25 25
__PACKAGE__->run_before('setup');
26
__PACKAGE__->run_before('load_requirement_spec',      only => [ qw(    edit        update destroy tree) ]);
26
__PACKAGE__->run_before('load_requirement_spec',      only => [ qw(    edit        update show destroy tree) ]);
27 27
__PACKAGE__->run_before('load_select_options',        only => [ qw(new edit create update list) ]);
28 28
__PACKAGE__->run_before('load_search_select_options', only => [ qw(                       list) ]);
29 29

  
......
77 77
  $self->render('requirement_spec/form', title => t8('Edit requirement spec'));
78 78
}
79 79

  
80
sub action_show {
81
  my ($self) = @_;
82

  
83
  my $item = $::form->{requirement_spec_item_id} ? SL::DB::RequirementSpecItem->new(id => $::form->{requirement_spec_item_id})->load : @{ $self->requirement_spec->sections }[0];
84
  $self->requirement_spec_item($item);
85

  
86
  $self->render('requirement_spec/show', title => t8('Show requirement spec'));
87
}
88

  
80 89
sub action_create {
81 90
  my ($self) = @_;
82 91

  
......
122 131
  my ($self) = @_;
123 132

  
124 133
  $::auth->assert('config');
125
  $::request->{layout}->use_stylesheet("${_}.css") for qw(requirement_spec yaml/core/base.min);
126
  $::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree requirement_spec);
134
  $::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec);
135
  $::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree jquery/jquery.contextMenu requirement_spec);
127 136
  $self->is_template($::form->{is_template} ? 1 : 0);
128 137

  
129 138
  return 1;

Auch abrufbar als: Unified diff