forked from Ruderverein-Donau-Linz/rowt
		
	fix edit/delete trip
This commit is contained in:
		@@ -157,11 +157,11 @@
 | 
				
			|||||||
												{# --- START List Rowers --- #}
 | 
																	{# --- START List Rowers --- #}
 | 
				
			||||||
												{% if planned_event.max_people > 0 %}
 | 
																	{% if planned_event.max_people > 0 %}
 | 
				
			||||||
													{% set amount_cur_rower = planned_event.rower | length %}
 | 
																		{% set amount_cur_rower = planned_event.rower | length %}
 | 
				
			||||||
													{{ macros::box(participants=planned_event.rower, empty_seats=planned_event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=planned_event.trip_details_id, allow_removing="admin" in loggedin_user.roles) }}
 | 
																		{{ macros::box(participants=planned_event.rower, empty_seats=planned_event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=planned_event.trip_details_id, allow_removing="planned_event" in loggedin_user.roles) }}
 | 
				
			||||||
												{% endif %}
 | 
																	{% endif %}
 | 
				
			||||||
												{# --- END List Rowers --- #}
 | 
																	{# --- END List Rowers --- #}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
													{% if "admin" in loggedin_user.roles %}
 | 
																		{% if "planned_event" in loggedin_user.roles %}
 | 
				
			||||||
														<form action="/planned/join/{{ planned_event.trip_details_id }}" method="get" />
 | 
																			<form action="/planned/join/{{ planned_event.trip_details_id }}" method="get" />
 | 
				
			||||||
															{{ macros::input(label='Gast', class="input rounded-t", name='user_note', type='text', required=true) }}
 | 
																				{{ macros::input(label='Gast', class="input rounded-t", name='user_note', type='text', required=true) }}
 | 
				
			||||||
															<input value="Gast hinzufügen" class="btn btn-primary w-full rounded-t-none-important" type="submit"/>
 | 
																				<input value="Gast hinzufügen" class="btn btn-primary w-full rounded-t-none-important" type="submit"/>
 | 
				
			||||||
@@ -173,7 +173,7 @@
 | 
				
			|||||||
													<div class="text-primary-900 bg-primary-50 text-center p-1 mb-4">Gäste willkommen!</div>
 | 
																		<div class="text-primary-900 bg-primary-50 text-center p-1 mb-4">Gäste willkommen!</div>
 | 
				
			||||||
												{% endif %}
 | 
																	{% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
												{% if "admin" in loggedin_user.roles %}
 | 
																	{% if "planned_event" in loggedin_user.roles %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
													{# --- START Edit Form --- #}
 | 
																		{# --- START Edit Form --- #}
 | 
				
			||||||
													<div class="bg-gray-100 dark:bg-primary-900 p-3 mt-4 rounded-md">
 | 
																		<div class="bg-gray-100 dark:bg-primary-900 p-3 mt-4 rounded-md">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user