[TASK] implement search on user interface
This commit is contained in:
		| @@ -3,10 +3,10 @@ | ||||
| {% extends "base" %} | ||||
|  | ||||
| {% block content %} | ||||
| <div class="max-w-screen-lg w-full grid gap-4"> | ||||
| <div class="max-w-screen-lg w-full"> | ||||
|   <h1 class="text-center text-3xl uppercase tracking-wide font-bold text-primary-900">Users</h1> | ||||
|  | ||||
| <form action="/admin/user/new" method="post" class="bg-primary-900 text-white px-3 pb-3 pt-2 rounded-md flex items-end md:items-center justify-between"> | ||||
| <form action="/admin/user/new" method="post" class="mt-4 bg-primary-900 rounded-md text-white px-3 pb-3 pt-2 flex items-end md:items-center justify-between"> | ||||
|   <div class="w-full"> | ||||
|     <h2 class="text-md font-bold mb-2 uppercase tracking-wide">Neuen User hinzufügen</h2> | ||||
|     <div class="grid md:grid-cols-3"> | ||||
| @@ -24,8 +24,14 @@ | ||||
|   </div> | ||||
| </form> | ||||
|  | ||||
| {% for user in users %} | ||||
| 	<form action="/admin/user" method="post" class="bg-white p-3 rounded-md flex items-end md:items-center justify-between"> | ||||
| <div class="bg-primary-200 p-3 mt-4 rounded-t-md"> | ||||
|   <label for="name" class="sr-only">Suche</label> | ||||
|   <input type="search" name="name" id="filter-js" class="w-full relative block rounded-md border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6 mb-2 md:mb-0" placeholder="Suchen nach..."/>  | ||||
| </div> | ||||
|  | ||||
| <div class="bg-primary-100 p-3 rounded-b-md grid gap-4"> | ||||
|   {% for user in users %} | ||||
| 	<form action="/admin/user" data-filterable="true" data-filter="{{ user.name }}" method="post" class="bg-white p-3 rounded-md flex items-end md:items-center justify-between"> | ||||
|     <div class="w-full"> | ||||
|       <input type="hidden" name="id" value="{{ user.id }}" /> | ||||
|       <div class="font-bold mb-1">{{ user.name }}</div> | ||||
| @@ -45,4 +51,6 @@ | ||||
| {% endfor %} | ||||
| </div> | ||||
|  | ||||
| </div> | ||||
|  | ||||
| {% endblock content %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marie Birner
					Marie Birner