Zeiterfassung: Keine Zeiterfassungstypen mehr
[kivitendo-erp.git] / templates / webpages / time_recording / form.html
1 [% USE L %]
2 [% USE P %]
3 [% USE T8 %]
4 [% USE LxERP %]
5 [% USE HTML %]
6
7 <h1>[% title %]</h1>
8
9 [%- INCLUDE 'common/flash.html' %]
10
11 <form method="post" action="controller.pl" id="form">
12   [% P.hidden_tag('id',       SELF.time_recording.id) %]
13   [% L.hidden_tag('callback', FORM.callback) %]
14
15   <table>
16     <thead class="listheading">
17       <tr>
18         <th>[% 'Start' | $T8 %]</th>
19         <th>[% 'End' | $T8 %]</th>
20         <th>[% 'Customer' | $T8 %]</th>
21         <th>[% 'Project' | $T8 %]</th>
22         <th>[% 'Description' | $T8 %]</th>
23         <th>[% 'Mitarbeiter' | $T8 %]</th>
24       </tr>
25     </thead>
26     <tbody valign="top">
27       <tr>
28         <td>
29           [% P.date_tag('start_date',  SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]<br>
30           [% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %]
31           [% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %]
32         </td>
33         <td>
34           [% P.date_tag('end_date',  SELF.end_date) %]<br>
35           [% P.input_tag('end_time', SELF.end_time, type="time") %]
36           [% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %]
37         </td>
38         <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>
39         <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %]</td>
40         <td>[% L.textarea_tag('time_recording.description', SELF.time_recording.description, wrap="soft", style="width: 350px; height: 150px", class="texteditor", "data-validate"="required", "data-title"=LxERP.t8('Description')) %]</td>
41         <td>
42           [%- IF SELF.can_edit_all -%]
43             [% L.select_tag('time_recording.staff_member_id', SELF.all_employees,
44                              default    => SELF.time_recording.staff_member_id,
45                              title_key  => 'safe_name',
46                              value_key  => 'id',
47                              style      => 'width: 200px') %]
48           [%- ELSE -%]
49             [% SELF.time_recording.staff_member.safe_name | html %]
50           [%- END -%]
51         </td>
52       </tr>
53     </tbody>
54   </table>
55
56 </form>