|  |  |  | @@ -179,7 +179,12 @@ | 
		
	
		
			
				|  |  |  |  | 		    </div> | 
		
	
		
			
				|  |  |  |  | 		    {% if trip.cox_id == loggedin_user.id %} | 
		
	
		
			
				|  |  |  |  | 			{% if trip.rower | length == 0 %} | 
		
	
		
			
				|  |  |  |  | 				<a href="/cox/remove/trip/{{ trip.id }}">LÖSCHEN</a> | 
		
	
		
			
				|  |  |  |  | 			      <div class="text-right mt-2"> | 
		
	
		
			
				|  |  |  |  | 				<a href="/cox/remove/trip/{{ trip.id }}" class="inline-block btn btn-alert"> | 
		
	
		
			
				|  |  |  |  | 				  {% include "includes/delete-icon" %} | 
		
	
		
			
				|  |  |  |  | 				  Termin löschen | 
		
	
		
			
				|  |  |  |  | 				</a> | 
		
	
		
			
				|  |  |  |  | 			      </div> | 
		
	
		
			
				|  |  |  |  | 			{% endif %} | 
		
	
		
			
				|  |  |  |  | 			    <div> | 
		
	
		
			
				|  |  |  |  | 				<h3>Edit trip</h3> | 
		
	
	
		
			
				
					
					|  |  |  | @@ -201,75 +206,71 @@ | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |     <div> | 
		
	
		
			
				|  |  |  |  |       {% if loggedin_user.is_admin %} | 
		
	
		
			
				|  |  |  |  |       <a href="#" data-sidebar="true" data-trigger="plannedTrip{{ loop.index }}" | 
		
	
		
			
				|  |  |  |  |       <a href="#" data-sidebar="true" data-trigger="addTrip"  | 
		
	
		
			
				|  |  |  |  |         data-header="<strong>Event</strong> am {{ day.day| date(format='%d.%m.%Y') }} erstellen" | 
		
	
		
			
				|  |  |  |  |         data-day="{{ day.day }}" | 
		
	
		
			
				|  |  |  |  |         data-form="#addEventForm" | 
		
	
		
			
				|  |  |  |  |         class="inline-block link-dark mr-3">Event hinzufügen</a> | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |       <!-- START Sidebar plannedTrip --> | 
		
	
		
			
				|  |  |  |  |       <div class="sidebar slide-in from-right" id="plannedTrip{{ loop.index }}" aria-modal="false"> | 
		
	
		
			
				|  |  |  |  |         <div class="bg-primary-900 text-white px-2 py-3 flex justify-between sidebar-header"> | 
		
	
		
			
				|  |  |  |  |           <div> | 
		
	
		
			
				|  |  |  |  |             <span class="ps-1"> | 
		
	
		
			
				|  |  |  |  |               <strong>Event</strong> am {{ day.day| date(format="%d.%m.%Y") }} erstellen | 
		
	
		
			
				|  |  |  |  |             </span> | 
		
	
		
			
				|  |  |  |  |           </div> | 
		
	
		
			
				|  |  |  |  |           <button type="button" title="Add planned event schließen" | 
		
	
		
			
				|  |  |  |  |             class="sidebar-close border-0 bg-primary-600 text-black" data-trigger="plannedTrip{{ loop.index }}"> | 
		
	
		
			
				|  |  |  |  |             x | 
		
	
		
			
				|  |  |  |  |           </button> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div class="px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px"> | 
		
	
		
			
				|  |  |  |  |           <form action="/admin/planned-event" method="post" class="grid gap-3"> | 
		
	
		
			
				|  |  |  |  |             <input type="hidden" name="day" value="{{ day.day }}" /> | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Titel (z.B. Firmenrudern)', name='name', type='text', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Startzeit', name='planned_starting_time', type='text', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Anzahl Steuerleute', name='planned_amount_cox', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::checkbox(label='Gäste erlauben', name='max_allow_guestspeople') }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Anmerkungen', name='notes', type='text') }} | 
		
	
		
			
				|  |  |  |  |             <input value="Erstellen" | 
		
	
		
			
				|  |  |  |  |               class="w-full rounded-md bg-primary-600 px-3 py-2 text-sm font-semibold text-white hover:bg-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 cursor-pointer" | 
		
	
		
			
				|  |  |  |  |               type="submit" /> | 
		
	
		
			
				|  |  |  |  |           </form> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |       </div> | 
		
	
		
			
				|  |  |  |  |       <div class="sidebar-overlay" data-trigger="plannedTrip{{ loop.index }}"></div> | 
		
	
		
			
				|  |  |  |  |       <!-- END Sidebar plannedTrip --> | 
		
	
		
			
				|  |  |  |  |       {% endif %} | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |       {% if loggedin_user.is_cox%} | 
		
	
		
			
				|  |  |  |  |       <a href="#" data-sidebar="true" data-trigger="trip{{ loop.index }}" | 
		
	
		
			
				|  |  |  |  |       <a href="#" data-sidebar="true" data-trigger="addTrip"  | 
		
	
		
			
				|  |  |  |  |         data-header="<strong>Ausfahrt</strong> am {{ day.day| date(format='%d.%m.%Y') }} erstellen" | 
		
	
		
			
				|  |  |  |  |         data-day="{{ day.day }}" | 
		
	
		
			
				|  |  |  |  |         data-form="#addTripForm" | 
		
	
		
			
				|  |  |  |  |         class="inline-block link-primary">Ausfahrt hinzufügen</a> | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |       <div class="sidebar slide-in from-right" id="trip{{ loop.index }}" aria-modal="false"> | 
		
	
		
			
				|  |  |  |  |         <div class="bg-primary-900 text-white px-2 py-3 flex justify-between sidebar-header"> | 
		
	
		
			
				|  |  |  |  |           <div> | 
		
	
		
			
				|  |  |  |  |             <span class="ps-1"> | 
		
	
		
			
				|  |  |  |  |               <strong>Ausfahrt</strong> am {{ day.day| date(format="%d.%m.%Y") }} erstellen | 
		
	
		
			
				|  |  |  |  |             </span> | 
		
	
		
			
				|  |  |  |  |           </div> | 
		
	
		
			
				|  |  |  |  |           <button type="button" title="Add trip schließen" class="sidebar-close border-0 bg-primary-600 text-black" | 
		
	
		
			
				|  |  |  |  |             data-trigger="trip{{ loop.index }}"> | 
		
	
		
			
				|  |  |  |  |             x | 
		
	
		
			
				|  |  |  |  |           </button> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |         <div class="px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px"> | 
		
	
		
			
				|  |  |  |  |           <form action="/cox/trip" method="post" class="grid gap-3"> | 
		
	
		
			
				|  |  |  |  |             <input type="hidden" name="day" value="{{ day.day }}" /> | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Startzeit', name='planned_starting_time', type='text', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |             {{ macros::input(label='Anmerkungen', name='notes', type='text') }} | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             <input value="Erstellen" | 
		
	
		
			
				|  |  |  |  |               class="w-full rounded-md bg-primary-600 px-3 py-2 text-sm font-semibold text-white hover:bg-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 cursor-pointer" | 
		
	
		
			
				|  |  |  |  |               type="submit" /> | 
		
	
		
			
				|  |  |  |  |           </form> | 
		
	
		
			
				|  |  |  |  |         </div> | 
		
	
		
			
				|  |  |  |  |       </div> | 
		
	
		
			
				|  |  |  |  |       <div class="sidebar-overlay" data-trigger="trip{{ loop.index }}"></div> | 
		
	
		
			
				|  |  |  |  |       {% endif %} | 
		
	
		
			
				|  |  |  |  |     </div> | 
		
	
		
			
				|  |  |  |  |   </div> | 
		
	
		
			
				|  |  |  |  |   {% endfor %} | 
		
	
		
			
				|  |  |  |  | </div> | 
		
	
		
			
				|  |  |  |  | </div> | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  | {# --- START Add Trip Sidebar --- #} | 
		
	
		
			
				|  |  |  |  | <div class="sidebar slide-in from-right" id="addTrip" aria-modal="false"> | 
		
	
		
			
				|  |  |  |  |   <div class="bg-primary-900 text-white px-2 py-3 flex justify-between sidebar-header"> | 
		
	
		
			
				|  |  |  |  |     <div> | 
		
	
		
			
				|  |  |  |  |       <span class="ps-1 header-js"> | 
		
	
		
			
				|  |  |  |  |         Überschrift  (wird ersetzt) | 
		
	
		
			
				|  |  |  |  |       </span> | 
		
	
		
			
				|  |  |  |  |     </div> | 
		
	
		
			
				|  |  |  |  |     <button type="button" title="Ausfahrt erstellen schließen" class="sidebar-close border-0 bg-primary-600 text-black" | 
		
	
		
			
				|  |  |  |  |       data-trigger="addTrip"> | 
		
	
		
			
				|  |  |  |  |       x | 
		
	
		
			
				|  |  |  |  |     </button> | 
		
	
		
			
				|  |  |  |  |   </div> | 
		
	
		
			
				|  |  |  |  |   <div class="form-js px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px"> | 
		
	
		
			
				|  |  |  |  |       Formular wird ersetzt | 
		
	
		
			
				|  |  |  |  |   </div> | 
		
	
		
			
				|  |  |  |  | </div> | 
		
	
		
			
				|  |  |  |  | <div class="sidebar-overlay" data-trigger="addTrip"></div> | 
		
	
		
			
				|  |  |  |  | {# --- END Add Trip Sidebar --- #} | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  | {# --- START Form Add Trip --- #} | 
		
	
		
			
				|  |  |  |  | <div class="hidden"> | 
		
	
		
			
				|  |  |  |  |   <form action="/cox/trip" method="post" class="grid gap-3" id="addTripForm"> | 
		
	
		
			
				|  |  |  |  |     <input class="day-js" type="hidden" name="day" value="" /> | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Startzeit', name='planned_starting_time', type='input', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Anmerkungen', name='notes', type='input') }} | 
		
	
		
			
				|  |  |  |  |     <input value="Erstellen" class="w-full btn btn-primary" type="submit" /> | 
		
	
		
			
				|  |  |  |  |   </form> | 
		
	
		
			
				|  |  |  |  | </div> | 
		
	
		
			
				|  |  |  |  | {# --- END Form Add Trip --- #} | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  | {# --- START Form Add Event --- #} | 
		
	
		
			
				|  |  |  |  | <div class="hidden"> | 
		
	
		
			
				|  |  |  |  |   <form action="/admin/planned-event" method="post" class="grid gap-3" id="addEventForm"> | 
		
	
		
			
				|  |  |  |  |     <input class="day-js" type="hidden" name="day" value="" /> | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Titel (z.B. Firmenrudern)', name='name', type='text', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Startzeit', name='planned_starting_time', type='text', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Anzahl Steuerleute', name='planned_amount_cox', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true) }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::checkbox(label='Gäste erlauben', name='max_allow_guestspeople') }} | 
		
	
		
			
				|  |  |  |  |     {{ macros::input(label='Anmerkungen', name='notes', type='text') }} | 
		
	
		
			
				|  |  |  |  |     <input value="Erstellen" class="w-full btn btn-primary" type="submit" /> | 
		
	
		
			
				|  |  |  |  |   </form> | 
		
	
		
			
				|  |  |  |  | </div> | 
		
	
		
			
				|  |  |  |  | {# --- END Form Add Event --- #} | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  | {% endblock content %} | 
		
	
	
		
			
				
					
					| 
							
							
							
						 |  |  |   |