Commit 9414cc7a authored by hypsug0's avatar hypsug0
Browse files

feat: add link to parent data (session/places) in detail pages

parent 23c66556
......@@ -9,7 +9,9 @@
<h1 xmlns="http://www.w3.org/1999/html"><i class="{{ icon | safe }}"></i> {{ title }}</h1>
<p>
<small>Localité créée par <b>{{ object.created_by }}</b> le <b>{{ object.timestamp_create }}</b> et mise
à jour le <b>{{ object.timestamp_update }}</b></small>
à jour le <b>{{ object.timestamp_update }}</b>
{% if object.metaplace %}| <a href="{% url 'sights:metaplace_detail' pk=object.metaplace.pk %}" >Métasite</a> (<span class="text-muted">{{object.metaplace.name}}</span>){% endif %}
</small>
</p>
<div class="row">
<div class="col-md-12 col-lg-5">
......
......@@ -10,7 +10,7 @@
{% if object.updated_by %}et
mise à jour le <b>{{ object.timestamp_update }}</b> par <b>{{ object.updated_by }}</b>
</small>{% endif %}
| localité <a href="{% url 'sights:session_detail' pk=object.place.pk %}" >{{object.place.name}}</a>
| <a href="{% url 'sights:session_detail' pk=object.place.pk %}" >localité</a> (<span class="text-muted">{{object.place.name}}</span>)
</p>
<div class="row">
<div class="col-md-12 col-lg-5">
......@@ -115,16 +115,11 @@
<div class="well well-sm">
{% if object.session_link_related.count > 0%}
{% for link in object.session_link_related.all %}
<div class="btn-group btn-group-xs">
<a class="text-info" href="{% url 'sights:sessionlink_update' pk=link.pk %}" title="Editer"><i class="fa fa-fw fa-edit"></i></a>
<a class="text-danger" href="{% url 'sights:sessionlink_delete' pk=link.pk %}" title="Modifier" target="_blank"><i class="fa fa-fw fa-trash"></i></a>
</div>
<strong>{{link.type_link}}</strong>&nbsp;:&nbsp;<a href="{{link.link}}" target="_blank" data-toggle="tooltip" title="{{link.comment}}">{{link.link}}</a><br>
{% endfor %}
{% else %} - {% endif %}
</div>
......@@ -226,7 +221,7 @@
href="#collapseSighting" title="voir/cacher la liste"><span
class="caret"></span></a>
{% endif %}
<a href="{% url 'sights:sighting_create' pk=object.pk %}"
<a href="{% url 'sights:sighting_edit_form' pk=object.pk %}"
class="pull-right btn btn-primary btn-xs"><i
class="fi-plus"></i><span class="hidden-xs"> Ajouter</span></a>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment