forked from IMA-WorldHealth/bhima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(i18n): override translate helper w/ lang
The handlebars translated helper is now overridden with the correct language translation helper. This means that the developer does not have to specify the translation key in templates - it is transparently configured prior to compiling the template. Closes IMA-WorldHealth#618.
- Loading branch information
Jonathan Niles
committed
Aug 3, 2016
1 parent
0c9ceb9
commit 725c61f
Showing
20 changed files
with
360 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,48 @@ | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
|
||
<div class="panel-heading clearfix"> | ||
{{ "PATIENT_RECORDS.CHECK_IN.TITLE" | translate }} | ||
|
||
<span class="pull-right"> | ||
<bh-pdf-link | ||
pdf-url="reports/patients/{{ CheckInCtrl.id }}/checkins"> | ||
</bh-pdf-link> | ||
</span> | ||
</div> | ||
|
||
<div class="panel-body" style="height : 250px; overflow : hidden"> | ||
<p | ||
ng-if="CheckInCtrl.outdatedVisit" | ||
class="text-info"> | ||
<i class="fa fa-info-circle"></i> | ||
{{ "PATIENT_RECORDS.CHECK_IN.NOT_RECENT" | translate }} | ||
ng-if="CheckInCtrl.outdatedVisit" | ||
class="text-info"> | ||
<i class="fa fa-info-circle"></i> | ||
{{ "PATIENT_RECORDS.CHECK_IN.NOT_RECENT" | translate }} | ||
</p> | ||
|
||
<bh-loading-button | ||
id="checkin" | ||
loading-state="CheckInCtrl.checkingIn" | ||
button-class="btn-default btn-block" | ||
ng-click="CheckInCtrl.checkin()"> | ||
id="checkin" | ||
loading-state="CheckInCtrl.checkingIn" | ||
button-class="btn-default btn-block" | ||
ng-click="CheckInCtrl.checkin()"> | ||
<i class="fa fa-sign-in"></i> | ||
{{ "PATIENT_RECORDS.CHECK_IN.SUBMIT" | translate }} | ||
</bh-loading-button> | ||
|
||
<br> | ||
<br /> | ||
<p><b>{{ "PATIENT_RECORDS.CHECK_IN.RECENT" | translate }}</b></p> | ||
|
||
<p | ||
ng-if="CheckInCtrl.loaded && CheckInCtrl.visits.length===0" | ||
class="text-warning"> | ||
ng-if="CheckInCtrl.loaded && CheckInCtrl.visits.length===0" | ||
class="text-warning"> | ||
<span class="fa fa-warning"></span> | ||
{{ "PATIENT_RECORDS.CHECK_IN.ORIGINAL" | translate }} | ||
</p> | ||
|
||
<ul class="list-unstyled"> | ||
<li data-check-entry ng-repeat="visit in CheckInCtrl.visits | limitTo : CheckInCtrl.limitVisitDisplay"> | ||
<i class="fa fa-check-square-o"></i> {{ "PATIENT_RECORDS.CHECK_IN.ITEM" | translate }} <b><span am-time-ago="visit.start_date"></span></b> by {{visit.username}} | ||
<br> | ||
<i class="fa fa-check-square-o"></i> {{ "PATIENT_RECORDS.CHECK_IN.ITEM" | translate }} <b><span am-time-ago="visit.start_date"></span></b> {{ "PATIENT_RECORDS.CHECK_IN.BY" | translate }} {{ visit.username }} | ||
<br /> | ||
<span class="icon-spacer text-muted"><i>{{visit.start_date | date : 'medium'}}</i></span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.