Revision f55e65a2
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/generic/new_item.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- IF is_wrong_pclass == NOTFORSALE %] |
|
4 |
<h4 class="error">[% 'searched part not for sale' | $T8 %]</h4> |
|
5 |
[%- ELSE %] |
|
6 |
[%- IF is_wrong_pclass == NOTFORPURCHASE %] |
|
7 |
<h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4> |
|
8 |
[%- ELSE %] |
|
9 |
<h4 class="error">[% 'Item does not exists in the database' | $T8 %] |
|
10 |
[% IF INSTANCE_CONF.get_create_part_if_not_found %] |
|
11 |
<p>[% 'What type of item is this?' | $T8 %]</h4> |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
12 | 3 |
|
13 |
<form method="post" action="controller.pl"> |
|
4 |
<form method="post" action="controller.pl"> |
|
5 |
<div class="wrapper"> |
|
6 |
[% IF is_wrong_pclass == NOTFORSALE %] |
|
7 |
<p class="message message_error">[% 'searched part not for sale' | $T8 %]</p> |
|
8 |
[% ELSE %] |
|
9 |
[% IF is_wrong_pclass == NOTFORPURCHASE %] |
|
10 |
<p class="message message_error">[% 'searched part not for purchase' | $T8 %]</p> |
|
11 |
[% ELSE %] |
|
12 |
<p class="message message_error">[% 'Item does not exists in the database' | $T8 %]</p> |
|
13 |
[% IF INSTANCE_CONF.get_create_part_if_not_found %] |
|
14 |
<p>[% 'What type of item is this?' | $T8 %]</p> |
|
15 |
<p> |
|
16 |
<input type="radio" name="part.part_type" value="part" checked> [% 'Part' | $T8 %]<br> |
|
17 |
<input type="radio" name="part.part_type" value="assembly"> [% 'Assembly' | $T8 %]<br> |
|
18 |
<input type="radio" name="part.part_type" value="service"> [% 'Service' | $T8 %]<br> |
|
19 |
<input type="radio" name="part.part_type" value="assortment"> [% 'Assortment' | $T8 %] |
|
20 |
</p> |
|
21 |
[% FOREACH var = HIDDENS %] |
|
22 |
<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]"> |
|
23 |
[% END %] |
|
24 |
<input type="hidden" name="action" value="Part/dispatch"> |
|
25 |
<div class="buttons"> |
|
26 |
<input type="submit" name="action_add_from_record" value="[% 'Continue' | $T8 %]"> |
|
27 |
</div> |
|
28 |
[% END %]<!-- /IF INSTANCE_CONF.get_create_part_if_not_found --> |
|
29 |
[% END %]<!-- /ELSE -> IF is_wrong_pclass == NOTFORPURCHASE --> |
|
30 |
[% END %]<!-- /ELSE -> IF is_wrong_pclass == NOTFORSALE --> |
|
31 |
<div class="buttons"><input id='back_button' type='button' class="neutral" value="[% 'Back' | $T8 %]"></div> |
|
32 |
</div><!-- /.wrapper --> |
|
33 |
</form> |
|
14 | 34 |
|
15 |
<p> |
|
16 | 35 |
|
17 |
<input class="radio" type="radio" name="part.part_type" value="part" checked> [% 'Part' | $T8 %]<br> |
|
18 |
<input class="radio" type="radio" name="part.part_type" value="assembly"> [% 'Assembly' | $T8 %]<br> |
|
19 |
<input class="radio" type="radio" name="part.part_type" value="service"> [% 'Service' | $T8 %]<br> |
|
20 |
<input class="radio" type="radio" name="part.part_type" value="assortment"> [% 'Assortment' | $T8 %] |
|
21 |
<p> |
|
22 |
|
|
23 |
[%- FOREACH var = HIDDENS %] |
|
24 |
<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]"> |
|
25 |
[%- END %] |
|
26 |
</p> |
|
27 |
|
|
28 |
<input type="hidden" name="action" value="Part/dispatch"> |
|
29 |
<input class="submit" type="submit" name="action_add_from_record" value="[% 'Continue' | $T8 %]"> |
|
30 |
[%- ELSE %] |
|
31 |
</h4> |
|
32 |
[%- END %] |
|
33 |
[%- END %] |
|
34 |
[%- END %] |
|
35 |
<input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]"> |
|
36 |
</p> |
|
37 |
</form> |
|
38 | 36 |
<script type='text/javascript'> |
39 | 37 |
$(function(){ $('#back_button').click(function(){ window.history.back(-1) }) }) |
40 | 38 |
</script> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/generic*
Dateien in generic/* und generictranslations/*