7 [% IF ( SELF.notes && SELF.notes.size ) %]
11 <th class="listheading">[% 'Delete' | $T8 %]</th>
12 <th class="listheading">[% 'Subject' | $T8 %]</th>
13 <th class="listheading">[% 'Created on' | $T8 %]</th>
14 <th class="listheading">[% 'Created by' | $T8 %]</th>
15 <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
16 <th class="listheading">[% 'Follow-Up for' | $T8 %]</th>
17 <th class="listheading">[% 'Follow-Up done' | $T8 %]</th>
20 [%- FOREACH row = SELF.notes %]
21 <tr class="listrow[% loop.count % 2 %]">
23 [% IF ( !SELF.note || SELF.note.id != row.id ) %]
24 [% L.checkbox_tag('delete_notes[]', value = row.id) %]
29 <a href="controller.pl?action=CustomerVendor/edit&db=[% SELF.is_vendor() ? 'vendor' : 'customer' %]&id=[% HTML.url(SELF.cv.id) %]¬e_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a>
33 [% row.itime.to_kivitendo | html %]
37 [% row.employee.safe_name | html %]
41 [% row.follow_up.follow_up_date.to_kivitendo | html %]
45 [% FOREACH employee = row.follow_up.created_for_employees -%]
46 [% employee.safe_name | html %][% IF !loop.last %]<br>[% END -%]
51 [% IF ( row.follow_up.follow_up_date ) %]
52 [% IF ( row.follow_up.done ) %]
66 [% IF ( SELF.note.id ) %]
67 [% 'Edit note' | $T8 %]
69 [% 'Add note' | $T8 %]
73 [% L.hidden_tag('note.id', SELF.note.id) %]
77 [% IF SELF.note_followup.done -%]
78 <tr class="fu_finished">
79 <td>[% 'Finished' | $T8 %]</td>
80 <td>[% 'by' | $T8 %] [% HTML.escape(SELF.note_followup.done.employee.safe_name) %]</td>
81 <td colspan="2">[% 'at' | $T8 %] [% HTML.escape(SELF.note_followup.done.done_at_as_timestamp_s) %]</td>
85 <td valign="right">[% 'Subject' | $T8 %]</td>
88 [% L.input_tag_trim('note.subject', SELF.note.subject, size = 50) %]
93 <td valign="right" align="top">[% 'Body' | $T8 %]</td>
95 <td align="top" colspan="3">
96 [% L.textarea_tag('note.body', SELF.note.body, cols = 50 rows = 10) %]
101 <td valign="right">[% 'Follow-Up On' | $T8 %]</td>
104 [% L.date_tag('note_followup.follow_up_date', SELF.note_followup.follow_up_date) %]
109 <td valign="right" align="top">[% 'for' | $T8 %]</td>
112 <tr class="listheading">
113 <th>[% L.checkbox_tag('checkall_checkboxes', label='', id='ckeckall', checkall="[data-checkall=1]") %]</th>
114 <th>[% LxERP.t8('All users') %]</th>
117 [% FOREACH employee = SELF.all_employees %]
118 [% SET checked = 0 %]
119 [% FOREACH cfe = SELF.note_followup.created_for_employees %]
120 [% IF cfe.id == employee.id %][% SET checked = 1 %][% LAST %][% END %]
123 <td>[% L.checkbox_tag('note_followup.created_for_employees[]', value=employee.id, checked=checked, "data-checkall"=1, class="employee_check") %]</td>
124 <td><label for='created_for_employees[]'>[% HTML.escape(employee.safe_name) %]</label><td>
131 <tr class="listheading"><th>[% LxERP.t8('Users that are a member in this group') %] ([% LxERP.t8('click on a group to add the group\'s users') %])</th></tr>
132 [% FOREACH auth_group = SELF.all_auth_groups %]
133 <tr onclick="follow_up_do_select(this)" data-ids='[% FOREACH employee = auth_group.get_employees %][% employee.id %][% IF !loop.last %],[% END%][% END%]' class="interactive cursor-pointer">
134 <td class="listrow1"><b>← [% auth_group.name %]</b>: [% auth_group.description %]</td>
136 [% FOREACH employee = auth_group.get_employees %]
137 <tr class="listrow0"><td> [% employee.safe_name %]</td></tr>
148 [% L.checkbox_tag('note_followup_done', checked = SELF.note_followup.done) %]
149 <label for="note_followup_done">[% 'Follow-Up done' | $T8 %]</label>