Compare commits

...

2 Commits

Author SHA1 Message Date
8b154b9675 Merge pull request 'better filter:' (#107) from nxdata into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m21s
CI/CD Pipeline / deploy-staging (push) Successful in 15m3s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #107
2023-12-30 21:30:48 +01:00
cf5b2751dd better filter:
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m49s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
2023-12-30 21:30:27 +01:00

View File

@ -28,7 +28,7 @@
<!-- START filterBar -->
<div class="search-wrapper">
<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>
<!-- END filterBar -->
@ -36,7 +36,12 @@
<div id="filter-result-js" class="text-primary-950 dark:text-white text-right"></div>
{% for user in users %}
<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}}
{% endfor%}