65 lines
2.6 KiB
PHP
65 lines
2.6 KiB
PHP
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th class="table-tealish-header">voornaam</th>
|
|
<th class="table-tealish-header">achternaam</th>
|
|
<th class="table-tealish-header">tussenvoegsel</th>
|
|
<th class="table-tealish-header">gebruikersnaam</th>
|
|
<th class="table-tealish-header">email</th>
|
|
<th class="table-tealish-header">rol</th>
|
|
<th class="table-tealish-header"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody data-bind="foreach:users">
|
|
<tr>
|
|
<td><span data-bind="text:lastname"></span></td>
|
|
<td><span data-bind="text:firstname"></span></td>
|
|
<td><span data-bind="text:middlename"></span></td>
|
|
<td><span data-bind="text:username"</td>
|
|
<td><span data-bind="text:email"></span></td>
|
|
<td><span data-bind=""></span></td>
|
|
<td>
|
|
<i class="icon fa-edit pointer" title="wijzig" data-bind="click:$root.editUser"></i>
|
|
<i class="icon fa-user pointer" title="uren" data-bind="click:$root.editTarget"></i>
|
|
<!-- ko if:archive == 'F' -->
|
|
<i class="icon fa-archive pointer" title="archiveer"
|
|
data-bind="click:$root.archiveUser"></i>
|
|
<!-- /ko -->
|
|
<!-- ko if:archive != 'F' -->
|
|
<i class="icon fa-minus-circle redish pointer" title="archiveer"
|
|
data-bind="click:$root.archiveUser"></i>
|
|
<!-- /ko -->
|
|
<i class="icon fa-trash redish pointer" title="verwijder"
|
|
data-bind="click:$root.removeUser"></i>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5" class="">
|
|
<button class="btn btn-primary btn-round btn-sm" data-bind="click:newUser">
|
|
nieuwe gebruiker
|
|
</button>
|
|
</td>
|
|
<td colspan="2" class="">
|
|
<div class="row form-horizontal">
|
|
<label class="col-md-4 form-control-label">archief</label>
|
|
<div class="col-md-8">
|
|
<div class="onoffswitch" data-bind="click:toggleArchive">
|
|
<input type="checkbox"
|
|
name="onoffswitch"
|
|
class="onoffswitch-checkbox"
|
|
data-bind="checked:archive"
|
|
id="myonoffswitch">
|
|
<label class="onoffswitch-label" for="myonoffswitch">
|
|
<span class="onoffswitch-inner"></span>
|
|
<span class="onoffswitch-switch"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
</table> |