</td>
</tr>
<tr>
- <th align="right">[% 'Duration' | $T8 %] ([% 'in minutes' | $T8 %])</th>
+ <th align="right">[% 'Duration' | $T8 %]</th>
<td>
- [% P.input_tag('time_recording.duration', SELF.time_recording.duration, size=11) %]
+ [% 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>
<tr>
<th align="right">[% 'Project' | $T8 %]</th>
- <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, style='width: 300px') %]</td>
+ <td>[% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px', onchange='kivi.TimeRecording.project_changed()') %]</td>
</tr>
<tr></tr><tr></tr>
<tr>
</tr>
</table>
+ [%- IF SELF.use_duration %]
+ <p>
+ <sup>(1)</sup>
+ [% 'Valid are integer values and floating point numbers, e.g. 4.75h = 4 hours and 45 minutes.' | $T8 %]
+ </p>
+ [%- END %]
+
</form>