Revision 76168395
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/requirement_spec_item/_section_form.html | ||
---|---|---|
2 | 2 |
[%- DEFAULT id_base="edit_section" %] |
3 | 3 |
[%- SET style="width: 500px" %] |
4 | 4 |
<form id="[% id_base %]_form"> |
5 |
[%- IF SELF.item.id %] |
|
6 |
[%- SET hidden = '#section-header-' _ SELF.item.id %] |
|
7 |
<h1>[%- LxERP.t8("Edit section #1", SELF.item.fb_number) %]</h1> |
|
8 |
|
|
9 |
[%- ELSE %] |
|
10 |
[%- SET hidden = '#column-content > *' %] |
|
11 |
<h1>[%- LxERP.t8("Add section") %]</h1> |
|
12 | 5 |
|
13 |
[%- END %] |
|
14 | 6 |
|
15 | 7 |
[% L.hidden_tag('form_prefix', id_base id=id_base _ '_form_prefix') %] |
16 | 8 |
[% L.hidden_tag('id', SELF.item.id, id=id_base _ '_id') %] |
... | ... | |
20 | 12 |
[% L.hidden_tag(id_base _ '.insert_after', insert_after) %] |
21 | 13 |
[% END %] |
22 | 14 |
|
23 |
<p> |
|
24 |
[%- LxERP.t8("Title") %]:<br> |
|
25 |
[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %] |
|
26 |
</p> |
|
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> |
|
24 |
<tr> |
|
25 |
<th>[%- LxERP.t8("Title") %]:</th> |
|
26 |
<td>[% L.input_tag(id_base _ '.title', SELF.item.title, style=style) %]</td> |
|
27 |
</tr> |
|
27 | 28 |
|
28 | 29 |
[%- IF SELF.predefined_texts.size %] |
29 |
<p>
|
|
30 |
[%- LxERP.t8("Pre-defined Texts") %]:<br>
|
|
31 |
[%- L.select_tag(id_base _ '_predefined_text_block', SELF.predefined_texts, title_key='description', style=style) %]
|
|
32 |
<a href="#" onclick="insert_selected_predefined_text()">[%- LxERP.t8("Insert") %]</a>
|
|
33 |
</p>
|
|
30 |
<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>
|
|
33 |
</td>
|
|
34 |
</tr>
|
|
34 | 35 |
[%- END %] |
35 | 36 |
|
36 |
<table border="0"> |
|
37 |
<tr valign="top"> |
|
37 |
|
|
38 |
<tr> |
|
39 |
<th>[%- LxERP.t8("Description") %]:</th> |
|
38 | 40 |
<td> |
39 |
[%- LxERP.t8("Description") %]:<br> |
|
40 | 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> |
41 |
[% L.ajax_submit_tag('controller.pl?action=RequirementSpecItem/ajax_' _ (SELF.item.id ? 'update' : 'create'), '#' _ id_base _ '_form', LxERP.t8('Save')) %] |
|
42 |
<a href="#" onclick="kivi.requirement_spec.cancel_edit_item_form('[% id_base %]', { to_show: '[% hidden %]' })">[%- LxERP.t8("Cancel") %]</a> |
|
43 | 42 |
</td> |
44 |
|
|
45 |
<td>
|
|
46 |
[% LxERP.t8("Price Factor") %]:<br>
|
|
47 |
[% L.input_tag(id_base _ ".sellprice_factor_as_number", SELF.item.sellprice_factor_as_number, size="6") %]<br>
|
|
43 |
</tr> |
|
44 |
<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") %]
|
|
48 | 47 |
</td> |
49 | 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 |
|
|
56 |
|
|
57 |
</tbody> |
|
50 | 58 |
</table> |
51 | 59 |
|
52 | 60 |
[%- IF SELF.predefined_texts.size %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/requirement_spec_item/_section_form.html