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

add link from appointment to corresponding visit - fixes #111

parent 03cd27c6
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -23,11 +23,17 @@ ...@@ -23,11 +23,17 @@
{% block maincontent %} {% block maincontent %}
{% block content %} {% block content %}
<div class="row">
<p class="col-lg-3 pull-left">
<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>
</div>
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border">
<a href="{% url 'web.views.appointments' %}" class="btn btn-block btn-default" onclick="history.back()">Go
back (without changes)</a>
</div>
{% comment %} <div class="box-header with-border"> {% comment %} <div class="box-header with-border">
<h3 class="box-title">Details of appointment</h3> <h3 class="box-title">Details of appointment</h3>
......
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
{% block content %} {% block content %}
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border"> <div class="box-header with-border">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default" <a href="javascript:history.back(1)" class="btn btn-block btn-default">Back</a>
onclick="history.back()">Back</a>
</div> </div>
{% comment %} <div class="box-header with-border"> {% comment %} <div class="box-header with-border">
...@@ -57,7 +56,7 @@ ...@@ -57,7 +56,7 @@
<div class="box-footer"> <div class="box-footer">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default" onclick="history.back()">Back</a> <a href="javascript:history.back(1)" class="btn btn-block btn-default">Back</a>
</div><!-- /.box-footer --> </div><!-- /.box-footer -->
</form> </form>
</div> </div>
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<p class="col-lg-3 pull-left"> <p class="col-lg-3 pull-left">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default" <a href="javascript:history.back(1)" class="btn btn-block btn-default"
onclick="history.back()">Go ">Go
back (discard changes)</a> back (discard changes)</a>
</p> </p>
<p class="col-md-2 pull-right"> <p class="col-md-2 pull-right">
<a href="{% url 'web.views.subject_visit_details' subject.id %}" type="button" <a href="{% url 'web.views.subject_visit_details' subject.id %}" type="button"
......
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
{% block content %} {% block content %}
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border"> <div class="box-header with-border">
<a href="{% url 'web.views.visits' %}" class="btn btn-block btn-default" <a href="javascript:history.back(1)" class="btn btn-block btn-default">Back</a>
onclick="history.back()">Back</a>
<a href="{% url 'web.views.visit_add' id %}" type="button" class="btn btn-block btn-default">Add <a href="{% url 'web.views.visit_add' id %}" type="button" class="btn btn-block btn-default">Add
visit</a> visit</a>
</div> </div>
......
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
{% block content %} {% block content %}
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border"> <div class="box-header with-border">
<a href="{% url 'web.views.visits' %}" class="btn btn-block btn-default" <a href="javascript:history.back(1)" class="btn btn-block btn-default">Back</a>
onclick="history.back()">Back</a>
<a href="{% url 'web.views.subject_visit_details' visit.subject.id %}" type="button" <a href="{% url 'web.views.subject_visit_details' visit.subject.id %}" type="button"
class="btn btn-block btn-default">Subject's visits</a> class="btn btn-block btn-default">Subject's visits</a>
</div> </div>
...@@ -177,7 +176,7 @@ ...@@ -177,7 +176,7 @@
<div class="box-footer"> <div class="box-footer">
<td><a href="{% url 'web.views.subject_edit' visit.subject.id %}" type="button" <td><a href="{% url 'web.views.subject_edit' visit.subject.id %}" type="button"
class="btn btn-block btn-default">Edit subject</a></td> class="btn btn-block btn-default">Edit subject</a></td>
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default" onclick="history.back()">Back</a> <a href="javascript:history.back(1)" class="btn btn-block btn-default">Back</a>
</div><!-- /.box-footer --> </div><!-- /.box-footer -->
</form> </form>
</div> </div>
......
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