[TASK] admin user interface replace checkbox with macros checkbox
This commit is contained in:
		| @@ -37,9 +37,9 @@ | ||||
|       <input type="hidden" name="id" value="{{ user.id }}" /> | ||||
|       <div class="font-bold mb-1">{{ user.name }}</div> | ||||
|       <div class="grid md:grid-cols-3"> | ||||
|         <label for="is_guest{{ loop.index }}" class="flex items-center cursor-pointer hover:text-gray-900"><input type="checkbox" id="is_guest{{ loop.index }}" name="is_guest" {% if user.is_guest %} checked="true"{% endif %} class="h-4 w-4 accent-primary-600 mr-2"/> Gast</label> | ||||
|         <label for="is_cox{{ loop.index }}" class="flex items-center cursor-pointer hover:text-gray-900"><input type="checkbox" id="is_cox{{ loop.index }}" name="is_cox" {% if user.is_cox %} checked="true"{% endif %} class="h-4 w-4 accent-primary-600 mr-2"/> Steuerberechtigter</label> | ||||
|         <label for="is_admin{{ loop.index }}" class="flex items-center cursor-pointer hover:text-gray-900"><input type="checkbox" id="is_admin{{ loop.index }}" name="is_admin" {% if user.is_admin %} checked="true"{% endif %} class="h-4 w-4 accent-primary-600 mr-2"/> Admin</label> | ||||
|         {{ macros::checkbox(label='Gast', name='is_guest' ~  loop.index , checked=user.is_guest) }} | ||||
|         {{ macros::checkbox(label='Steuerberechtigter', name='is_cox' ~  loop.index , checked=user.is_cox) }} | ||||
|         {{ macros::checkbox(label='Admin', name='is_admin' ~  loop.index , checked=user.is_admin) }} | ||||
|       </div> | ||||
|        {% if user.pw %} | ||||
|         <a class="inline-block mt-1 text-primary-600 hover:text-primary-900 underline" href="/admin/user/{{ user.id }}/reset-pw">Passwort zurücksetzen</a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marie Birner
					Marie Birner