Files
dbois/application/views/modals/employeetarget_modal.php
T
2018-04-24 08:31:00 +02:00

103 lines
5.1 KiB
PHP

<div class="modal modal-fade-in-scale-up modal-primary" tabindex="-1" id="employee-target-modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">toevoegen / wijzigen medewerker uren
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</h5>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<table class="table table-condensed">
<thead>
<tr>
<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>
<select data-bind="options:years,
optionsText:'year',
optionsValue:'year',
value:startyear,
disable: ! changeable()"
class="form-control">
</select>
</td>
<td>
<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"
class="form-control"
data-bind="textInput:target">
</td>
<td>
<button class="btn btn-success"
data-bind="disable: ! validTarget()">
opslaan
</button>
</td>
</tr>
<!-- /ko -->
</tbody>
<tfoot>
<tr>
<th colspan="6">
<i class="icon fa-plus-square-o pull-right pointer"
data-bind="click:addEmployeeTarget"></i>
</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-warning"
data-dismiss="modal">
sluiten
</button>
</div>
</div>
</div>
</div>