]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/generic/new_item.html
Artikel-Klassifizierung
[mfinanz.git] / templates / webpages / generic / new_item.html
index 1d3104a6d44d2ccc09968ed8b88e1469fecddb1a..d79f88a7d7c3a51d9e5682e6d714047b61c06c17 100644 (file)
@@ -1,8 +1,15 @@
 [%- USE T8 %]
-[% USE HTML %]  <body>
-
-    <h4 class="error">[% 'Item not on file!' | $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 does not exists in File' | $T8 %]
 
     <p>[% 'What type of item is this?' | $T8 %]</h4>
 
 
       <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="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">
       [%- END %]
 
-      <input type="hidden" name="nextsub" value="add">
-      <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
-    </form>
+      <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 %]">
+    </p>
+  </form>
+<script type='text/javascript'>
+  $(function(){ $('#back_button').click(function(){ window.history.back(-1) }) })
+</script>
 
-  </body>
-</html>