Artikel-Klassifizierung
[kivitendo-erp.git] / templates / webpages / generic / new_item.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 <form method="post" action="ic.pl">
4 [%- IF is_wrong_pclass == 1 %]
5 <h4 class="error">[% 'searched part not for sale' | $T8 %]</h4>
6 [%- ELSE %]
7 [%- IF is_wrong_pclass == 2 %]
8 <h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4>
9 [%- ELSE %]
10 [% IF INSTANCE_CONF.get_create_part_if_notfound %]
11
12     <h4 class="error">[% 'Item does not exists in File' | $T8 %]
13
14     <p>[% 'What type of item is this?' | $T8 %]</h4>
15
16     <form method="post" action="ic.pl">
17
18       <p>
19
20       <input class="radio" type="radio" name="part_type" value="part" checked>&nbsp;[% 'Part' | $T8 %]<br>
21       <input class="radio" type="radio" name="part_type" value="service">&nbsp;[% 'Service' | $T8 %]
22       <p>
23
24       [%- FOREACH var = HIDDENS %]
25       <input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
26       [%- END %]
27
28       <input type="hidden" name="action" value="dispatcher">
29       <input class="submit" type="submit" name="action_add" value="[% 'Continue' | $T8 %]">
30 [%- ELSE %]
31     <h4 class="error">[% 'Item does not exists in File' | $T8 %]</h4>
32 [%- END %]
33 [%- END %]
34 [%- END %]
35       <input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]">
36     </p>
37   </form>
38 <script type='text/javascript'>
39   $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
40 </script>
41
42