Skip to content

Commit 21114e4

Browse files
authored
UHM-9167 - Add links to navigate between order list page and lab reception page (#21)
1 parent 0d48055 commit 21114e4

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

omod/src/main/webapp/pages/labs/labOrderList.gsp

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
ui.includeJavascript("pihapps", "dateUtils.js")
99
1010
def now = new Date()
11+
def patientListPage = ui.pageLink("pihapps", "labs/labPatientList")
12+
def orderLabsPage = ui.pageLink("coreapps", "findpatient/findPatient", ["app": "pih.app.labs.ordering"])
1113
%>
1214

1315
<script type="text/javascript">
@@ -130,16 +132,29 @@
130132
padding-left: 10px;
131133
cursor: pointer;
132134
}
135+
.dropdown {
136+
background: unset;
137+
top: unset;
138+
div {
139+
display: none;
140+
}
141+
}
133142
</style>
134143
135144
<div class="row justify-content-between">
136145
<div class="col-6">
137146
<h3>${ ui.message("pihapps.labOrderList") }</h3>
138147
</div>
139148
<div class="col-6 text-right">
140-
<a href="${ui.pageLink("coreapps", "findpatient/findPatient", ["app": "pih.app.labs.ordering"])}">
141-
<input type="button" value="${ui.message("pihapps.addLabOrders")}" style="max-width: unset;"/>
142-
</a>
149+
<div class="dropdown show">
150+
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
151+
${ ui.message("pihapps.actions") }
152+
</a>
153+
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
154+
<a class="dropdown-item" href="${ patientListPage }">${ ui.message("pihapps.labPatientReception") }</a>
155+
<a class="dropdown-item" href="${ orderLabsPage }">${ ui.message("pihapps.addLabOrders") }</a>
156+
</div>
157+
</div>
143158
</div>
144159
</div>
145160
<form method="get" id="test-filter-form">

omod/src/main/webapp/pages/labs/labPatientList.gsp

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
ui.includeJavascript("pihapps", "dateUtils.js")
99
1010
def now = new Date()
11-
def collectionPage = ui.pageLink("pihapps", "labs/labPatientReception");
11+
def collectionPage = ui.pageLink("pihapps", "labs/labPatientReception")
12+
def orderListPage = ui.pageLink("pihapps", "labs/labOrderList")
1213
%>
1314

1415
<script type="text/javascript">
@@ -113,12 +114,32 @@
113114
font-weight: bold;
114115
color: red;
115116
}
117+
.dropdown {
118+
background: unset;
119+
top: unset;
120+
div {
121+
display: none;
122+
}
123+
}
116124
</style>
117125
118126
<div class="row justify-content-between">
119127
<div class="col-6">
120128
<h3>${ ui.message("pihapps.labPatientList") }</h3>
121129
</div>
130+
<div class="col-6 text-right">
131+
<div class="dropdown show">
132+
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
133+
${ ui.message("pihapps.actions") }
134+
</a>
135+
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
136+
<a class="dropdown-item" href="${ orderListPage }">${ ui.message("pihapps.labOrderList") }</a>
137+
</div>
138+
</div>
139+
</div>
140+
<div class="col-6 text-right">
141+
<a href="${}">${ ui.message("pihapps.") }</a>
142+
</div>
122143
</div>
123144
<form method="get" id="test-filter-form">
124145
<div class="row justify-content-start align-items-end">

0 commit comments

Comments
 (0)