diff --git a/app/appointments/edit/template.hbs b/app/appointments/edit/template.hbs
index 4954f3aa81..99cd20baa4 100644
--- a/app/appointments/edit/template.hbs
+++ b/app/appointments/edit/template.hbs
@@ -19,7 +19,7 @@
{{view Ember.Select viewName="select" content=minuteList optionLabelPath="content" optionValuePath="content" value=startMinute class="form-control"}}
-
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/invoices/edit/template.hbs b/app/invoices/edit/template.hbs
index b75f272e58..73f5e57ef0 100644
--- a/app/invoices/edit/template.hbs
+++ b/app/invoices/edit/template.hbs
@@ -7,22 +7,22 @@
+
{{/unless}}
{{date-picker property="billDate" label="Bill Date" class="col-xs-2"}}
{{#if isNew}}
{{patient-typeahead property="patientTypeAhead" label="Patient" content=patientList selection=selectedPatient class="col-xs-4 required"}}
- {{em-select class="col-xs-4 required" label="Visit"
+ {{em-select class="col-xs-4 required" label="Visit"
property="visit" content=patientVisits
- optionValuePath="content" optionLabelPath="content.visitDescription"
+ optionValuePath="content" optionLabelPath="content.visitDescription"
selected=visit
prompt='Please select a visit'
- }}
+ }}
{{else}}
+
{{/if}}
@@ -59,8 +59,8 @@
Excess
Action
-
- {{#each lineItemsByCategory as |categoryGroup|}}
+
+ {{#each lineItemsByCategory as |categoryGroup|}}
{{categoryGroup.category}}
@@ -71,11 +71,11 @@
+
{{number-format item.total}}
@@ -97,7 +97,7 @@
{{number-format item.amountOwed}}
- {{#if canAddCharge}}
+ {{#if canAddCharge}}
Delete
@@ -127,7 +127,7 @@
{{input class="form-control" value=detail.name }}
-
+
{{input class="form-control" value=detail.quantity }}
@@ -151,7 +151,7 @@
{{number-format detail.amountOwed}}
- {{#if canAddCharge}}
+ {{#if canAddCharge}}
Delete
@@ -169,7 +169,7 @@
{{number-format categoryGroup.discount}}
{{number-format categoryGroup.nationalInsurance}}
{{number-format categoryGroup.privateInsurance}}
- {{number-format categoryGroup.amountOwed }}
+ {{number-format categoryGroup.amountOwed }}
{{/each}}
@@ -181,7 +181,7 @@
{{number-format model.discount}}
{{number-format model.nationalInsurance}}
{{number-format model.privateInsurance}}
-
{{number-format model.patientResponsibility}}
+
{{number-format model.patientResponsibility}}
@@ -189,7 +189,7 @@
Payments/Deposits
- -{{number-format paidTotal}}
+ -{{number-format paidTotal}}
@@ -197,7 +197,7 @@
Grand Total
- {{number-format remainingBalance}}
+ {{number-format remainingBalance}}
@@ -207,7 +207,7 @@
- Remarks
+ Remarks
@@ -252,4 +252,4 @@
{{/each}}
-
\ No newline at end of file
+
diff --git a/app/medication/edit/template.hbs b/app/medication/edit/template.hbs
index e4ad81cf43..204eb2143a 100644
--- a/app/medication/edit/template.hbs
+++ b/app/medication/edit/template.hbs
@@ -7,12 +7,12 @@
{{patient-typeahead property="patientTypeAhead" label="Patient" content=patientList selection=selectedPatient class="col-xs-6 required"}}
{{/if}}
{{#if isNew}}
- {{em-select class="col-xs-4 required" label="Visit"
+ {{em-select class="col-xs-4 required" label="Visit"
property="visit" content=patientVisits
optionValuePath="content" optionLabelPath="content.visitDescription"
prompt="--Add New Outpatient Visit--"
selected=visit
- }}
+ }}
{{else}}
- {{em-input property="quantity" label=quantityLabel class=quantityClass }}
+ {{em-input property="quantity" label=quantityLabel class=quantityClass }}
{{em-input property="refills" label="Refills" class="col-xs-3"}}
{{#unless hideFulfillRequest}}
{{#if isNew}}
{{#if canFulfill}}
-
+
Fulfill Request
{{em-checkbox label="Fulfill Request Now" property="shouldFulfillRequest"}}
@@ -64,4 +64,4 @@
}}
{{/if}}
{{/if}}
-{{/em-form}}
\ No newline at end of file
+{{/em-form}}
diff --git a/app/medication/route.js b/app/medication/route.js
index 08a113d30f..e863d1a666 100644
--- a/app/medication/route.js
+++ b/app/medication/route.js
@@ -1,11 +1,11 @@
import AbstractModuleRoute from 'hospitalrun/routes/abstract-module-route';
import Ember from 'ember';
export default AbstractModuleRoute.extend({
- addCapability: 'add_medication',
+ addCapability: 'add_medication',
moduleName: 'medication',
newButtonText: '+ new request',
sectionTitle: 'Medication',
-
+
additionalButtons: function() {
var additionalButtons = [];
if (this.currentUserCan('fulfill_medication')) {
@@ -15,7 +15,7 @@ export default AbstractModuleRoute.extend({
buttonText: 'dispense medication',
class: 'btn btn-primary'
});
- }
+ }
if (this.currentUserCan(this.get('addCapability'))) {
additionalButtons.push({
buttonIcon: 'octicon octicon-mail-reply',
@@ -29,7 +29,7 @@ export default AbstractModuleRoute.extend({
}
}.property(),
- additionalModels: [{
+ additionalModels: [{
name: 'aisleLocationList',
findArgs: ['lookup','aisle_location_list']
}, {
@@ -39,7 +39,7 @@ export default AbstractModuleRoute.extend({
name: 'warehouseList',
findArgs: ['lookup','warehouse_list']
}],
-
+
subActions: [{
text: 'Requests',
linkTo: 'medication.index'
@@ -47,14 +47,14 @@ export default AbstractModuleRoute.extend({
text: 'Completed',
linkTo: 'medication.completed'
}],
-
+
actions: {
dispenseMedication: function() {
if (this.currentUserCan('fulfill_medication')) {
this.transitionTo('medication.edit', 'dispense');
}
},
-
+
returnMedication: function(){
if (this.currentUserCan(this.get('addCapability'))) {
this.transitionTo('medication.return', 'new');
@@ -62,4 +62,3 @@ export default AbstractModuleRoute.extend({
}
}
});
-
diff --git a/app/patients/photo/template.hbs b/app/patients/photo/template.hbs
index fbd91a56d8..15f4b846af 100644
--- a/app/patients/photo/template.hbs
+++ b/app/patients/photo/template.hbs
@@ -3,10 +3,10 @@
{{take-photo photoFile=photoFile }}
{{else}}
-
+
{{/if}}
-
+
{{em-input property="caption" label="Caption"}}
-{{/em-form}}
\ No newline at end of file
+{{/em-form}}
diff --git a/app/patients/reports/template.hbs b/app/patients/reports/template.hbs
index 8242f9b483..e467f60b97 100644
--- a/app/patients/reports/template.hbs
+++ b/app/patients/reports/template.hbs
@@ -2,69 +2,69 @@
{{#em-form model=this submit_button=false }}
- {{em-select class="col-xs-6" label="Report Type"
+ {{em-select class="col-xs-6" label="Report Type"
property="reportType" content=reportTypes
optionValuePath="content.value" optionLabelPath="content.name"
selected=reportType
}}
{{#if isStatusReport}}
- {{em-select property="status" label="Patient Status"
- content=statusList.value
- optionValuePath="content"
- optionLabelPath="content"
+ {{em-select property="status" label="Patient Status"
+ content=statusList.value
+ optionValuePath="content"
+ optionLabelPath="content"
prompt=" "
}}
{{else}}
{{date-picker property="startDate" label="Start Date" class="col-sm-4"}}
{{date-picker property="endDate" label="End Date" class="col-sm-4"}}
-
+
{{/if}}
{{#if isVisitReport}}
- {{em-select class="col-sm-6" label="Visit Type"
+ {{em-select class="col-sm-6" label="Visit Type"
property="visitType" content=visitTypes
optionValuePath="content" optionLabelPath="content"
prompt=" "
}}
- {{em-select class="col-sm-6" label="Examiner"
+ {{em-select class="col-sm-6" label="Examiner"
property="examiner" content=physicianList.value
optionValuePath="content" optionLabelPath="content"
prompt=" "
- }}
+ }}
- {{em-select class="col-sm-6" label="Location"
+ {{em-select class="col-sm-6" label="Location"
property="location" content=locationList.value
optionValuePath="content" optionLabelPath="content"
prompt=" "
}}
- {{em-select class="col-sm-6" label="Clinic"
+ {{em-select class="col-sm-6" label="Clinic"
property="clinic" content=clinicList.value
optionValuePath="content" optionLabelPath="content"
prompt=" "
}}
Fields to Include
{{em-checkbox label=reportColumns.id.label property="reportColumns.id.include" class="col-xs-2"}}
- {{em-checkbox label=reportColumns.name.label property="reportColumns.name.include" class="col-xs-2"}}
+ {{em-checkbox label=reportColumns.name.label property="reportColumns.name.include" class="col-xs-2"}}
{{em-checkbox label=reportColumns.age.label property="reportColumns.age.include" class="col-xs-2"}}
{{em-checkbox label=reportColumns.contacts.label property="reportColumns.contacts.include" class="col-xs-2"}}
{{em-checkbox label=reportColumns.dateOfBirth.label property="reportColumns.dateOfBirth.include" class="col-xs-2"}}
-
+
{{em-checkbox label=reportColumns.examiner.label property="reportColumns.examiner.include" class="col-xs-2"}}
{{em-checkbox label=reportColumns.gender.label property="reportColumns.gender.include" class="col-xs-2"}}
{{em-checkbox label=reportColumns.primaryDiagnosis.label property="reportColumns.primaryDiagnosis.include" class="col-xs-2"}}
@@ -88,7 +88,7 @@
{{#if showReportResults}}
-
+
{{reportTitle}}{{partial 'paging'}}
@@ -100,12 +100,12 @@
{{/each}}
- {{partial "report-rows"}}
+ {{partial "report-rows"}}
+
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/templates/components/charges-by-type-tab.hbs b/app/templates/components/charges-by-type-tab.hbs
index 6f7a51131d..d967681af8 100644
--- a/app/templates/components/charges-by-type-tab.hbs
+++ b/app/templates/components/charges-by-type-tab.hbs
@@ -1 +1 @@
-
{{pricingType}} charges
\ No newline at end of file
+
{{pricingType}} charges
diff --git a/app/templates/components/checkbox-or-typeahead.hbs b/app/templates/components/checkbox-or-typeahead.hbs
index f712314196..7f189020be 100644
--- a/app/templates/components/checkbox-or-typeahead.hbs
+++ b/app/templates/components/checkbox-or-typeahead.hbs
@@ -1,16 +1,16 @@
{{#if userCanAdd}}
{{partial 'components/render-typeahead'}}
{{else}}
-
+
{{label}}
{{#each checkboxRow in checkboxRows}}
-
+
{{#each checkbox in checkboxRow}}
- {{action-checkbox value=checkbox.value action="checkboxChanged"}}{{checkbox.label}}
+ {{action-checkbox value=checkbox.value action="checkboxChanged"}}{{checkbox.label}}
{{/each}}
@@ -21,4 +21,4 @@
{{errors}}
{{/if}}
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/templates/components/modal-dialog.hbs b/app/templates/components/modal-dialog.hbs
index 77213e48f4..050cf30b41 100644
--- a/app/templates/components/modal-dialog.hbs
+++ b/app/templates/components/modal-dialog.hbs
@@ -10,7 +10,7 @@
-
\ No newline at end of file
+
diff --git a/app/templates/components/nav-menu.hbs b/app/templates/components/nav-menu.hbs
index cd03acf603..24007e32c0 100644
--- a/app/templates/components/nav-menu.hbs
+++ b/app/templates/components/nav-menu.hbs
@@ -1,7 +1,7 @@
{{#if show}}
{{#link-to nav.route class="primary-section-link nav-link"}}
- {{nav.title}}
+ {{nav.title}}
{{/link-to}}
{{#if isShowing }}
@@ -11,11 +11,11 @@
{{#if subroute}}
{{#link-to route subroute class="category-sub-item nav-link"}}
- {{title}}
+ {{title}}
{{/link-to}}
{{else}}
{{#link-to route class="category-sub-item nav-link"}}
- {{title}}
+ {{title}}
{{/link-to}}
{{/if}}
@@ -23,4 +23,4 @@
{{/each}}
{{/if}}
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/templates/components/quantity-conv.hbs b/app/templates/components/quantity-conv.hbs
index 9e03bb07cf..4ed34e5eea 100644
--- a/app/templates/components/quantity-conv.hbs
+++ b/app/templates/components/quantity-conv.hbs
@@ -1,7 +1,7 @@
{{#unless firstQuantity}}
-
@@ -9,7 +9,7 @@
{{/unless}}
-
-
-
+
+
\ No newline at end of file
+
diff --git a/app/templates/components/sortable-column.hbs b/app/templates/components/sortable-column.hbs
index a11fb59d27..0c57ec6e42 100644
--- a/app/templates/components/sortable-column.hbs
+++ b/app/templates/components/sortable-column.hbs
@@ -1,5 +1,5 @@
{{#if sorted}}
-
+
{{/if}}
-{{yield}}
\ No newline at end of file
+{{yield}}
diff --git a/app/templates/components/static-text.hbs b/app/templates/components/static-text.hbs
index 3e5b6be726..9ed1c203b3 100644
--- a/app/templates/components/static-text.hbs
+++ b/app/templates/components/static-text.hbs
@@ -1,10 +1,10 @@
-
diff --git a/app/templates/paging.hbs b/app/templates/paging.hbs
index bcec692515..62a1f5699a 100644
--- a/app/templates/paging.hbs
+++ b/app/templates/paging.hbs
@@ -1,21 +1,21 @@
{{#if showPagination}}
{{#if showFirstPageButton}}
-
+
{{/if}}
-
+
-
+
{{#if showLastPageButton}}
-
+
{{/if}}
-
+
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/templates/panel.hbs b/app/templates/panel.hbs
index c240f34649..8b5a2e3e04 100644
--- a/app/templates/panel.hbs
+++ b/app/templates/panel.hbs
@@ -7,7 +7,7 @@
{{#if disabledAction}}
{{updateButtonText}}
{{else}}
-
{{updateButtonText}}
+
{{updateButtonText}}
{{/if}}
{{/if}}
{{#unless hideCancelButton}}
@@ -17,13 +17,13 @@
Cancel
{{/if}}
{{/unless}}
- {{#each additionalButtons}}
-
- {{#if buttonIcon}}
-
+ {{#each button in additionalButtons}}
+
+ {{#if buttonbuttonIcon}}
+
{{/if}}
- {{buttonText}}
+ {{button.buttonText}}
{{/each}}
-
\ No newline at end of file
+
diff --git a/app/templates/section.hbs b/app/templates/section.hbs
index b9ac930f33..22666a4834 100644
--- a/app/templates/section.hbs
+++ b/app/templates/section.hbs
@@ -14,8 +14,8 @@
{{/if}}
{{#if additionalButtons}}
{{#each additionalButtons}}
-
- {{#if buttonIcon}} {{/if}}
+
+ {{#if buttonIcon}} {{/if}}
{{buttonText}}
{{/each}}
{{/if}}
@@ -37,4 +37,4 @@
{{outlet}}
-
\ No newline at end of file
+
diff --git a/app/templates/sidebar_nav/header.hbs b/app/templates/sidebar_nav/header.hbs
index d312c9efd9..536c2c5eda 100644
--- a/app/templates/sidebar_nav/header.hbs
+++ b/app/templates/sidebar_nav/header.hbs
@@ -2,7 +2,7 @@
-
+
@@ -16,4 +16,4 @@
{{/if}}
-
\ No newline at end of file
+