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 'delete_place' place.pk %}" role="button">Supprimer {% picto_from_name "trash-2" %}</a>
|
||||
</div>
|
||||
<h2>Lieu #{{ place.pk }} : {{ place.name }}</h2>
|
||||
<h2>{{ place.name }}</h2>
|
||||
<ul>
|
||||
<li><strong>Adresse :</strong> {{ place.address }}, {{ place.city }}</li>
|
||||
<li><strong>Coordonnée GPS :</strong> {{ place.location }}</li>
|
||||
|
@ -1090,7 +1090,7 @@ class ModerationAnswerDeleteView(PermissionRequiredMixin, DeleteView):
|
||||
class PlaceListView(ListView):
|
||||
model = Place
|
||||
paginate_by = 10
|
||||
ordering = ['-pk']
|
||||
ordering = ['name']
|
||||
|
||||
|
||||
class PlaceDetailView(DetailView):
|
||||
@ -1141,6 +1141,7 @@ class UnknownPlacesListView(PermissionRequiredMixin, ListView):
|
||||
model = Event
|
||||
permission_required = ("agenda_culturel.add_place")
|
||||
paginate_by = 10
|
||||
ordering = ['-pk']
|
||||
template_name = 'agenda_culturel/place_unknown_list.html'
|
||||
queryset = Event.objects.filter(exact_location__isnull=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user