-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
102 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
fiesta/apps/events/templates/events/participants_table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "fiestatables/page.html" %} | ||
|
||
{% load breadcrumbs %} | ||
{% load i18n %} | ||
|
||
{% block upper_head %} | ||
{% url "events:event-detail" event.pk as url%} | ||
{% breadcrumb_push_item_with_url event.title url%} | ||
{% trans "Participants" as participants %} | ||
{% breadcrumb_push_item participants %} | ||
{% endblock upper_head %} | ||
|
||
{% block main %} | ||
{{block.super}} | ||
{% endblock main %} |
56 changes: 30 additions & 26 deletions
56
fiesta/apps/events/templates/events/parts/event_item.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
{% load i18n %} | ||
{% load event_tags %} | ||
|
||
<li class="py-4 bg-base-100 hover:bg-base-200 rounded-box p-4 mb-4 md:box-content"> | ||
<a href="{% url 'events:event-detail' event.id %}" class="block"> | ||
<div class="flex items-center space-x-4"> | ||
<div class="flex-shrink-0"> | ||
<div class="h-12 w-12 rounded-full bg-cover bg-center" style='background-image: url("{{ event.portrait_cover }}")'></div> | ||
</div> | ||
<a href="{% url 'events:event-detail' event.id %}"> | ||
<div class="card bg-base-100 hover:bg-base-200 shadow-xl rounded-xl mb-6"> | ||
|
||
<div class="flex-grow"> | ||
<h2 class="text-2xl font-semibold">{{ event.title }}</h2> | ||
<p class="text-gray-600">{{ event.start.date }}</p> | ||
<p class="text-gray-600">{{ event.description }}</p> | ||
</div> | ||
<div class="card-body flex flex-row"> | ||
|
||
{% if event.state == "published" %} | ||
<div class="flex-shrink-0"> | ||
{% get_event_fullness event as tmp %} | ||
{% if tmp == 0 %} | ||
<span class="bg-green-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Registrations opened</span> | ||
{% elif tmp == 1 %} | ||
<span class="bg-yellow-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Some spots left</span> | ||
{% elif tmp == 2 %} | ||
<span class="bg-red-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Registrations closed</span> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</a> | ||
</li> | ||
{% if event.portrait_cover%} | ||
<div class="flex-shrink-0"> | ||
<div class="h-12 w-12 rounded-full bg-cover bg-center" style='background-image: url("{{ event.portrait_cover.url }}")'></div> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="flex-grow"> | ||
<h2 class="text-2xl card-title">{{ event.title }}</h2> | ||
<p class="text-gray-600">{{ event.start.date }}</p> | ||
</div> | ||
|
||
{% if event.state == "published" %} | ||
<div class="flex-none"> | ||
{% get_event_fullness event as tmp %} | ||
{% if tmp == 0 %} | ||
<span class="bg-green-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Registrations opened</span> | ||
{% elif tmp == 1 %} | ||
<span class="bg-yellow-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Some spots left</span> | ||
{% elif tmp == 2 %} | ||
<span class="bg-red-400 mr-2 border divide-gray-100 rounded-full pt-2 pb-2 pl-3 pr-3 mb-2">Registrations closed</span> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
</div> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{% extends "fiestatables/page.html" %} | ||
{% load breadcrumbs %} | ||
|
||
{% load i18n %} | ||
{% block main %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters