]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/order/tabs/phone_notes.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / order / tabs / phone_notes.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 [%- USE LxERP %]
5 [%- USE P %]
6
7 <div id="phone-notes" class="wrapper">
8  [% IF ( SELF.order.phone_notes && SELF.order.phone_notes.size ) %]
9   <table class="tbl-list">
10    <thead>
11     <tr>
12       <th class="listheading">[% 'Subject' | $T8 %]</th>
13       <th class="listheading">[% 'Created on' | $T8 %]</th>
14       <th class="listheading">[% 'Created by' | $T8 %]</th>
15     </tr>
16    </thead>
17    <tbody>
18     [%- FOREACH row = SELF.order.phone_notes %]
19      <tr class="listrow">
20        <td>[% P.link_tag('#', row.subject, onclick="kivi.Order.load_phone_note(" _ HTML.url(row.id) _ ", '" _ HTML.escape(row.subject) _ "', '" _ row.body _ "')") %]</td>
21        <td>[% row.itime.to_kivitendo | html %]</td>
22        <td>[% row.employee.safe_name | html %]</td>
23      </tr>
24     [% END %]
25    </tbody>
26   </table>
27  [% END %]
28
29   [% L.hidden_tag('phone_note.id') %]
30
31   <table tbl-horizontal>
32     <caption id='phone_note_edit_text'>[% 'Add note' | $T8 %]</caption>
33     <colgroup><col class="wi-verysmall"><col class="wi-wider"></colgroup>
34     <tbody>
35      <tr>
36       <th>[% 'Subject' | $T8 %]</th>
37       <td>[% L.input_tag('phone_note.subject', '', class="wi-wider") %]</td>
38      </tr>
39      <tr>
40       <th>[% 'Body' | $T8 %]</th>
41       <td>[% L.textarea_tag('phone_note.body', '', style="height: 350px", class="texteditor wi-wider") %]</td>
42      </tr>
43     </tbody>
44   </table>
45
46  <p>
47    [% P.button_tag("kivi.Order.save_phone_note()",   LxERP.t8('Save')) %]
48    [% P.button_tag("kivi.Order.delete_phone_note()", LxERP.t8('Delete'), id = 'phone_note_delete_button', style='display:none') %]
49    [% P.button_tag("kivi.Order.cancel_phone_note()", LxERP.t8('Cancel'), class="neutral") %]
50  </p>
51
52 </div>