X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3aa5cee2f12c1dff757539b60196bf5e1be0a5d6..HEAD:/templates/webpages/customer_vendor/tabs/vcnotes.html
diff --git a/templates/webpages/customer_vendor/tabs/vcnotes.html b/templates/webpages/customer_vendor/tabs/vcnotes.html
index cf4eeb555..f2cacaab2 100644
--- a/templates/webpages/customer_vendor/tabs/vcnotes.html
+++ b/templates/webpages/customer_vendor/tabs/vcnotes.html
@@ -1,6 +1,7 @@
[%- USE T8 %]
[%- USE HTML %]
[%- USE L %]
+[%- USE LxERP %]
[% IF ( SELF.notes && SELF.notes.size ) %]
@@ -41,7 +42,9 @@
- [% row.follow_up.created_for.safe_name | html %]
+ [% FOREACH employee = row.follow_up.created_for_employees -%]
+ [% employee.safe_name | html %][% IF !loop.last %] [% END -%]
+ [% END %]
@@ -71,18 +74,25 @@
+ [% IF SELF.note_followup.done -%]
+
+ [% 'Finished' | $T8 %]
+ [% 'by' | $T8 %] [% HTML.escape(SELF.note_followup.done.employee.safe_name) %]
+ [% 'at' | $T8 %] [% HTML.escape(SELF.note_followup.done.done_at_as_timestamp_s) %]
+
+ [% END %]
[% 'Subject' | $T8 %]
-
- [% L.input_tag('note.subject', SELF.note.subject, size = 50) %]
+
+ [% L.input_tag_trim('note.subject', SELF.note.subject, size = 50) %]
[% 'Body' | $T8 %]
-
+
[% L.textarea_tag('note.body', SELF.note.body, cols = 50 rows = 10) %]
@@ -90,24 +100,52 @@
[% 'Follow-Up On' | $T8 %]
-
+
[% L.date_tag('note_followup.follow_up_date', SELF.note_followup.follow_up_date) %]
- [% 'for' | $T8 %]
- [% L.select_tag(
- 'note_followup.created_for_user',
- SELF.all_employees,
- default = SELF.note_followup.created_for_user,
- title_key = 'safe_name'
- )
- %]
-
+
+
+
+
+ [% 'for' | $T8 %]
+
+
+
+ [% L.checkbox_tag('checkall_checkboxes', label='', id='ckeckall', checkall="[data-checkall=1]") %]
+ [% LxERP.t8('All users') %]
+
+
+ [% FOREACH employee = SELF.all_employees %]
+ [% SET checked = 0 %]
+ [% FOREACH cfe = SELF.note_followup.created_for_employees %]
+ [% IF cfe.id == employee.id %][% SET checked = 1 %][% LAST %][% END %]
+ [% END %]
+
+ [% L.checkbox_tag('note_followup.created_for_employees[]', value=employee.id, checked=checked, "data-checkall"=1, class="employee_check") %]
+ [% HTML.escape(employee.safe_name) %]
+
+ [% END %]
+
+
+
+
+ [% LxERP.t8('Users that are a member in this group') %] ([% LxERP.t8('click on a group to add the group\'s users') %])
+ [% FOREACH auth_group = SELF.all_auth_groups %]
+
+ â [% auth_group.name %] : [% auth_group.description %]
+
+ [% FOREACH employee = auth_group.get_employees %]
+ [% employee.safe_name %]
+ [% END %]
+ [% END %]
+
+
- [% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %]
+ [% L.checkbox_tag('note_followup_done', checked = SELF.note_followup.done) %]
[% 'Follow-Up done' | $T8 %]