[TASK] basic styling logbook and stats
This commit is contained in:
		@@ -39,33 +39,35 @@
 | 
			
		||||
		<div class="bg-primary-100 p-3 rounded-b-md grid gap-4">
 | 
			
		||||
			<div id="filter-result-js" class="text-primary-950"></div>
 | 
			
		||||
			{% 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 }}
 | 
			
		||||
							{% if user.last_access %}
 | 
			
		||||
								(last access:
 | 
			
		||||
								{{ user.last_access | date }})
 | 
			
		||||
							{% endif %}
 | 
			
		||||
						</div>
 | 
			
		||||
						<div class="grid md:grid-cols-3">
 | 
			
		||||
							{{ macros::checkbox(label='Scheckbuch', name='is_guest', id=loop.index , checked=user.is_guest) }}
 | 
			
		||||
							{{ macros::checkbox(label='Steuerberechtigter', name='is_cox', id=loop.index , checked=user.is_cox) }}
 | 
			
		||||
							{{ macros::checkbox(label='Technical', name='is_tech', id=loop.index , checked=user.is_tech) }}
 | 
			
		||||
							{{ macros::checkbox(label='Admin', name='is_admin', id=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>
 | 
			
		||||
						{% endif %}
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="grid gap-3">
 | 
			
		||||
						<a href="/admin/user/{{ user.id }}/delete" class="inline-block btn btn-alert" onclick="return confirm('Wirklich löschen?');">
 | 
			
		||||
							{% include "includes/delete-icon" %}
 | 
			
		||||
							Löschen
 | 
			
		||||
						</a>
 | 
			
		||||
						<input value="Ändern" type="submit" class="w-28 btn btn-primary"/>
 | 
			
		||||
					</div>
 | 
			
		||||
				</form>
 | 
			
		||||
        <div data-filterable="true" data-filter="{{ user.name }}">
 | 
			
		||||
          <form action="/admin/user" method="post" class="bg-white p-3 rounded-md flex items-end md:items-center justify-between w-full">
 | 
			
		||||
            <div class="w-full">
 | 
			
		||||
              <input type="hidden" name="id" value="{{ user.id }}"/>
 | 
			
		||||
              <div class="font-bold mb-1">{{ user.name }}
 | 
			
		||||
                {% if user.last_access %}
 | 
			
		||||
                  (last access:
 | 
			
		||||
                  {{ user.last_access | date }})
 | 
			
		||||
                {% endif %}
 | 
			
		||||
              </div>
 | 
			
		||||
              <div class="grid md:grid-cols-3">
 | 
			
		||||
                {{ macros::checkbox(label='Scheckbuch', name='is_guest', id=loop.index , checked=user.is_guest) }}
 | 
			
		||||
                {{ macros::checkbox(label='Steuerberechtigter', name='is_cox', id=loop.index , checked=user.is_cox) }}
 | 
			
		||||
                {{ macros::checkbox(label='Technical', name='is_tech', id=loop.index , checked=user.is_tech) }}
 | 
			
		||||
                {{ macros::checkbox(label='Admin', name='is_admin', id=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>
 | 
			
		||||
              {% endif %}
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="grid gap-3">
 | 
			
		||||
              <a href="/admin/user/{{ user.id }}/delete" class="inline-block btn btn-alert" onclick="return confirm('Wirklich löschen?');">
 | 
			
		||||
                {% include "includes/delete-icon" %}
 | 
			
		||||
                Löschen
 | 
			
		||||
              </a>
 | 
			
		||||
              <input value="Ändern" type="submit" class="w-28 btn btn-primary"/>
 | 
			
		||||
            </div>
 | 
			
		||||
          </form>
 | 
			
		||||
        </div>
 | 
			
		||||
			{% endfor %}
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user