minor improvement to tabs style
[openemr.git] / interface / main / tabs / templates / patient_data_template.php
blob5e419aa22fac571d21951deb478a681cc3b8f8ef
1 <?php
2 /**
3 * Patient data template.
5 * @package OpenEMR
6 * @author Robert Down <robertdown@live.com>
7 * @author Kevin Yeh <kevin.y@integralemr.com>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @link http://www.open-emr.org
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
11 * @copyright Copyright (c) 2016 Kevin Yeh <kevin.y@integralemr.com>
12 * @copyright Copyright (c) 2016 Brady Miller <brady.g.miller@gmail.com>
13 * @copyright Copyright (c) 2017 Robert Down <robertdown@live.com>
16 <script type="text/html" id="patient-data-template">
17 <div>
18 <span class="patientDataColumn">
19 <span style="float:left;"><a data-bind="click: viewPtFinder" href="#" class="btn btn-default btn-sm">
20 <i class="fa fa-search" aria-hidden="true"></i>
21 </a></span>
22 <div class="patientInfo">
23 <?php echo xlt("Patient"); ?>:
24 <!-- ko if: patient -->
25 <a class="ptName" data-bind="click:refreshPatient,with: patient" href="#">
26 <span data-bind="text: pname()"></span>
27 (<span data-bind="text: pubpid"></span>)
28 </a>
29 <!-- /ko -->
30 <!-- ko ifnot: patient -->
31 <?php echo xlt("None");?>
32 <!-- /ko -->
33 <!-- ko if: patient -->
34 <a class="btn btn-xs btn-link" href="#" data-bind="click:clearPatient" title="<?php echo xla("Clear") ?>">
35 <i class="fa fa-times"></i>
36 </a>
37 <!-- /ko -->
38 </div>
39 <div class="patientInfo">
40 <!-- ko if: patient -->
41 <span data-bind="text:patient().str_dob()"></span>
42 <!-- /ko -->
43 </div>
44 </span>
45 <span class="patientDataColumn">
46 <!-- ko if: patient -->
47 <!-- ko with: patient -->
48 <a class="btn btn-xs btn-link" data-bind="click: clickNewEncounter" href="#" title="<?php echo xla("New Encounter");?>">
49 <i class="fa fa-plus"></i>
50 </a>
51 <div class="patientCurrentEncounter">
52 <span><?php echo xlt("Open Encounter"); ?>:</span>
53 <!-- ko if:selectedEncounter() -->
54 <a data-bind="click: refreshEncounter" href="#">
55 <span data-bind="text:selectedEncounter().date()"></span>
56 (<span data-bind="text:selectedEncounter().id()"></span>)
57 </a>
58 <!-- /ko -->
59 <!-- ko if:!selectedEncounter() -->
60 <?php echo xlt("None") ?>
61 <!-- /ko -->
62 </div>
63 <!-- ko if: encounterArray().length > 0 -->
64 <br>
65 <div class="btn-group dropdown">
66 <button class="btn btn-default btn-sm dropdown-toggle"
67 type="button" id="pastEncounters"
68 data-toggle="dropdown"
69 aria-haspopup="true"
70 aria-expanded="true">
71 <?php echo xlt("View Past Encounters"); ?>&nbsp;
72 (<span data-bind="text:encounterArray().length"></span>)
73 <span class="caret"></span>
74 </button>
75 <ul class="dropdown-menu" aria-labelledby="pastEncounters">
76 <!-- ko foreach:encounterArray -->
77 <li style="display: inline-flex;">
78 <a href="#" data-bind="click:chooseEncounterEvent">
79 <span data-bind="text:date"></span>
80 <span data-bind="text:category"></span>
81 </a>
82 <a href="#" data-bind="click:reviewEncounterEvent">
83 <i class="fa fa-rotate-left"></i>&nbsp;<?php echo xlt("Review");?>
84 </a>
85 </li>
86 <!-- /ko -->
87 </ul>
88 </div>
89 <!-- /ko -->
90 <!-- /ko -->
91 <!-- /ko -->
92 </span>
93 <!-- ko if: user -->
94 <!-- ko with: user -->
95 <!-- ko if:messages() -->
96 <span class="messagesColumn">
97 <a class="btn btn-default" href="#" data-bind="click: viewMessages" title="<?php echo xla("View Messages");?>">
98 <i class="fa fa-envelope"></i>&nbsp;<span style="display:inline" data-bind="text: messages()"></span>
99 </a>
100 </span>
101 <!-- /ko -->
102 <!-- /ko -->
103 <!-- /ko -->
104 </div>
105 <!-- /ko -->
106 </script>