Revision 7dfb5656
Von Cem Aydin vor fast 2 Jahren hinzugefügt
templates/design40_webpages/requirement_spec_item/_function_block.html | ||
---|---|---|
1 |
[%- USE HTML -%] |
|
2 |
[%- USE LxERP -%] |
|
3 |
[%- USE P -%] |
|
4 |
[%- USE L -%] |
|
5 |
<div id="function-block-[% requirement_spec_item.id %]" class="function-block[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]"> |
|
6 |
|
|
7 |
<div id="function-block-content-[%- requirement_spec_item.id -%]" class="function-block-content function-block-context-menu"> |
|
8 |
|
|
9 |
[% INCLUDE 'requirement_spec_item/_function_block_content_top.html' id_prefix='' %] |
|
10 |
[% INCLUDE 'requirement_spec_item/_function_block_content_bottom.html' id_prefix='' %] |
|
11 |
|
|
12 |
|
|
13 |
<div class="sub-function-block-container" id="sub-function-block-container-[%- requirement_spec_item.id -%]"[%- IF !requirement_spec_item.children.size -%] style="display: none"[%- END -%]> |
|
14 |
<div class="sub-function-block-header" id="sub-function-block_header_[%- requirement_spec_item.id -%]"> |
|
15 |
[%- LxERP.t8("Sub function blocks") -%] |
|
16 |
</div> |
|
17 |
[%- FOREACH sub_function_block = requirement_spec_item.children_sorted -%] |
|
18 |
[%- INCLUDE 'requirement_spec_item/_sub_function_block.html' requirement_spec_item=sub_function_block -%] |
|
19 |
[%- END -%] |
|
20 |
</div> |
|
21 |
|
|
22 |
|
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE P %] |
|
4 |
[% USE L %] |
|
23 | 5 |
|
6 |
<div id="function-block-[%- requirement_spec_item.id -%]" class="function-block[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]"> |
|
24 | 7 |
|
8 |
<div id="function-block-content-[%- requirement_spec_item.id -%]" class="function-block-content function-block-context-menu"> |
|
25 | 9 |
|
10 |
[% INCLUDE 'requirement_spec_item/_function_block_content_top.html' id_prefix='' %] |
|
11 |
[% INCLUDE 'requirement_spec_item/_function_block_content_bottom.html' id_prefix='' %] |
|
26 | 12 |
|
13 |
<div class="sub-function-block-container" id="sub-function-block-container-[%- requirement_spec_item.id -%]"[%- IF !requirement_spec_item.children.size -%] style="display: none"[%- END -%]> |
|
14 |
<div class="sub-function-block-header" id="sub-function-block_header_[%- requirement_spec_item.id -%]"> |
|
15 |
[% LxERP.t8("Sub function blocks") -%] |
|
16 |
</div> |
|
17 |
[% FOREACH sub_function_block = requirement_spec_item.children_sorted %] |
|
18 |
[% INCLUDE 'requirement_spec_item/_sub_function_block.html' requirement_spec_item=sub_function_block %] |
|
19 |
[% END %] |
|
20 |
</div> |
|
27 | 21 |
|
28 | 22 |
</div> |
29 | 23 |
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
</div> |
|
38 | 24 |
</div> |
25 |
</div><!-- div ?? --> |
templates/design40_webpages/requirement_spec_item/_function_block_content_bottom.html | ||
---|---|---|
1 | 1 |
[% USE LxERP %] |
2 | 2 |
[% USE P %] |
3 |
|
|
3 | 4 |
<!-- PENDENT: ggf. DIV-Tabelle anwenden --> |
4 |
<div id="[% id_prefix %]function-block-content-bottom-[% requirement_spec_item.id %]" class="function-block-properties list">
|
|
5 |
<div id="[%- id_prefix -%]function-block-content-bottom-[%- requirement_spec_item.id -%]" class="function-block-properties list">
|
|
5 | 6 |
|
6 |
[% IF requirement_spec_item.dependencies.size %] |
|
7 |
<div> |
|
8 |
<span class="label">[% LxERP.t8("Dependencies") %]:</span> |
|
9 |
<span class="value">[% requirement_spec_item.presenter.requirement_spec_item_dependency_list %]</span> |
|
10 |
</div> |
|
11 |
[% END %] |
|
7 |
[% IF requirement_spec_item.dependencies.size %]
|
|
8 |
<div>
|
|
9 |
<span class="label">[% LxERP.t8("Dependencies") %]:</span>
|
|
10 |
<span class="value">[% requirement_spec_item.presenter.requirement_spec_item_dependency_list %]</span>
|
|
11 |
</div>
|
|
12 |
[% END %]
|
|
12 | 13 |
|
13 |
<div> |
|
14 |
<span class="label">[% LxERP.t8("Complexity") %]:</span> |
|
15 |
<span class="value">[% requirement_spec_item.complexity.description %]</span> |
|
16 |
</div> |
|
14 |
<div>
|
|
15 |
<span class="label">[% LxERP.t8("Complexity") %]:</span>
|
|
16 |
<span class="value">[% requirement_spec_item.complexity.description %]</span>
|
|
17 |
</div>
|
|
17 | 18 |
|
18 |
<div> |
|
19 |
<span class="label">[% LxERP.t8("Risk") %]:</span> |
|
20 |
<span class="value">[% requirement_spec_item.risk.description %]</span> |
|
21 |
</div> |
|
19 |
<div>
|
|
20 |
<span class="label">[% LxERP.t8("Risk") %]:</span>
|
|
21 |
<span class="value">[% requirement_spec_item.risk.description %]</span>
|
|
22 |
</div>
|
|
22 | 23 |
|
23 |
<div> |
|
24 |
<span class="label">[% LxERP.t8("Time estimate") %]:</span> |
|
25 |
<span class="value">[% P.format_man_days(requirement_spec_item.time_estimation, skip_zero=1) %]</span> |
|
26 |
</div> |
|
24 |
<div>
|
|
25 |
<span class="label">[% LxERP.t8("Time estimate") %]:</span>
|
|
26 |
<span class="value">[% P.format_man_days(requirement_spec_item.time_estimation, skip_zero=1) %]</span>
|
|
27 |
</div>
|
|
27 | 28 |
|
28 | 29 |
</div><!-- /.function-block-properties --> |
templates/design40_webpages/requirement_spec_item/_function_block_content_top.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
[% USE L %] |
3 |
<div id="[% id_prefix %]function-block-content-top-[% requirement_spec_item.id %]" class="function-block-header"> |
|
4 |
<div class="function-block-number">[% HTML.escape(requirement_spec_item.fb_number) %]</div> |
|
5 |
<div class="function-block-desc">[% requirement_spec_item.description_as_restricted_html %]</div> |
|
3 |
|
|
4 |
<div id="[%- id_prefix -%]function-block-content-top-[%- requirement_spec_item.id -%]" class="function-block-header"> |
|
5 |
<div class="function-block-number">[% HTML.escape(requirement_spec_item.fb_number) %]</div> |
|
6 |
<div class="function-block-desc">[% requirement_spec_item.description_as_restricted_html %]</div> |
|
6 | 7 |
</div> |
templates/design40_webpages/requirement_spec_item/_no_section.html | ||
---|---|---|
1 |
[%- USE LxERP -%] |
|
1 |
[% USE LxERP %] |
|
2 |
|
|
2 | 3 |
<div class="section-context-menu"> |
3 |
<h2>[%- LxERP.t8("No sections created yet") %]</h2>
|
|
4 |
<h2>[% LxERP.t8("No sections created yet") %]</h2>
|
|
4 | 5 |
|
5 |
<p> |
|
6 |
[%- LxERP.t8("No sections have been created so far.") %]<br>
|
|
7 |
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %] |
|
8 |
</p> |
|
6 |
<p>
|
|
7 |
[% LxERP.t8("No sections have been created so far.") %]<br>
|
|
8 |
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
|
9 |
</p>
|
|
9 | 10 |
</div> |
templates/design40_webpages/requirement_spec_item/_section.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%] |
|
2 |
<div id="section-[% requirement_spec_item.id %]" class="section[%- IF requirement_spec_item.is_flagged -%]flagged[%- END -%]"> |
|
3 |
<div class="section-header section-context-menu" id="section-header-[% requirement_spec_item.id %]"> |
|
4 |
[%- INCLUDE 'requirement_spec_item/_section_header.html' %] |
|
5 |
</div> |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE L %] |
|
6 | 4 |
|
7 |
<div id="section-list-empty" class="section-context-menu"[% IF requirement_spec_item.children.size %] style="display: none"[% END %]>
|
|
8 |
[%- LxERP.t8("No function blocks have been created yet.") %]
|
|
9 |
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %]
|
|
10 |
</div> |
|
5 |
<div id="section-[%- requirement_spec_item.id -%]" class="section[%- IF requirement_spec_item.is_flagged -%] flagged[%- END -%]">
|
|
6 |
<div class="section-header section-context-menu" id="section-header-[%- requirement_spec_item.id -%]">
|
|
7 |
[% INCLUDE 'requirement_spec_item/_section_header.html' %]
|
|
8 |
</div>
|
|
11 | 9 |
|
12 |
<div id="section-list" class="section"> |
|
13 |
[%- FOREACH function_block = requirement_spec_item.children_sorted -%] |
|
14 |
[%- INCLUDE 'requirement_spec_item/_function_block.html' requirement_spec_item=function_block -%] |
|
15 |
[%- END -%] |
|
16 |
</div> |
|
10 |
<div id="section-list-empty" class="section-context-menu"[%- IF requirement_spec_item.children.size -%] style="display: none"[%- END -%]> |
|
11 |
[% LxERP.t8("No function blocks have been created yet.") %] |
|
12 |
[% LxERP.t8("Create one from the context menu by right-clicking on this text.") %] |
|
13 |
</div> |
|
14 |
|
|
15 |
<div id="section-list" class="section"> |
|
16 |
[% FOREACH function_block = requirement_spec_item.children_sorted %] |
|
17 |
[% INCLUDE 'requirement_spec_item/_function_block.html' requirement_spec_item=function_block %] |
|
18 |
[% END %] |
|
19 |
</div> |
|
17 | 20 |
</div> |
templates/design40_webpages/requirement_spec_item/_section_form.html | ||
---|---|---|
1 |
[%- USE HTML %][%- USE L %][%- USE LxERP %] |
|
2 |
[%- DEFAULT id_base="edit_section" %] |
|
3 |
[%- SET style="width: 500px" %] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
|
|
5 |
[% DEFAULT id_base="edit_section" %] |
|
6 |
[% SET style="width: 500px" %] |
|
7 |
|
|
4 | 8 |
<form id="[% id_base %]_form"> |
5 | 9 |
|
10 |
[% L.hidden_tag('form_prefix', id_base id=id_base _ '_form_prefix') %] |
|
11 |
[% L.hidden_tag('id', SELF.item.id, id=id_base _ '_id') %] |
|
12 |
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %] |
|
13 |
[% L.hidden_tag(id_base _ '.item_type', 'section') %] |
|
6 | 14 |
|
7 |
[% L.hidden_tag('form_prefix', id_base id=id_base _ '_form_prefix') %] |
|
8 |
[% L.hidden_tag('id', SELF.item.id, id=id_base _ '_id') %] |
|
9 |
[% L.hidden_tag(id_base _ '.requirement_spec_id', SELF.item.requirement_spec_id) %] |
|
10 |
[% L.hidden_tag(id_base _ '.item_type', 'section') %] |
|
11 |
[% IF insert_after %] |
|
12 |
[% L.hidden_tag(id_base _ '.insert_after', insert_after) %] |
|
13 |
[% END %] |
|
15 |
[% IF insert_after %] |
|
16 |
[% L.hidden_tag(id_base _ '.insert_after', insert_after) %] |
|
17 |
[% END %] |
|
14 | 18 |
|
15 |
<table class="tbl-horizontal"> |
|
16 |
[%- IF SELF.item.id %] |
|
17 |
[%- SET hidden = '#section-header-' _ SELF.item.id %] |
|
18 |
<caption>[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]</caption> |
|
19 |
[%- ELSE %] |
|
20 |
[%- SET hidden = '#column-content > *' %] |
|
21 |
<caption>[%- LxERP.t8("Add section") %]</caption> |
|
22 |
[%- END %] |
|
23 |
<tbody> |
|
19 |
<table class="tbl-horizontal"> |
|
20 |
[% IF SELF.item.id %] |
|
21 |
[% SET hidden = '#section-header-' _ SELF.item.id %] |
|
22 |
<caption>[% LxERP.t8("Edit section #1", SELF.item.fb_number) %]</caption> |
|
23 |
[% ELSE %] |
|
24 |
[% SET hidden = '#column-content > *' %] |
|
25 |
<caption>[% LxERP.t8("Add section") %]</caption> |
|
26 |
[% END %] |
|
27 |
<tbody> |
|
28 |
<tr> |
|
29 |
<th>[% LxERP.t8("Title") %]:</th> |
|
30 |
<td>[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]</td> |
|
31 |
</tr> |
|
32 |
[% IF SELF.predefined_texts.size %] |
|
33 |
<tr> |
|
34 |
<th>[% LxERP.t8("Pre-defined Texts") %]:</th> |
|
35 |
<td> |
|
36 |
[% L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %] <a href="#" onclick='insert_selected_predefined_text()'>[% LxERP.t8("Insert") %]</a> |
|
37 |
</td> |
|
38 |
</tr> |
|
39 |
[% END %] |
|
24 | 40 |
<tr> |
25 |
<th>[%- LxERP.t8("Title") %]:</th> |
|
26 |
<td>[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]</td> |
|
41 |
<th>[% LxERP.t8("Description") %]:</th> |
|
42 |
<td> |
|
43 |
[% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, cols=80, style=style, class='texteditor') %]<br> |
|
44 |
</td> |
|
27 | 45 |
</tr> |
28 |
|
|
29 |
[%- IF SELF.predefined_texts.size %] |
|
30 | 46 |
<tr> |
31 |
<th>[%- LxERP.t8("Pre-defined Texts") %]:</th> |
|
32 |
<td>[%- L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %] <a href="#" onclick='insert_selected_predefined_text()'>[%- LxERP.t8("Insert") %]</a> |
|
47 |
<td>[% LxERP.t8("Price Factor") %]:</td> |
|
48 |
<td> |
|
49 |
[% L.input_tag(id_base _ ".sellprice_factor_as_number", SELF.item.sellprice_factor_as_number, size="6") %] |
|
33 | 50 |
</td> |
34 | 51 |
</tr> |
35 |
[%- END %] |
|
36 |
|
|
37 |
|
|
38 |
<tr> |
|
39 |
<th>[%- LxERP.t8("Description") %]:</th> |
|
40 |
<td> |
|
41 |
[% L.textarea_tag(id_base _ '.description_as_restricted_html', SELF.item.description_as_restricted_html, id=id_base _ '_description', rows=8, cols=80, style=style, class='texteditor') %]<br> |
|
42 |
</td> |
|
43 |
</tr> |
|
44 | 52 |
<tr> |
45 |
<td>[% LxERP.t8("Price Factor") %]:</td> |
|
46 |
<td>[% L.input_tag(id_base _ ".sellprice_factor_as_number", SELF.item.sellprice_factor_as_number, size="6") %] |
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
<tr> |
|
50 |
<td> </td> |
|
51 |
<td>[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %] |
|
52 |
<a href="#" onclick='kivi.requirement_spec.cancel_edit_item_form("[% id_base %]", { to_show: "[% hidden %]" })' class="button">[%- LxERP.t8("Cancel") %]</a></td> |
|
53 |
</tr> |
|
54 |
|
|
55 |
|
|
53 |
<td> </td> |
|
54 |
<td> |
|
55 |
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %] |
|
56 |
<a href="#" onclick='kivi.requirement_spec.cancel_edit_item_form("[% id_base %]", { to_show: "[% hidden %]" })' class="button">[% LxERP.t8("Cancel") %]</a> |
|
57 |
</td> |
|
58 |
</tr> |
|
56 | 59 |
|
57 |
</tbody> |
|
58 |
</table> |
|
60 |
</tbody>
|
|
61 |
</table>
|
|
59 | 62 |
|
60 |
[%- IF SELF.predefined_texts.size %] |
|
61 |
<script type="text/javascript"> |
|
62 |
<!-- |
|
63 |
[% INCLUDE 'requirement_spec_text_block/_predefined_text_inserter.js' title_ctrl_id='_title' text_ctrl_id='_description' %] |
|
64 |
--> |
|
65 |
</script> |
|
66 |
[%- END %] |
|
63 |
[% IF SELF.predefined_texts.size %] |
|
64 |
<script type="text/javascript"> |
|
65 |
[% INCLUDE 'requirement_spec_text_block/_predefined_text_inserter.js' title_ctrl_id='_title' text_ctrl_id='_description' %] |
|
66 |
</script> |
|
67 |
[% END %] |
|
67 | 68 |
</form> |
templates/design40_webpages/requirement_spec_item/_section_header.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE L -%][%- USE LxERP -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
|
|
2 | 5 |
<h3> |
3 |
<span class="label">[%- HTML.escape(requirement_spec_item.fb_number) %]:</span>
|
|
4 |
[% IF requirement_spec_item.title %] |
|
5 |
[% HTML.escape(requirement_spec_item.title) %] |
|
6 |
[% ELSE %] |
|
7 |
<div class="dimmed-text"> |
|
8 |
[%- LxERP.t8("No text has been entered yet.") %]
|
|
9 |
</div> |
|
10 |
[% END %] |
|
6 |
<span class="label">[% HTML.escape(requirement_spec_item.fb_number) %]:</span>
|
|
7 |
[% IF requirement_spec_item.title %]
|
|
8 |
[% HTML.escape(requirement_spec_item.title) %]
|
|
9 |
[% ELSE %]
|
|
10 |
<div class="dimmed-text">
|
|
11 |
[% LxERP.t8("No text has been entered yet.") %]
|
|
12 |
</div>
|
|
13 |
[% END %]
|
|
11 | 14 |
</h3> |
12 | 15 |
|
13 | 16 |
<div class="section-description" id="section-description"> |
14 | 17 |
<div> |
15 |
[% IF requirement_spec_item.description %] |
|
16 |
<span class="label section-description-heading">[%- LxERP.t8("Preamble") %]:</span><br>
|
|
17 |
[%- requirement_spec_item.description_as_restricted_html -%]
|
|
18 |
[%- ELSE %]
|
|
19 |
<span class="dimmed-text">[%- LxERP.t8("No text has been entered yet.") %]</span>
|
|
20 |
[%- END %]
|
|
18 |
[% IF requirement_spec_item.description %]
|
|
19 |
<span class="label section-description-heading">[% LxERP.t8("Preamble") %]:</span><br>
|
|
20 |
[% requirement_spec_item.description_as_restricted_html %]
|
|
21 |
[% ELSE %]
|
|
22 |
<span class="dimmed-text">[% LxERP.t8("No text has been entered yet.") %]</span>
|
|
23 |
[% END %]
|
|
21 | 24 |
</div> |
22 | 25 |
|
23 | 26 |
[% IF requirement_spec_item.sellprice_factor %] |
24 |
<div> |
|
25 |
<span class="label">[%- LxERP.t8("Price Factor") -%]:</span> [%- LxERP.format_amount(requirement_spec_item.sellprice_factor, -2) -%]
|
|
26 |
</div> |
|
27 |
<div>
|
|
28 |
<span class="label">[% LxERP.t8("Price Factor") %]:</span> [% LxERP.format_amount(requirement_spec_item.sellprice_factor, -2) %]
|
|
29 |
</div>
|
|
27 | 30 |
[% END %] |
28 |
|
|
29 | 31 |
</div> |
Auch abrufbar als: Unified diff
design40: Templates requirement_spec_item/ vereinheitlicht/bereinigt
- Formatierung vereinheitlicht
- Einrückung angepasst
- HTML Kommentare aus script tag entfernt