Revision 5e8c9df6
Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt
templates/webpages/buchungsgruppen/form.html | ||
---|---|---|
3 | 3 |
|
4 | 4 |
<h1>[% HTML.escape(title) %]</h1> |
5 | 5 |
|
6 |
<form action="controller.pl" method="post"> |
|
6 |
<form action="controller.pl" method="post" id="form">
|
|
7 | 7 |
[%- L.hidden_tag("id", SELF.config.id) %] |
8 | 8 |
|
9 | 9 |
<table> |
10 | 10 |
<tr> |
11 | 11 |
<th align="right">[% 'Description' | $T8 %]</th> |
12 |
<td>[%- L.input_tag("config.description", SELF.config.description) %]</td> |
|
12 |
<td>[%- L.input_tag("config.description", SELF.config.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %]</td>
|
|
13 | 13 |
</tr> |
14 | 14 |
<tr> |
15 | 15 |
<th align="right">[% 'Inventory Account' | $T8 %]</th> |
... | ... | |
44 | 44 |
</tr> |
45 | 45 |
[%- END %] |
46 | 46 |
</table> |
47 |
|
|
48 |
<p> |
|
49 |
[% L.hidden_tag("action", "Buchungsgruppen/dispatch") %] |
|
50 |
[% L.submit_tag("action_" _ (SELF.config.id ? "update" : "create"), LxERP.t8('Save'), onclick="return check_prerequisites();") %] |
|
51 |
[%- IF SELF.config.id AND SELF.config.orphaned %] |
|
52 |
[% L.submit_tag("action_delete", LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %] |
|
53 |
[%- END %] |
|
54 |
</p> |
|
55 |
|
|
56 |
<hr> |
|
57 |
|
|
58 |
<script type="text/javascript"> |
|
59 |
<!-- |
|
60 |
function check_prerequisites() { |
|
61 |
if ($('#config_description').val() === "") { |
|
62 |
alert(kivi.t8('The description is missing.')); |
|
63 |
return false; |
|
64 |
} |
|
65 |
|
|
66 |
return true; |
|
67 |
} |
|
68 |
--> |
|
69 |
</script> |
|
70 | 47 |
</form> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Buchungsgruppen