Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[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>[% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]</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   <input type="hidden" id="rowcount" name="rowcount" value="[% HTML.escape(rowcount) %]">
66   <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
67
68  [%- IF !delivered %]
69   <div id="shipto_inputs" class="hidden">
70    [%- PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ cvars=shipto_cvars %]
71   </div>
72  [%- END %]
73
74   <div id="email_inputs" class="hidden"></div>
75
76   <div id="print_options" class="hidden">
77    [% PRINT_OPTIONS %]
78   </div>
79  </form>
80 <script type='text/javascript'>
81  $(kivi.SalesPurchase.init_on_submit_checks);
82 </script>
83
84 [%- IF !delivered %]
85  <div id="shipto_dialog" class="hidden"></div>
86 [%- END %]
87 <div id="print_dialog" class="hidden">
88  [%- PROCESS 'common/_print_dialog.html' %]
89 </div>