forked from Ruderverein-Donau-Linz/rowt
		
	Merge branch 'single-user-edit-page' of https://git.hofer.link/Ruderverein-Donau-Linz/rowt into single-user-edit-page
This commit is contained in:
		
							
								
								
									
										37
									
								
								templates/admin/role.html.tera
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								templates/admin/role.html.tera
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| {% import "includes/macros" as macros %} | ||||
| {% import "includes/forms/boat" as boat %} | ||||
| {% extends "base" %} | ||||
| {% block content %} | ||||
|     <div class="max-w-screen-lg w-full dark:text-white"> | ||||
|         <h1 class="h1">Rolle</h1> | ||||
|         <div class="grid "> | ||||
|             <div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5" | ||||
|                  role="alert"> | ||||
|                 <h2 class="h2">Rolle</h2> | ||||
|                 {% for role in roles %} | ||||
|     <div data-filterable="true" | ||||
|          data-filter="{{ role.name }}" | ||||
|          class="w-full border-t"> | ||||
|         <form action="/admin/role/{{ role.id }}" | ||||
|               data-filterable="true" | ||||
|               method="post" | ||||
|               class="bg-white dark:bg-primary-900 p-4 w-full"> | ||||
|             <div class="w-full"> | ||||
|                 <input type="hidden" name="id" value="{{ role.id }}" /> | ||||
|                 <div class="font-bold mb-1 text-black dark:text-white"> | ||||
|                     {{ role.name }} | ||||
|                     <br /> | ||||
|                 </div> | ||||
|                 <div class="grid md:grid-cols-3 gap-3"> | ||||
|                     {{ macros::input(label='Formatierter Name', name='formatted_name', type='text', value=role.formatted_name) }} | ||||
|                     {{ macros::input(label='Beschreibung', name='desc', type='text', value=role.desc) }} | ||||
|                     <input value="Ändern" type="submit" class="w-28 btn btn-primary" /> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </form> | ||||
|     </div> | ||||
|     {% endfor %} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| {% endblock content %} | ||||
| @@ -431,6 +431,9 @@ | ||||
|                         <li class="py-1"> | ||||
|                             <a href="/admin/rss" class="block w-100 py-2 hover:text-primary-600">Logs</a> | ||||
|                         </li> | ||||
|                         <li class="py-1"> | ||||
|                             <a href="/admin/role" class="block w-100 py-2 hover:text-primary-600">Rollen</a> | ||||
|                         </li> | ||||
|                         <li class="py-1"> | ||||
|                             <a href="/admin/list" class="block w-100 py-2 hover:text-primary-600">Fingerabdruck-Liste überprüfen</a> | ||||
|                         </li> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marie Birner
					Marie Birner