11 <!-- PENDENT: wieso Datum nicht descending sortiert? -->
12 [% IF ( SELF.notes && SELF.notes.size ) %]
13 <table class="tbl-list width-moderate">
14 <caption>[% 'Follow-Ups' | $T8 %]</caption>
17 <th>[% 'Delete' | $T8 %]</th>
18 <th>[% 'Subject' | $T8 %]</th>
19 <th>[% 'Created on' | $T8 %]</th>
20 <th>[% 'Created by' | $T8 %]</th>
21 <th>[% 'Follow-Up Date' | $T8 %]</th>
22 <th>[% 'Follow-Up for' | $T8 %]</th>
23 <th>[% 'Follow-Up done' | $T8 %]</th>
27 [% FOREACH row = SELF.notes %]
30 [% IF ( !SELF.note || SELF.note.id != row.id ) %]
31 [% L.checkbox_tag('delete_notes[]', value = row.id) %]
35 <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>
37 <td>[% row.itime.to_kivitendo | html %]</td>
38 <td>[% row.employee.safe_name | html %]</td>
39 <td>[% row.follow_up.follow_up_date.to_kivitendo | html %]</td>
41 [% FOREACH employee = row.follow_up.created_for_employees -%]
42 [% employee.safe_name | html %][% IF !loop.last %]<br>[% END -%]
46 [% IF ( row.follow_up.follow_up_date ) %]
47 [% IF ( row.follow_up.done ) %]
60 [% L.hidden_tag('note.id', SELF.note.id) %]
62 <table class="tbl-horizontal">
64 [% IF ( SELF.note.id ) %]
65 [% 'Edit note' | $T8 %]
67 [% 'Add note' | $T8 %]
71 [% IF SELF.note_followup.done -%]
72 <tr class="fu_finished">
73 <th>[% 'Finished' | $T8 %]</th>
74 <td>[% 'by' | $T8 %] [% HTML.escape(SELF.note_followup.done.employee.safe_name) %]</td>
75 <td colspan="2">[% 'at' | $T8 %] [% HTML.escape(SELF.note_followup.done.done_at_as_timestamp_s) %]</td>
79 <th>[% 'Subject' | $T8 %]</th>
80 <td>[% L.input_tag_trim('note.subject', SELF.note.subject, class="wi-verywide") %]</td>
83 <th>[% 'Follow-Up On' | $T8 %]</th>
85 [% IF SELF.note_followup.follow_up_date ; SET thedate=SELF.note_followup.follow_up_date ; ELSE; SET thedate=date.format(date.now, '%d.%m.%Y'); END %]
86 [% L.date_tag('note_followup.follow_up_date', thedate, class="wi-date") %]
90 <th><label for="note_followup_done" title="[% 'Follow-Up done' | $T8 %]">[% 'Done' | $T8 %]</label></th>
91 <td>[% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %]</td>
94 <th>[% 'Body' | $T8 %]</th>
95 <td >[% L.textarea_tag('note.body', SELF.note.body, rows=10, class="wi-verywide") %]</td>
98 <td>[% 'for' | $T8 %]</td>
101 <tr class="listheading">
102 <th>[% L.checkbox_tag('checkall_checkboxes', label=LxERP.t8('All users'), id='ckeckall', checkall="[data-checkall=1]") %]</th>
104 [% FOREACH employee = SELF.all_employees %]
105 [% SET checked = 0 %]
106 [% FOREACH cfe = SELF.note_followup.created_for_employees %]
107 [% IF cfe.id == employee.id %][% SET checked = 1 %][% LAST %][% END %]
110 <td>[% L.checkbox_tag('note_followup.created_for_employees[]', value=employee.id, checked=checked,
111 "data-checkall"=1, class="employee_check", label=employee.safe_name) %]</td>
118 <tr class="listheading">
119 <th>[% LxERP.t8('Users that are a member in this group') %]<br>([% LxERP.t8('click on a group to add the group\'s users') %])</th>
121 [% FOREACH auth_group = SELF.all_auth_groups %]
122 <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">
123 <td class="listrow1"><b>← [% auth_group.name %]</b>: [% auth_group.description %]</td>
125 [% FOREACH employee = auth_group.get_employees %]
126 <tr class="listrow0"><td> [% employee.safe_name %]</td></tr>