Revision b2e51e71
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/RequirementSpec.pm | ||
---|---|---|
120 | 120 |
my ($self) = @_; |
121 | 121 |
|
122 | 122 |
my $html = $self->render('requirement_spec/_edit_time_and_cost_estimate', { output => 0 }); |
123 |
my $first = ($self->requirement_spec->sections_sorted || [])->[0]; |
|
124 |
$first = ($first->children_sorted || [])->[0] if $first; |
|
123 | 125 |
|
124 | 126 |
$self->js |
125 | 127 |
->hide('#time_cost_estimate') |
126 | 128 |
->after('#time_cost_estimate', $html) |
127 | 129 |
->on('#time_cost_estimate INPUT[type=text]', 'keydown', 'kivi.requirement_spec.time_cost_estimate_input_key_down') |
130 |
->action_if($first && $first->id, 'focus', '#time_and_cost_estimate_form_complexity_id_' . $first->id) |
|
128 | 131 |
->render($self); |
129 | 132 |
} |
130 | 133 |
|
templates/webpages/requirement_spec/_edit_time_and_cost_estimate_item.html | ||
---|---|---|
6 | 6 |
[%- P.simple_format(item.fb_number _ ": " _ item.description) -%] |
7 | 7 |
</td> |
8 | 8 |
<td> |
9 |
[%- L.select_tag('requirement_spec_items[].complexity_id', SELF.complexities, id=id_prefix _ '_complexity_id', title_key='description', default=item.complexity_id, style="width: 100%") %]<br>
|
|
9 |
[%- L.select_tag('requirement_spec_items[].complexity_id', SELF.complexities, id=id_prefix _ '_complexity_id_' _ item.id, title_key='description', default=item.complexity_id, style="width: 100%") %]<br>
|
|
10 | 10 |
</td> |
11 | 11 |
<td> |
12 |
[%- L.select_tag('requirement_spec_items[].risk_id', SELF.risks, id=id_prefix _ '_risk_id', title_key='description', default=item.risk_id, style="width: 100%") %]<br>
|
|
12 |
[%- L.select_tag('requirement_spec_items[].risk_id', SELF.risks, id=id_prefix _ '_risk_id_' _ item.id, title_key='description', default=item.risk_id, style="width: 100%") %]<br>
|
|
13 | 13 |
</td> |
14 | 14 |
[%- IF !item.children.size -%] |
15 | 15 |
<td align="right" nowrap>[%- P.man_days_tag('requirement_spec_items[].time_estimation', item, id=id_prefix _ '_time_estimation') %]</td> |
Auch abrufbar als: Unified diff
Pflichtenhefte: in Zeitabschätzungsmaske erste Selectbox focussen