Merge pull request 'better filter:' (#107) from nxdata into staging
Reviewed-on: #107
This commit is contained in:
commit
8b154b9675
@ -28,7 +28,7 @@
|
|||||||
<!-- START filterBar -->
|
<!-- START filterBar -->
|
||||||
<div class="search-wrapper">
|
<div class="search-wrapper">
|
||||||
<label for="name" class="sr-only">Suche</label>
|
<label for="name" class="sr-only">Suche</label>
|
||||||
<input type="search" name="name" id="filter-js" class="search-bar" placeholder="Suchen nach..."/>
|
<input type="search" name="name" id="filter-js" class="search-bar" placeholder="Suchen nach (Name, [yes|no]-role:<name>)"/>
|
||||||
</div>
|
</div>
|
||||||
<!-- END filterBar -->
|
<!-- END filterBar -->
|
||||||
|
|
||||||
@ -36,7 +36,12 @@
|
|||||||
<div id="filter-result-js" class="text-primary-950 dark:text-white text-right"></div>
|
<div id="filter-result-js" class="text-primary-950 dark:text-white text-right"></div>
|
||||||
{% for user in users %}
|
{% for user in users %}
|
||||||
<div data-filterable="true" data-filter="{{ user.name }}
|
<div data-filterable="true" data-filter="{{ user.name }}
|
||||||
{% for role in user.roles %}
|
{% for role in roles %}
|
||||||
|
{% if role.name in user.roles %}
|
||||||
|
yes-role:{{role.name}}
|
||||||
|
{% else %}
|
||||||
|
no-role:{{role.name}}
|
||||||
|
{% endif %}
|
||||||
role-{{role}}
|
role-{{role}}
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user