add missing sidebar
This commit is contained in:
		| @@ -0,0 +1,17 @@ | ||||
| <div class="sidebar slide-in from-right" id="sidebar" 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-100 focus:bg-primary-50 text-black flex items-center justify-center transform rotate-45" | ||||
|         data-trigger="sidebar"> | ||||
|         {% include "includes/plus-icon" %} | ||||
|         </button> | ||||
|     </div> | ||||
|     <div class="body-js px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px"> | ||||
|         Formular wird ersetzt | ||||
|     </div> | ||||
| </div> | ||||
| <div class="sidebar-overlay" data-trigger="sidebar"></div> | ||||
							
								
								
									
										16
									
								
								templates/includes/buttons.html.tera
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								templates/includes/buttons.html.tera
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| {% if loggedin_user.is_cox %} | ||||
| <div class="sm:col-span-2 lg:col-span-3 grid md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3"> | ||||
|   <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-days" id="filterdays-js" aria-pressed="false"> | ||||
|     {% include "includes/funnel-icon" %} | ||||
|     Tage mit Ausfahrten | ||||
|   </button> | ||||
|   <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-coxs" id="filtertrips-js" aria-pressed="false"> | ||||
|     {% include "includes/funnel-icon" %} | ||||
|     Steuerleute gesucht | ||||
|   </button> | ||||
|   <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-months" id="filtermonth-js" aria-pressed="false" data-month="{{ now() | date(format='%m') }}"> | ||||
|     {% include "includes/funnel-icon" %} | ||||
|     Aktuellen Monat anzeigen | ||||
|   </button> | ||||
| </div> | ||||
| {% endif %} | ||||
| @@ -46,7 +46,7 @@ | ||||
| <div class="p-2 border border-t-0 border-{{ bg }} mb-4 rounded-b-md"> | ||||
|   {% if participants | length > 0 %} | ||||
|     {% for rower in participants %} | ||||
|       {{ rower.name }} <span class="hidden">(angemeldet seit {{ rower.registered_at }})</span><br /> | ||||
|       {{ rower.name }} {% if rower.isGuest %} <small class="text-muted">(Gast)</small> {% endif %}<span class="hidden">(angemeldet seit {{ rower.registered_at }})</span><br /> | ||||
|     {% endfor %} | ||||
|   {% else %} | ||||
|     {{ text }} | ||||
|   | ||||
| @@ -10,22 +10,7 @@ | ||||
|  | ||||
|   <h1 class="h1 sm:col-span-2 lg:col-span-3">Ausfahrten</h1> | ||||
|  | ||||
|   {% if loggedin_user.is_cox %} | ||||
|     <div class="sm:col-span-2 lg:col-span-3 grid md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-3"> | ||||
|       <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-days" id="filterdays-js" aria-pressed="false"> | ||||
|         {% include "includes/funnel-icon" %} | ||||
|         Tage mit Ausfahrten | ||||
|       </button> | ||||
|       <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-coxs" id="filtertrips-js" aria-pressed="false"> | ||||
|         {% include "includes/funnel-icon" %} | ||||
|         Steuerleute gesucht | ||||
|       </button> | ||||
|       <button type="button" title="Toggle View" class="group btn btn-primary filter-trips-js" data-action="filter-months" id="filtermonth-js" aria-pressed="false" data-month="{{ now() | date(format='%m') }}"> | ||||
|         {% include "includes/funnel-icon" %} | ||||
|         Aktuellen Monat anzeigen | ||||
|       </button> | ||||
|     </div> | ||||
|   {% endif %} | ||||
|   {% include "includes/buttons" %} | ||||
|  | ||||
|   {% for day in days %} | ||||
|   {% set amount_trips = day.planned_events | length + day.trips | length %} | ||||
| @@ -253,26 +238,7 @@ | ||||
|   </div> | ||||
| </div> | ||||
|  | ||||
| {# --- START Add Trip Sidebar --- #} | ||||
| <div class="sidebar slide-in from-right" id="sidebar" 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-100 focus:bg-primary-50 text-black flex items-center justify-center transform rotate-45" | ||||
|       data-trigger="sidebar"> | ||||
|       {% include "includes/plus-icon" %} | ||||
|     </button> | ||||
|   </div> | ||||
|   <div class="body-js px-2 pt-2" style="margin-top: 63px; margin-bottom: 157px"> | ||||
|       Formular wird ersetzt | ||||
|   </div> | ||||
| </div> | ||||
| <div class="sidebar-overlay" data-trigger="sidebar"></div> | ||||
| {# --- END Add Trip Sidebar --- #} | ||||
|  | ||||
| {% include "dynamics/sidebar" %} | ||||
| {% include "forms/trip" %} | ||||
| {% include "forms/event" %} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp
					Philipp