Skip to content
Snippets Groups Projects
Commit 19dff1c1 authored by Valentin Groues's avatar Valentin Groues :eyes:
Browse files

fix issue with link to visit for generic appointments

parent aee94ae8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -28,10 +28,12 @@
<a href="javascript:history.back(1)" class="btn btn-block btn-default">Go
back (discard changes)</a>
</p>
<p class="col-md-2 pull-right">
<a href="{% url 'web.views.visit_details' appointment.visit.id %}" type="button"
class="btn btn-block btn-default">View corresponding visit</a>
</p>
{% if appointment.visit %}
<p class="col-md-2 pull-right">
<a href="{% url 'web.views.visit_details' appointment.visit.id %}" type="button"
class="btn btn-block btn-default">View corresponding visit</a>
</p>
{% endif %}
</div>
<div class="box box-info">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment