Compare commits
1 Commits
main
...
moderation
Author | SHA1 | Date | |
---|---|---|---|
|
f4c9514048 |
@ -36,7 +36,7 @@
|
||||
<article>
|
||||
<header>
|
||||
<div class="slide-buttons">
|
||||
<a href="{% url 'moderation' %}" role="button">Voir tout {% picto_from_name "chevron-right" %}</a>
|
||||
<a href="{% url 'recent' %}" role="button">Voir tout {% picto_from_name "chevron-right" %}</a>
|
||||
</div>
|
||||
<h2>Derniers événements soumis</h2>
|
||||
</header>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<header>
|
||||
<div class="buttons left-buttons">
|
||||
<a href="{% url 'recurrent_imports' %}" role="button">< Tous les imports récurrents</a>
|
||||
<a href="{% url 'moderation' %}?import_sources={{ object.pk }}" role="button">Voir les événements {% picto_from_name "calendar" %}</a>
|
||||
<a href="{% url 'recent' %}?import_sources={{ object.pk }}" role="button">Voir les événements {% picto_from_name "calendar" %}</a>
|
||||
</div>
|
||||
<div class="buttons slide-buttons">
|
||||
<a href="{% url 'run_rimport' object.pk %}" role="button">Exécuter {% picto_from_name "download-cloud" %}</a>
|
||||
|
@ -44,7 +44,7 @@
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
{% include "agenda_culturel/side-nav.html" with current="moderation" %}
|
||||
{% include "agenda_culturel/side-nav.html" with current="recent" %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -15,7 +15,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
{% if perms.agenda_culturel.change_event %}
|
||||
<li><a {% if current == "moderation" %}class="selected" {% endif %}href="{% url 'moderation' %}">Derniers événements soumis</a>{% show_badges_events "left" %}</li>
|
||||
<li><a {% if current == "recent" %}class="selected" {% endif %}href="{% url 'recent' %}">Derniers événements soumis</a>{% show_badges_events "left" %}</li>
|
||||
{% endif %}
|
||||
{% if perms.agenda_culturel.change_duplicatedevents %}
|
||||
<li><a {% if current == "duplicates" %}class="selected" {% endif %}href="{% url 'duplicates' %}">Gestion des doublons</a>{% show_badge_duplicated "left" %}</li>
|
||||
|
@ -70,7 +70,7 @@ def show_badges_events(placement="top"):
|
||||
if nb_drafts != 0:
|
||||
return mark_safe(
|
||||
'<a href="'
|
||||
+ reverse_lazy("moderation")
|
||||
+ reverse_lazy("recent")
|
||||
+ '?status=draft" class="badge" data-placement="'
|
||||
+ placement
|
||||
+ '" data-tooltip="'
|
||||
|
@ -23,7 +23,7 @@ urlpatterns = [
|
||||
path("tag/<int:pk>/edit", TagUpdateView.as_view(), name="edit_tag"),
|
||||
path("tag/<int:pk>/delete", TagDeleteView.as_view(), name="delete_tag"),
|
||||
path("tags/add", TagCreateView.as_view(), name="add_tag"),
|
||||
path("moderation/", moderation, name="moderation"),
|
||||
path("recent/", recent, name="recent"),
|
||||
path("administration/", administration, name="administration"),
|
||||
path("activite/", activite, name="activite"),
|
||||
path(
|
||||
|
@ -595,7 +595,7 @@ class EventDeleteView(
|
||||
):
|
||||
model = Event
|
||||
permission_required = "agenda_culturel.delete_event"
|
||||
success_url = reverse_lazy("moderation")
|
||||
success_url = reverse_lazy("recent")
|
||||
success_message = _("The event has been successfully deleted.")
|
||||
|
||||
|
||||
@ -1070,7 +1070,7 @@ def administration(request):
|
||||
|
||||
@login_required(login_url="/accounts/login/")
|
||||
@permission_required("agenda_culturel.view_event")
|
||||
def moderation(request):
|
||||
def recent(request):
|
||||
filter = EventFilterAdmin(
|
||||
request.GET, queryset=Event.objects.all().order_by("-created_date")
|
||||
)
|
||||
@ -1087,7 +1087,7 @@ def moderation(request):
|
||||
|
||||
return render(
|
||||
request,
|
||||
"agenda_culturel/moderation.html",
|
||||
"agenda_culturel/recent.html",
|
||||
{"filter": filter, "paginator_filter": response},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user