This commit is contained in:
2018-04-24 08:31:00 +02:00
parent e49fa05a9a
commit 6bc0b37f06
4 changed files with 55 additions and 34 deletions
@@ -14,29 +14,56 @@
<table class="table table-condensed">
<thead>
<tr>
<th>start</th>
<th>eind</th>
<th colspan="2">start</th>
<th colspan="2">eind</th>
<th colspan="2">&nbsp;</th>
</tr>
<tr>
<th>maand</th>
<th>jaar</th>
<th>maand</th>
<th>jaar</th>
<th>target per maand</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<!-- ko foreach:employeeTargets -->
<tr>
<td>
<input type="text"
placeholder="startdatum"
class="form-control"
readonly
data-bind="datepicker:{dateFormat: 'dd-mm-yy' },
value:startdate">
<select data-bind="options:years,
optionsText:'year',
optionsValue:'year',
value:startyear,
disable: ! changeable()"
class="form-control">
</select>
</td>
<td>
<input type="text"
placeholder="einddatum"
class="form-control"
readonly
data-bind="datepicker:{dateFormat: 'dd-mm-yy' },
value:enddate">
<select data-bind="options:months,
optionsText:'month',
optionsValue:'month_id',
value:startmonth,
disable: ! changeable()"
class="form-control">
</select>
</td>
<td>
<select data-bind="options:years,
optionsText:'year',
optionsValue:'year',
value:endyear,
disable: ! changeable()"
class="form-control">
</select>
</td>
<td>
<select data-bind="options:months,
optionsText:'month',
optionsValue:'month_id',
value:endmonth"
class="form-control">
</select>
</td>
<td>
<input type="text"
@@ -54,7 +81,7 @@
</tbody>
<tfoot>
<tr>
<th colspan="4">
<th colspan="6">
<i class="icon fa-plus-square-o pull-right pointer"
data-bind="click:addEmployeeTarget"></i>
</th>