]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/generic/new_item.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / generic / new_item.html
1 [% USE T8 %]
2 [% USE HTML %]
3
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>
34
35
36 <script type='text/javascript'>
37   $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
38 </script>