présentation plus user friendly
This commit is contained in:
parent
76d3bb78ba
commit
9eb53fbd26
@ -27,7 +27,7 @@
|
|||||||
<a href="{% url 'edit_place' place.pk %}" role="button">Modifier {% picto_from_name "edit-3" %}</a>
|
<a href="{% url 'edit_place' place.pk %}" role="button">Modifier {% picto_from_name "edit-3" %}</a>
|
||||||
<a href="{% url 'delete_place' place.pk %}" role="button">Supprimer {% picto_from_name "trash-2" %}</a>
|
<a href="{% url 'delete_place' place.pk %}" role="button">Supprimer {% picto_from_name "trash-2" %}</a>
|
||||||
</div>
|
</div>
|
||||||
<h2>Lieu #{{ place.pk }} : {{ place.name }}</h2>
|
<h2>{{ place.name }}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Adresse :</strong> {{ place.address }}, {{ place.city }}</li>
|
<li><strong>Adresse :</strong> {{ place.address }}, {{ place.city }}</li>
|
||||||
<li><strong>Coordonnée GPS :</strong> {{ place.location }}</li>
|
<li><strong>Coordonnée GPS :</strong> {{ place.location }}</li>
|
||||||
|
@ -1090,7 +1090,7 @@ class ModerationAnswerDeleteView(PermissionRequiredMixin, DeleteView):
|
|||||||
class PlaceListView(ListView):
|
class PlaceListView(ListView):
|
||||||
model = Place
|
model = Place
|
||||||
paginate_by = 10
|
paginate_by = 10
|
||||||
ordering = ['-pk']
|
ordering = ['name']
|
||||||
|
|
||||||
|
|
||||||
class PlaceDetailView(DetailView):
|
class PlaceDetailView(DetailView):
|
||||||
@ -1141,6 +1141,7 @@ class UnknownPlacesListView(PermissionRequiredMixin, ListView):
|
|||||||
model = Event
|
model = Event
|
||||||
permission_required = ("agenda_culturel.add_place")
|
permission_required = ("agenda_culturel.add_place")
|
||||||
paginate_by = 10
|
paginate_by = 10
|
||||||
|
ordering = ['-pk']
|
||||||
template_name = 'agenda_culturel/place_unknown_list.html'
|
template_name = 'agenda_culturel/place_unknown_list.html'
|
||||||
queryset = Event.objects.filter(exact_location__isnull=True)
|
queryset = Event.objects.filter(exact_location__isnull=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user