E-Mail-Journal: Journal anzeigen, Eintrag anzeigen, Anhänge herunterladen
[kivitendo-erp.git] / templates / webpages / do / form_footer.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %][%- USE L -%][%- USE P -%]
3  [%- IF delivered %]
4  [%- SET RO = ' readonly' %]
5  [%- END %]
6
7     <tr>
8      <td>
9       <table>
10        <tr valign="bottom">
11         <th align="left">[% 'Notes' | $T8 %]</th>
12         <th align="left">[% 'Internal Notes' | $T8 %]</th>
13        </tr>
14
15        <tr valign="top">
16         <td>
17          [% IF delivered %]
18           [% L.hidden_tag("notes", notes) %]
19          <div style="width: 350px; height: 150px; border: 1px solid black">[% P.restricted_html(notes) %]</div>
20          [% ELSE %]
21           [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
22          [% END %]
23         </td>
24         <td><textarea name="intnotes" rows="[% LxERP.numtextrows(intnotes, 35, 8, 2) %]" cols="35" wrap="soft"[% RO %]>[% HTML.escape(intnotes) %]</textarea></td>
25        </tr>
26
27        <tr>
28          <th align="right">[% 'Delivery Terms' | $T8 %]</th>
29          <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]</td>
30        </tr>
31       </table>
32
33      </td>
34     </tr>
35 [%- IF show_weight %]
36   <tr>
37     <td>
38       <table width="100%">
39         <tr valign="bottom">
40           <td align="right">
41             <table>
42             <tr>
43               <th  align="left">[% 'Total weight' | $T8 %]</th>
44               <td align="right">
45                 [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
46               </td>
47             </tr>
48             </table>
49           </td>
50         </tr>
51       </table>
52     </td>
53   </tr>
54 [%- END %]
55    </table>
56   </p>
57
58  </div>
59 [% PROCESS 'webdav/_list.html' %]
60  <div id="ui-tabs-1">
61   [%- LxERP.t8("Loading...") %]
62  </div>
63 </div>
64
65 <hr size="3" noshade>
66
67   <p>[% PRINT_OPTIONS %]</p>
68
69   <p>
70    [% 'Edit the Delivery Order' | $T8 %]<br>
71    <input type="hidden" name="action" value="dispatcher">
72    <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
73    [%- UNLESS delivered %]
74    [%- IF vc == 'customer' %]
75    <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
76    [%- END %]
77    [%- END %]
78    <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
79    <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
80    [%- UNLESS delivered %]
81    <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
82    [%- IF vc == 'customer' %]
83    <input class="submit" type="submit" name="action_transfer_out" value="[% 'Transfer out' | $T8 %]" data-check-transfer-qty="1" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
84    [% IF transfer_default %]
85    <input class="submit" type="submit" name="action_transfer_out_default" value="[% 'Transfer out via default' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
86    [%- END %]
87    [%- ELSE %]
88    <input class="submit" type="submit" name="action_transfer_in" value="[% 'Transfer in' | $T8 %]" data-check-transfer-qty="1" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
89    [% IF transfer_default %]
90    <input class="submit" type="submit" name="action_transfer_in_default" value="[% 'Transfer in via default' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
91    [%- END %]
92    [%- END %]
93    [%- END %]
94    [%- IF id %]
95      <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
96    [%- UNLESS closed %]
97    <input class="submit" type="submit" name="action_mark_closed" value="[% 'Mark closed' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
98    [%- END %]
99    <input type="button" class="submit" onclick="set_history_window([% id %], 'id');" name="history" id="history" value="[% 'history' | $T8 %]">
100    [%- END %]
101   </p>
102
103   [%- IF id %]
104   <p>
105    [% 'Workflow Delivery Order' | $T8 %]<br>
106    <input class="submit" type="submit" name="action_save_as_new" value="[% 'Save as new' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
107    [% UNLESS delivered || (vc == 'customer' && !INSTANCE_CONF.get_sales_delivery_order_show_delete) || (vc == 'vendor' && !INSTANCE_CONF.get_purchase_delivery_order_show_delete) %]
108     [% L.submit_tag('action_delete', LxERP.t8('Delete'), confirm=LxERP.t8('Are you sure?')) %]
109    [% END %]
110    <input class="submit" type="submit" name="action_invoice" value="[% 'Invoice' | $T8 %]">
111   </p>
112   [%- END %]
113
114   <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
115   <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
116
117  </form>
118 <script type='text/javascript'>
119  $(kivi.SalesPurchase.init_on_submit_checks);
120 </script>