]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/generic/new_item.html
Artikel-Klassifizierung
[mfinanz.git] / templates / webpages / generic / new_item.html
index d6219e68957f71d89485a0f0164e7c896a25ef93..d79f88a7d7c3a51d9e5682e6d714047b61c06c17 100644 (file)
@@ -1,7 +1,15 @@
 [%- USE T8 %]
 [%- USE HTML %]
+<form method="post" action="ic.pl">
+[%- IF is_wrong_pclass == 1 %]
+<h4 class="error">[% 'searched part not for sale' | $T8 %]</h4>
+[%- ELSE %]
+[%- IF is_wrong_pclass == 2 %]
+<h4 class="error">[% 'searched part not for purchase' | $T8 %]</h4>
+[%- ELSE %]
+[% IF INSTANCE_CONF.get_create_part_if_notfound %]
 
-    <h4 class="error">[% 'Item not on file!' | $T8 %]
+    <h4 class="error">[% 'Item does not exists in File' | $T8 %]
 
     <p>[% 'What type of item is this?' | $T8 %]</h4>
 
@@ -9,8 +17,8 @@
 
       <p>
 
-      <input class="radio" type="radio" name="item" value="part" checked>&nbsp;[% 'Part' | $T8 %]<br>
-      <input class="radio" type="radio" name="item" value="service">&nbsp;[% 'Service' | $T8 %]
+      <input class="radio" type="radio" name="part_type" value="part" checked>&nbsp;[% 'Part' | $T8 %]<br>
+      <input class="radio" type="radio" name="part_type" value="service">&nbsp;[% 'Service' | $T8 %]
       <p>
 
       [%- FOREACH var = HIDDENS %]
 
       <input type="hidden" name="action" value="dispatcher">
       <input class="submit" type="submit" name="action_add" value="[% 'Continue' | $T8 %]">
+[%- ELSE %]
+    <h4 class="error">[% 'Item does not exists in File' | $T8 %]</h4>
+[%- END %]
+[%- END %]
+[%- END %]
       <input id='back_button' type='button' class="submit" value="[% 'Back' | $T8 %]">
-    </form>
+    </p>
+  </form>
 <script type='text/javascript'>
   $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
 </script>