-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix create event button on empty event list
- Loading branch information
1 parent
f6aeda9
commit 60b73a5
Showing
5 changed files
with
34 additions
and
51 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
17 changes: 17 additions & 0 deletions
17
ephios/core/templates/core/fragments/event_list_add_event_button.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,17 @@ | ||
{% load i18n %} | ||
<div class="dropdown m-1 ms-0"> | ||
<button class="btn btn-primary btn-sm dropdown-toggle d-none d-md-inline-block" type="button" | ||
id="eventCreateButton" | ||
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
<span class="fa fa-plus"></span> | ||
{% translate "Add event" %} | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="eventCreateButton"> | ||
{% for eventtype in eventtypes %} | ||
<a class="dropdown-item" href="{% url "core:event_create" eventtype.pk %}"> | ||
{% blocktranslate trimmed with title=eventtype.title %} | ||
Add {{ title }} | ||
{% endblocktranslate %}</a> | ||
{% endfor %} | ||
</div> | ||
</div> |
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