Revision a1782bcc
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
templates/design40_webpages/time_recording/_filter.html | ||
---|---|---|
[%- USE P %]
|
||
[%- USE LxERP %]
|
||
[%- USE HTML %]
|
||
|
||
<form action='controller.pl' method='post' id='filter_form'>
|
||
<div class='filter_toggle'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
|
||
[% SELF.filter_summary | html %]
|
||
</div>
|
||
<div class='filter_toggle' style='display:none'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
|
||
<table id='filter_table'>
|
||
<tr>
|
||
<th align="right">[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Date' | $T8 %] [% 'To Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Customer' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Customer Number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Order Number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Project' | $T8 %]</th>
|
||
<td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', size = 20) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Description' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td>
|
||
</tr>
|
||
<div class="wrapper">
|
||
|
||
[%- IF SELF.can_view_all -%]
|
||
<tr>
|
||
<th align="right">[% 'Mitarbeiter' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('filter.staff_member_id', SELF.all_employees,
|
||
default => filter.staff_member_id,
|
||
title_key => 'name',
|
||
value_key => 'id',
|
||
with_empty => 1,
|
||
style => 'width: 200px') %]
|
||
</td>
|
||
</tr>
|
||
[%- END -%]
|
||
[% BLOCK filter_toggle_panel %]
|
||
<table id='filter_table' class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge, class='wi-date') %] [% 'To (time)' | $T8 %][% L.date_tag('filter.date:date::le', filter.date_date__le, class='wi-date') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Customer' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Customer Number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Order Number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Project' | $T8 %]</th>
|
||
<td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', class='wi-lightwide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Description' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Booked' | $T8 %]</th>
|
||
<td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %]</td>
|
||
</tr>
|
||
[%- IF SELF.can_view_all -%]
|
||
<tr>
|
||
<th>[% 'Mitarbeiter' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('filter.staff_member_id', SELF.all_employees,
|
||
default => filter.staff_member_id,
|
||
title_key => 'name',
|
||
value_key => 'id',
|
||
with_empty => 1,
|
||
class => 'wi-lightwide') %]
|
||
</td>
|
||
</tr>
|
||
[%- END -%]
|
||
|
||
</table>
|
||
<tr>
|
||
<th>[% 'Booked' | $T8 %]</th>
|
||
<td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, class => 'wi-lightwide') %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
[% L.hidden_tag('sort_by', FORM.sort_by) %]
|
||
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
|
||
[% L.hidden_tag('page', FORM.page) %]
|
||
[% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset')) %]
|
||
<div class="buttons">
|
||
[% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset'), class='neutral') %]
|
||
</div>
|
||
|
||
[% END # /BLOCK filter_toggle_panel %]
|
||
|
||
[% INCLUDE 'common/toggle_panel.html' %]
|
||
|
||
</div>
|
||
</form>
|
templates/design40_webpages/time_recording/form.html | ||
---|---|---|
[% P.hidden_tag('id', SELF.time_recording.id) %]
|
||
[% L.hidden_tag('callback', FORM.callback) %]
|
||
|
||
<table>
|
||
[%- IF SELF.use_duration %]
|
||
<tr>
|
||
<th align="right">[% 'Date' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('time_recording.date_as_date', SELF.time_recording.date_as_date, "data-validate"="required", "data-title"=LxERP.t8('Date')) %]<br>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Duration' | $T8 %]</th>
|
||
<td>
|
||
[% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', size=4, class='numeric',
|
||
"data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"=LxERP.format_amount(0.00, 2)) %] [% 'h' | $T8 %]<sup>(1)</sup>
|
||
[% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', size=4, class='numeric',
|
||
"data-validate"="number", "data-title"=LxERP.t8('min'), "placeholder"="0" ) %] [% 'min' | $T8 %]
|
||
</td>
|
||
</tr>
|
||
[%- ELSE %]
|
||
<tr>
|
||
<th align="right">[% 'Start' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('start_date', SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]
|
||
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %]
|
||
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'End' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('end_date', SELF.end_date) %]
|
||
[% P.input_tag('end_time', SELF.end_time, type="time") %]
|
||
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr></tr><tr></tr>
|
||
<tr>
|
||
<th align="right">[% 'Sales Order' | $T8 %]</th>
|
||
<td>[% P.select_tag('time_recording.order_id', SELF.all_orders, default=SELF.time_recording.order_id, with_empty=1, style='width: 300px', onchange='kivi.TimeRecording.order_changed(this.value)') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Customer' | $T8 %]</th>
|
||
<td>[% P.customer_vendor.picker('time_recording.customer_id', SELF.time_recording.customer_id, type='customer', style='width: 300px', "data-validate"="required", "data-title"=LxERP.t8('Customer')) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Project' | $T8 %]</th>
|
||
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px') %]</td>
|
||
</tr>
|
||
<tr></tr><tr></tr>
|
||
<tr>
|
||
<th align="right">[% 'Article' | $T8 %]</th>
|
||
<td>[% P.select_tag('time_recording.part_id', SELF.all_time_recording_articles, default=SELF.time_recording.part_id, with_empty=1, value_key='id', title_key='description', style='width: 300px') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Description' | $T8 %]</th>
|
||
<td>[% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="width: 300px; height: 150px", class="texteditor", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Mitarbeiter' | $T8 %]</th>
|
||
<td>
|
||
[%- IF SELF.can_edit_all -%]
|
||
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees,
|
||
default => SELF.time_recording.staff_member_id,
|
||
title_key => 'safe_name',
|
||
value_key => 'id',
|
||
style => 'width: 300px') %]
|
||
[%- ELSE -%]
|
||
[% SELF.time_recording.staff_member.safe_name | html %]
|
||
[%- END -%]
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<div class="wrapper">
|
||
<table class="tbl-horizontal">
|
||
<tbody>
|
||
[%- IF SELF.use_duration %]
|
||
<tr>
|
||
<th>[% 'Date' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('time_recording.date_as_date', SELF.time_recording.date_as_date, class='wi-date', "data-validate"="required", "data-title"=LxERP.t8('Date')) %]<br>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Duration' | $T8 %]</th>
|
||
<td>
|
||
[% P.input_tag('duration_h', SELF.time_recording.duration_as_hours || '', class='numeric wi-smallest',
|
||
"data-validate"="number", "data-title"=LxERP.t8('h'), "placeholder"=LxERP.format_amount(0.00, 2)) %] [% 'h' | $T8 %]<sup>(1)</sup>
|
||
[% P.input_tag('duration_m', SELF.time_recording.duration_as_minutes || '', class='numeric wi-smallest',
|
||
"data-validate"="number", "data-title"=LxERP.t8('min'), "placeholder"="0" ) %] [% 'min' | $T8 %]
|
||
</td>
|
||
</tr>
|
||
[%- ELSE %]
|
||
<tr>
|
||
<th>[% 'Start' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('start_date', SELF.start_date, class='wi-date', "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]
|
||
[% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %]
|
||
[% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'End' | $T8 %]</th>
|
||
<td>
|
||
[% P.date_tag('end_date', SELF.end_date, class='wi-date') %]
|
||
[% P.input_tag('end_time', SELF.end_time, type="time") %]
|
||
[% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr></tr><tr></tr>
|
||
<tr>
|
||
<th>[% 'Sales Order' | $T8 %]</th>
|
||
<td>[% P.select_tag('time_recording.order_id', SELF.all_orders, default=SELF.time_recording.order_id, with_empty=1, class='wi-wide', onchange='kivi.TimeRecording.order_changed(this.value)') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Customer' | $T8 %]</th>
|
||
<td>[% P.customer_vendor.picker('time_recording.customer_id', SELF.time_recording.customer_id, type='customer', class='wi-wide', "data-validate"="required", "data-title"=LxERP.t8('Customer')) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Project' | $T8 %]</th>
|
||
<td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr></tr><tr></tr>
|
||
<tr>
|
||
<th>[% 'Article' | $T8 %]</th>
|
||
<td>[% P.select_tag('time_recording.part_id', SELF.all_time_recording_articles, default=SELF.time_recording.part_id, with_empty=1, value_key='id', title_key='description', class='wi-wide') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Description' | $T8 %]</th>
|
||
<td class="wi-wide">[% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="height: 150px", class="texteditor wi-wide", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Mitarbeiter' | $T8 %]</th>
|
||
<td>
|
||
[%- IF SELF.can_edit_all -%]
|
||
[% L.select_tag('time_recording.staff_member_id', SELF.all_employees,
|
||
default => SELF.time_recording.staff_member_id,
|
||
title_key => 'safe_name',
|
||
value_key => 'id',
|
||
class => 'wi-wide') %]
|
||
[%- ELSE -%]
|
||
[% SELF.time_recording.staff_member.safe_name | html %]
|
||
[%- END -%]
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
[%- IF SELF.use_duration %]
|
||
<p>
|
templates/design40_webpages/time_recording/report_bottom.html | ||
---|---|---|
[%- USE L %]
|
||
[% L.paginate_controls(models=SELF.models) %]
|
||
</form>
|
||
[% L.paginate_controls(models=SELF.models) %]
|
||
</form>
|
||
</div>
|
templates/design40_webpages/time_recording/report_top.html | ||
---|---|---|
[%- PROCESS 'time_recording/_filter.html' filter=SELF.models.filtered.laundered %]
|
||
<hr>
|
||
<form method="post" action="controller.pl" id="form">
|
||
<div class="wrapper">
|
||
<form method="post" action="controller.pl" id="form">
|
Auch abrufbar als: Unified diff
design40: Zeiterfassung: HTML-Templates angepasst