Refactoring: DHTML-Tab-Dialog durch Variante aus jQuery-UI ersetzt
[kivitendo-erp.git] / templates / webpages / ic / form_footer.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4   [%- IF item == 'assembly' %]
5   <!-- Wieder zurueck in die ic.pl, entweder alle Einzelteile auslagern oder gar keine -->
6   <!-- tr>
7     <td>
8       <table border="0" width="100%">
9         <tr>
10           <th colspan="2" align=right>[% 'Total' | $T8 %]&nbsp;</th>
11           <th align=right>[% 'Purchase Price' | $T8 %]:[% LxERP.format_amount(assembly_purchase_price_total, 2) %]  [% 'Sell Price' | $T8 %]: [% LxERP.format_amount(assemblytotal, 2) %]</th>
12         </tr>
13       </table>
14     </td>
15   </tr>
16   <input type="hidden" name="assembly_rows" value="[% HTML.escape(assembly_rows) %]" -->
17   [%- END %]
18
19   <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
20   <input type="hidden" name="previousform" value="[% HTML.escape(previousform) %]">
21   <input type="hidden" name="taxaccount2" value="[% HTML.escape(taxaccount2) %]">
22   <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
23   <tr>
24     <td><hr size="3" noshade></td>
25   </tr>
26  </table>
27 </div>
28
29 [%- IF id %]
30 <div id="sales_price_information">
31   [% PROCESS ic/sales_price_information.html id=id %]
32 </div>
33 [%- END %]
34
35 [%- IF CUSTOM_VARIABLES.size %]
36 <div id="custom_variables">
37
38  <p>[% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %]</p>
39
40  <p>
41   <table>
42    [%- FOREACH var = CUSTOM_VARIABLES %]
43    <tr>
44     <td align="right" valign="top">[% var.VALID_BOX %]</td>
45     <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
46     <td valign="top">[% var.HTML_CODE %]</td>
47    </tr>
48    [%- END %]
49   </table>
50  </p>
51 </div>
52 [%- END %]
53
54 </div>
55
56 <input class="submit" type="submit" name="action" value="[% 'Update' | $T8 %]">
57 <input type="hidden" name="price_rows" value="[% HTML.escape(price_rows) %]">
58 <input class="submit" type="submit" name="action" value="[% 'Save' | $T8 %]">
59
60   [%- IF id %]
61     [%- UNLESS previousform %]
62 <input class="submit" type="submit" name="action" value="[% 'Save as new' | $T8 %]">
63     [%- END %]
64
65     [%- IF orphaned %]
66       [%- UNLESS previousform %]
67         [%- IF item == 'assembly' %]
68           [%- UNLESS onhand %]
69 <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
70           [%- END %]
71         [%- ELSE %]
72 <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
73         [%- END %]
74       [%- END %]
75     [%- END %]
76   [%- END %]
77
78   [%- IF id != "" %]
79 <input type="button" class="submit" onclick="set_history_window([% id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
80   [%- END %]
81
82 </form>
83
84 <script type="text/javascript" src="js/wz_tooltip.js"></script>