X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0f0cb3b708f9078b774a07cecd996e5bdc5fac63..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 403b0ffc1..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 %] @@ -59,31 +62,37 @@

[% END %] - -
+

[% IF ( SELF.note.id ) %] [% 'Edit note' | $T8 %] [% ELSE %] [% 'Add note' | $T8 %] [% END %] -

+ [% L.hidden_tag('note.id', SELF.note.id) %]

+ [% IF SELF.note_followup.done -%] + + + + + + [% END %] - - @@ -91,24 +100,52 @@ - + + + + +
[% '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) %]
[% '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) %]
[% '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 %] + + + + + + + [% 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 %] + + + + [% END %] +
[% L.checkbox_tag('checkall_checkboxes', label='', id='ckeckall', checkall="[data-checkall=1]") %][% LxERP.t8('All users') %]
[% L.checkbox_tag('note_followup.created_for_employees[]', value=employee.id, checked=checked, "data-checkall"=1, class="employee_check") %] +
+
+ + + + [% FOREACH auth_group = SELF.all_auth_groups %] + + + + [% FOREACH employee = auth_group.get_employees %] + + [% END %] + [% END %] +
[% LxERP.t8('Users that are a member in this group') %] ([% LxERP.t8('click on a group to add the group\'s users') %])
← [% auth_group.name %]: [% auth_group.description %]
   [% employee.safe_name %]
+
  - [% L.checkbox_tag('note_followup.done', checked = SELF.note_followup.done) %] + [% L.checkbox_tag('note_followup_done', checked = SELF.note_followup.done) %]