6d46067b67ebc7ce2e0e260f6601e8d9632f29b7
[kivitendo-erp.git] / templates / webpages / time_recording / form.html
1 [% USE L %]
2 [% USE P %]
3 [% USE T8 %]
4 [% USE LxERP %]
5
6 <h1>[% title %]</h1>
7
8 [%- INCLUDE 'common/flash.html' %]
9
10 <form method="post" action="controller.pl" id="form">
11   [% P.hidden_tag('id',       SELF.time_recording.id) %]
12   [% L.hidden_tag('callback', FORM.callback) %]
13
14   <table>
15     <thead class="listheading">
16       <th>[% 'Start' | T8 %]</th>
17       <th>[% 'End' | T8 %]</th>
18       <th>[% 'Customer' | T8 %]</th>
19       <th>[% 'Type' | T8 %]</th>
20       <th>[% 'Project' | T8 %]</th>
21       <th>[% 'Description' | T8 %]</th>
22     </thead>
23     <tbody valign="top">
24       <td>
25         [% P.date_tag('start_date',  SELF.start_date, "data-validate"="required", "data-title"=LxERP.t8('Start date'), onchange='kivi.TimeRecording.set_end_date()') %]<br>
26         [% P.input_tag('start_time', SELF.start_time, type="time", "data-validate"="required", "data-title"=LxERP.t8('Start time')) %]
27         [% P.button_tag('kivi.TimeRecording.set_current_date_time("start")', LxERP.t8('now')) %]
28       </td>
29       <td>
30         [% P.date_tag('end_date',  SELF.end_date) %]<br>
31         [% P.input_tag('end_time', SELF.end_time, type="time") %]
32         [% P.button_tag('kivi.TimeRecording.set_current_date_time("end")', LxERP.t8('now')) %]
33       </td>
34       <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>
35       <td>[% P.select_tag('time_recording.type_id', SELF.all_time_recording_types, default=SELF.time_recording.type.id, with_empty=1, title_key='abbreviation') %]</td>
36       <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %]</td>
37       <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>
38     </tbody>
39   </table>
40
41 </form>