28 lines
1.3 KiB
XML
28 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
<t t-name="timesheet_form">
|
|
<div class="container">
|
|
<h2>Weekly Timesheet</h2>
|
|
<form class="timesheet-form">
|
|
<div class="form-group">
|
|
<label for="employee">Employee</label>
|
|
<input t-att-value="state.employee" type="text" id="employee" class="form-control"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="weekStartDate">Week Start Date</label>
|
|
<input type="datetime-local" t-model="state.weekStartDate" id="weekStartDate" class="form-control"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="weekEndDate">Week End Date</label>
|
|
<input type="datetime-local" t-model="state.weekEndDate" id="weekEndDate" class="form-control"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="totalHours">Total Hours Worked</label>
|
|
<input type="number" t-model="state.totalHours" id="totalHours" class="form-control" min="0"/>
|
|
</div>
|
|
<button type="button" t-on-click="submitForm" class="btn btn-primary">Submit Timesheet</button>
|
|
</form>
|
|
</div>
|
|
</t>
|
|
</templates>
|