Revision d6b06170
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/requirement_spec/select_template_to_paste.html | ||
---|---|---|
1 |
[%- BLOCK text_blocks %] |
|
2 |
[%- IF blocks.size %] |
|
3 |
<li> |
|
4 |
[%- title %]: |
|
5 | 1 |
[% USE LxERP %] |
6 | 2 |
[% USE HTML %] |
7 | 3 |
[% USE L %] |
4 |
|
|
5 |
[% BLOCK text_blocks %] |
|
6 |
[% IF blocks.size %] |
|
7 |
<li>[% title %]: |
|
8 | 8 |
<ol> |
9 |
[%- FOREACH block = blocks %]
|
|
10 |
<li>[%- HTML.escape(block.title) %]</li>
|
|
11 |
[%- END %]
|
|
9 |
[% FOREACH block = blocks %]
|
|
10 |
<li>[% HTML.escape(block.title) %]</li>
|
|
11 |
[% END %]
|
|
12 | 12 |
</ol> |
13 |
</li> |
|
14 |
[%- END %] |
|
15 |
[%- END %] |
|
16 |
|
|
17 |
[%- IF !TEMPLATES.size %] |
|
18 |
<p>[%- LxERP.t8("No requirement spec templates have been created yet.") %]</p> |
|
13 |
</li> |
|
14 |
[% END %] |
|
15 |
[% END %] |
|
19 | 16 |
|
20 |
[%- ELSE %] |
|
17 |
[% IF !TEMPLATES.size %] |
|
18 |
<p>[% LxERP.t8("No requirement spec templates have been created yet.") %]</p> |
|
21 | 19 |
|
22 |
<table> |
|
23 |
<tr class="listheading"> |
|
24 |
<th>[%- LxERP.t8("Detail view") %]</th> |
|
25 |
<th>[%- LxERP.t8("Paste template") %]</th> |
|
26 |
<th>[%- LxERP.t8("Title") %]</th> |
|
27 |
<th>[%- LxERP.t8("Type") %]</th> |
|
28 |
<th>[%- LxERP.t8("Last modification") %]</th> |
|
20 |
[% ELSE %] |
|
21 |
<table class="tbl-list"> |
|
22 |
<thead> |
|
23 |
<tr> |
|
24 |
<th>[% LxERP.t8("Detail view") %]</th> |
|
25 |
<th>[% LxERP.t8("Paste template") %]</th> |
|
26 |
<th>[% LxERP.t8("Title") %]</th> |
|
27 |
<th>[% LxERP.t8("Type") %]</th> |
|
28 |
<th>[% LxERP.t8("Last modification") %]</th> |
|
29 | 29 |
</tr> |
30 |
|
|
31 |
[%- FOREACH template = TEMPLATES %] |
|
30 |
</thead> |
|
31 |
<tbody> |
|
32 |
[% FOREACH template = TEMPLATES %] |
|
32 | 33 |
<tr class="listrow[% loop.count % 2 %]"> |
33 | 34 |
<td> |
34 |
<a href="#" onclick="$('#select-template-details-row-[% template.id %]').toggle(); $(this).find('span').toggle();">
|
|
35 |
<a href="#" onclick='$("#select-template-details-row-[% template.id %]").toggle(); $(this).find("span").toggle();'>
|
|
35 | 36 |
<span>[+]</span> |
36 | 37 |
<span style="display: none;">[-]</span> |
37 | 38 |
</a> |
38 | 39 |
</td> |
39 |
<td><a href="#" onclick="kivi.requirement_spec.paste_selected_template([% template.id %]);">[%- LxERP.t8("Paste template") %]</a></td>
|
|
40 |
<td>[%- HTML.escape(template.title) %]</td>
|
|
41 |
<td>[%- HTML.escape(template.type.description) %]</td>
|
|
40 |
<td><a href="#" onclick='kivi.requirement_spec.paste_selected_template([% template.id %]);'>[% LxERP.t8("Paste template") %]</a></td>
|
|
41 |
<td>[% HTML.escape(template.title) %]</td> |
|
42 |
<td>[% HTML.escape(template.type.description) %]</td> |
|
42 | 43 |
<td>[% template.mtime ? template.mtime.to_kivitendo(precision='minute') : template.itime.to_kivitendo(precision='minute') %]</td> |
43 | 44 |
</tr> |
44 | 45 |
|
45 |
<tr class="listrow[% loop.count % 2 %]" style="display: none;" id="select-template-details-row-[% template.id %]">
|
|
46 |
<tr style="display: none;" id="select-template-details-row-[% template.id %]"> |
|
46 | 47 |
[% SET front = template.text_blocks_sorted(output_position=0) %] |
47 | 48 |
[% SET sections = template.sections_sorted %] |
48 | 49 |
[% SET back = template.text_blocks_sorted(output_position=1) %] |
49 | 50 |
[% SET parts = template.parts_sorted %] |
50 | 51 |
<td colspan="4"> |
51 |
[%- LxERP.t8("What this template contains") %]:<br>
|
|
52 |
[% LxERP.t8("What this template contains") %]:<br> |
|
52 | 53 |
<ul> |
53 | 54 |
[% PROCESS text_blocks blocks=front title=LxERP.t8("#1 text block(s) front", front.size) %] |
54 | 55 |
|
55 |
[%- IF sections.size %]
|
|
56 |
<li>[%- LxERP.t8("#1 section(s)", sections.size) %]:
|
|
56 |
[% IF sections.size %] |
|
57 |
<li>[% LxERP.t8("#1 section(s)", sections.size) %]: |
|
57 | 58 |
<ol> |
58 |
[%- FOREACH section = sections %]
|
|
59 |
<li>[%- HTML.escape(section.fb_number) %]: [%- HTML.escape(section.title) %]</li>
|
|
60 |
[%- END %]
|
|
59 |
[% FOREACH section = sections %] |
|
60 |
<li>[% HTML.escape(section.fb_number) %]: [% HTML.escape(section.title) %]</li>
|
|
61 |
[% END %] |
|
61 | 62 |
</ol> |
62 | 63 |
</li> |
63 |
[%- END %]
|
|
64 |
[% END %] |
|
64 | 65 |
|
65 | 66 |
[% PROCESS text_blocks blocks=back title=LxERP.t8("#1 text block(s) back", back.size) %] |
66 | 67 |
|
67 |
[%- IF parts.size %]
|
|
68 |
<li>[%- LxERP.t8("#1 additional part(s)", parts.size) %]:
|
|
68 |
[% IF parts.size %] |
|
69 |
<li>[% LxERP.t8("#1 additional part(s)", parts.size) %]: |
|
69 | 70 |
<ol> |
70 |
[%- FOREACH part = parts %]
|
|
71 |
<li>[%- HTML.escape(part.part.description) %]: [%- HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</li>
|
|
72 |
[%- END %]
|
|
71 |
[% FOREACH part = parts %] |
|
72 |
<li>[% HTML.escape(part.part.description) %]: [% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</li>
|
|
73 |
[% END %] |
|
73 | 74 |
</ol> |
74 | 75 |
</li> |
75 |
[%- END %]
|
|
76 |
[% END %] |
|
76 | 77 |
</ul> |
77 | 78 |
</td> |
78 | 79 |
</tr> |
79 |
[%- END %] |
|
80 |
[% END %] |
|
81 |
</tbody> |
|
80 | 82 |
</table> |
81 | 83 |
|
82 |
[%- END %]
|
|
84 |
[% END %] |
|
83 | 85 |
|
84 |
<p><a href="#" onclick="$('#jqueryui_popup_dialog').dialog('close');">[%- LxERP.t8("Abort") %]</a></p> |
|
86 |
<p><a href="#" onclick='$("#jqueryui_popup_dialog").dialog("close");' class="button neutral">[% LxERP.t8("Abort") %]</a></p> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec/select_template_to_paste.html