in preparation to moving userdata into app, we switched to arbitrary groups
This commit is contained in:
		@@ -18,10 +18,6 @@
 | 
			
		||||
						<label for="name" class="sr-only">Name</label>
 | 
			
		||||
						<input type="text" name="name" class="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:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6 mb-2 md:mb-0" placeholder="Name"/>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="flex items-center">
 | 
			
		||||
						<label for="is_guest" class="flex items-center cursor-pointer hover:text-gray-100"><input type="checkbox" id="is_guest" name="is_guest" class="h-4 w-4 accent-gray-200 mr-2" checked="true"/>
 | 
			
		||||
							Scheckbuch</label>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
			<div class="text-right">
 | 
			
		||||
@@ -53,10 +49,9 @@
 | 
			
		||||
                {% endif %}
 | 
			
		||||
              </div>
 | 
			
		||||
              <div class="grid sm:grid-cols-2 lg:grid-cols-4 gap-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) }}
 | 
			
		||||
	      	{% for role in roles %}
 | 
			
		||||
                	{{ macros::checkbox(label=role.name, name="roles[" ~ role.id ~ "]", id=loop.index , checked=role.name in user.roles) }}
 | 
			
		||||
		{% endfor%}
 | 
			
		||||
                {{ macros::input(label='DOB', name='dob', id=loop.index, type="text", value=user.dob) }}
 | 
			
		||||
                {{ macros::input(label='Weight (kg)', name='weight', id=loop.index, type="text", value=user.weight) }}
 | 
			
		||||
                {{ macros::input(label='Sex', name='sex', id=loop.index, type="text", value=user.sex) }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user