EinsatzOnline/resources/templates/module_member_management_se...

100 lines
5.5 KiB
Handlebars

{{> header }}
<div class="container-fluid">
<div class="row">
<div class="wrapper" style="width:100%">
{{> sidebar }}
<div id="content" style="width: 100%">
<h1>Member List</h1>
<div class="col-md-6">
<form>
<ul class="nav nav-tabs" id="filterTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="group-tab" data-toggle="tab" href="#group" role="tab" aria-controls="group" aria-selected="true">Group Selection</a>
</li>
<li class="nav-item">
<a class="nav-link" id="searchfields-tab" data-toggle="tab" href="#searchfields" role="tab" aria-controls="searchfields" aria-selected="false">Search fields</a>
</li>
</ul>
<div class="tab-content" id="filterTabContent">
<div class="tab-pane fade show active" id="group" role="tabpanel" aria-labelledby="group-tab">
<div class="group_selection_list">
{{#each group_list}}
<span class="form-check group_selection_group">
<input type="checkbox" class="form-check-input" id="{{group_id}}">
<label class="form-check-label" for="{{group_id}}">{{name}}</label>
</span>
{{/each}}
</div>
</div>
<div class="tab-pane fade" id="searchfields" role="tabpanel" aria-labelledby="searchfields-tab">
<div class="form-row">
<div class="col form-group">
<select class="form-control">
<option>first name</option>
<option>last name</option>
<option>date of birth</option>
<option>sex</option>
<option>salutation</option>
<option>place of birth</option>
<option>academic titles</option>
<option>personnel number</option>
<option>ui language</option>
</select>
</div>
<div class="col form-group">
<select class="form-control">
<option>=</option>
<option>!=</option>
<option>LIKE</option>
<option>></option>
<option><</option>
<option>>=</option>
<option><=</option>
</select>
</div>
<div class="col form-group">
<input type="text" class="form-control">
</div>
</div>
</div>
</div>
<button type="submit" class="form-control btn btn-primary" style="width: fit-content;float: right;">Search</button>
</form>
</div>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">personnel number</th>
<th scope="col">first name</th>
<th scope="col">last name</th>
<th scope="col">date of birth</th>
<th scope="col">actions</th>
</tr>
</thead>
<tbody>
{{#each member_list}}
<tr>
<td>{{personnel_number}}</td>
<td>{{firstname}}</td>
<td>{{lastname}}</td>
<td>{{date_of_birth}}</td>
<td><a href="/portal/mm/edit?id={{entity_id}}"><svg width="1.5em" height="1.5em" viewBox="0 0 16 16" class="bi bi-pencil-square" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456l-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
<path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/>
</svg></a>
<a href="/portal/mm/delete?id={{entity_id}}">
<svg width="1.5em" height="1.5em" viewBox="0 0 16 16" class="bi bi-trash" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
</svg>
</a>
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</div>
</div>
</div>
{{> footer }}