if clause forms add trip and add event
This commit is contained in:
parent
ee0a275b9b
commit
a2a124d8c0
@ -139,15 +139,16 @@
|
|||||||
<div class="pt-2 reset-js" data-coxneeded="false">
|
<div class="pt-2 reset-js" data-coxneeded="false">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div>
|
<div>
|
||||||
<strong class="text-primary-900">{% if trip.max_people == 0 %}<span class="text-[#f43f5e]">⚠ </span>{% endif %}{{ trip.planned_starting_time }} Uhr</strong>
|
|
||||||
{% if trip.max_people == 0 %}
|
{% if trip.max_people == 0 %}
|
||||||
|
<strong class="text-[#f43f5e]">⚠ {{ trip.planned_starting_time }} Uhr</strong>
|
||||||
<small class="text-[#f43f5e]">(Absage {{ trip.cox_name }})</small>
|
<small class="text-[#f43f5e]">(Absage {{ trip.cox_name }})</small>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<strong class="text-primary-900">{{ trip.planned_starting_time }} Uhr</strong>
|
||||||
<small class="text-gray-600">({{ trip.cox_name }})</small>
|
<small class="text-gray-600">({{ trip.cox_name }})</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
<a href="#" data-sidebar="true" data-trigger="sidebar"
|
<a href="#" data-sidebar="true" data-trigger="sidebar"
|
||||||
data-header="<strong>{% if trip.max_people == 0 %}⚠ {% endif %}{{ trip.planned_starting_time }} Uhr</strong> ({{ trip.cox_name }}){% if trip.notes and trip.max_people > 0 %}<small class='block'>{{ trip.notes }}</small>{% endif %}{% if trip.max_people == 0 %}<small class='block'>Ausfahrt abgesagt!</small>{% endif %}"
|
data-header="<strong>{% if trip.max_people == 0 %}⚠ {% endif %}{{ trip.planned_starting_time }} Uhr</strong> ({{ trip.cox_name }}){% if trip.notes %}<small class='block'>{{ trip.notes }}</small>{% endif %}"
|
||||||
data-body="#trip{{ trip.trip_details_id }}"
|
data-body="#trip{{ trip.trip_details_id }}"
|
||||||
class="inline-block link-primary mr-3">
|
class="inline-block link-primary mr-3">
|
||||||
Details
|
Details
|
||||||
@ -251,7 +252,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "dynamics/sidebar" %}
|
{% include "dynamics/sidebar" %}
|
||||||
|
|
||||||
|
{% if loggedin_user.is_cox %}
|
||||||
{% include "forms/trip" %}
|
{% include "forms/trip" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if loggedin_user.is_admin %}
|
||||||
{% include "forms/event" %}
|
{% include "forms/event" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user