Improved tabs layout styling (#254)
[openemr.git] / interface / main / tabs / templates / patient_data_template.php
blob6a474935a311bfcee9fdaa3a3b6098de3c3a8709
1 <?php
2 /**
3 * Copyright (C) 2016 Kevin Yeh <kevin.y@integralemr.com>
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 3
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
16 * @package OpenEMR
17 * @author Robert Down <robertdown@live.com>
18 * @author Kevin Yeh <kevin.y@integralemr.com>
19 * @link http://www.open-emr.org
23 <script type="text/html" id="patient-data-template">
24 <div>
25 <span class="patientDataColumn">
26 <div class="patientInfo">
27 <?php echo xlt("Patient"); ?>:
28 <!-- ko if: patient -->
29 <a class="ptName" data-bind="click:refreshPatient,with: patient" href="#">
30 <span data-bind="text: pname()"></span>(<span data-bind="text: pubpid"></span>)
31 </a>
32 <!-- /ko -->
33 <!-- ko ifnot: patient -->
34 <?php echo xlt("None");?>
35 <!-- /ko -->
36 <!-- ko if: patient -->
37 <strong><a href="#" class="clear" data-bind="click:clearPatient" title="<?php echo xlt("Clear") ?>">
38 <i class="fa fa-times"></i>
39 </a></strong>
40 <!-- /ko -->
41 </div>
42 <div class="patientInfo">
43 <!-- ko if: patient -->
44 <span data-bind="text:patient().str_dob()"></span>
45 <!-- /ko -->
46 </div>
47 </span>
48 <span class="patientDataColumn">
49 &nbsp;
50 <!-- ko if: patient -->
51 <!-- ko with: patient -->
52 <div>
53 <span>Selected Encounter:</span>
54 <!-- ko if:selectedEncounter() -->
55 <span data-bind="text:selectedEncounter().date()"></span>
56 (<span data-bind="text:selectedEncounter().id()"></span>)
57 <!-- /ko -->
58 <!-- ko if:!selectedEncounter() -->
59 <?php echo xlt("None") ?>
60 <!-- /ko -->
61 </div>
62 <!-- /ko -->
63 <!-- /ko -->
64 </span>
65 <span class="patientDataColumn patientEncountersColumn">
66 <!-- ko if: patient -->
67 <!-- ko with: patient -->
69 <span class="patientEncounterList" >
70 <div data-bind="click: clickNewEncounter"><?php echo xlt("New Encounter");?></div>
71 <div data-bind="click: clickEncounterList"><?php echo xlt("Past Encounter List");?>
72 (<span data-bind="text:encounterArray().length"></span>)
73 </div>
74 <table class="encounters">
75 <tbody>
76 <!-- ko foreach:encounterArray -->
77 <tr >
78 <td data-bind="click: chooseEncounterEvent">
79 <span data-bind="text:date"></span>
80 <span data-bind="text:category"></span>
81 </td>
82 <td class="review" data-bind="click: reviewEncounterEvent">Review
83 </td>
84 </tr>
85 <!-- /ko -->
86 </tbody>
87 </table>
88 </span>
89 <!-- /ko -->
90 <!-- /ko -->
92 </span>
93 </div>
94 <!-- /ko -->
95 </script>