Skip to content

Commit

Permalink
OAM-64: add one time binding to every static translation
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed May 23, 2024
1 parent f3fa12a commit 03e1c85
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions src/admin-valid-destination-add/valid-destination-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>
<h1>{{:: 'adminValidDestinationAdd.addValidDestination' | message}}</h1>
</div>
<div class="modal-body">
<form id="add-valid-destination-form" ng-submit="vm.submit()">
<label for="program">
{{'adminValidDestinationAdd.selectProgram' | message}}
{{:: 'adminValidDestinationAdd.selectProgram' | message}}
</label>
<select id="program"
ng-model="vm.program"
ng-options="p.name for p in vm.programs track by p.id" required>
</select>

<label for="facilityType">
{{'adminValidDestinationAdd.facilityType' | message}}
{{:: 'adminValidDestinationAdd.facilityType' | message}}
</label>

<select id="facilityType"
Expand All @@ -30,7 +30,7 @@ <h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>
ng-model="vm.unitType"
value="facility"
required>
{{'adminValidDestinationAdd.isFacility' | message}}
{{:: 'adminValidDestinationAdd.isFacility' | message}}
</label>

<label for="organizationUnitType">
Expand All @@ -40,12 +40,12 @@ <h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>
ng-model="vm.unitType"
value="organization"
required>
{{'adminValidDestinationAdd.isOrganization' | message}}
{{:: 'adminValidDestinationAdd.isOrganization' | message}}
</label>

<div ng-if="vm.unitType === 'organization'">
<label for="organization">
{{'adminValidDestinationAdd.organization' | message}}
{{:: 'adminValidDestinationAdd.organization' | message}}
</label>

<select id="organization"
Expand All @@ -56,7 +56,7 @@ <h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>

<div ng-if="vm.unitType === 'facility'">
<label for="facility">
{{'adminValidDestinationAdd.facility' | message}}
{{:: 'adminValidDestinationAdd.facility' | message}}
</label>

<select id="facility"
Expand All @@ -66,7 +66,7 @@ <h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>
</div>

<label for="geoLevelAffinity">
{{'adminValidDestinationAdd.geoLevelAffinity' | message}}
{{:: 'adminValidDestinationAdd.geoLevelAffinity' | message}}
</label>

<select id="geoLevelAffinity"
Expand All @@ -77,10 +77,10 @@ <h1>{{'adminValidDestinationAdd.addValidDestination' | message}}</h1>
</div>
<div class="modal-footer">
<button id="cancel" ng-click="vm.goToPreviousState()">
{{'adminValidDestinationAdd.cancel' | message}}
{{:: 'adminValidDestinationAdd.cancel' | message}}
</button>
<button class="primary" form="add-valid-destination-form">
{{'adminValidDestinationAdd.add' | message}}
{{:: 'adminValidDestinationAdd.add' | message}}
</button>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions src/admin-valid-source-add/valid-source-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>
<h1>{{:: 'adminValidSourceAdd.addValidSource' | message}}</h1>
</div>
<div class="modal-body">
<form id="add-valid-source-form" ng-submit="vm.submit()">
<label for="program">
{{'adminValidSourceAdd.selectProgram' | message}}
{{:: 'adminValidSourceAdd.selectProgram' | message}}
</label>
<select id="program"
ng-model="vm.program"
ng-options="p.name for p in vm.programs track by p.id" required>
</select>

<label for="facilityType">
{{'adminValidSourceAdd.facilityType' | message}}
{{:: 'adminValidSourceAdd.facilityType' | message}}
</label>

<select id="facilityType"
Expand All @@ -30,7 +30,7 @@ <h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>
ng-model="vm.unitType"
value="facility"
required>
{{'adminValidSourceAdd.isFacility' | message}}
{{:: 'adminValidSourceAdd.isFacility' | message}}
</label>

<label for="organizationUnitType">
Expand All @@ -40,7 +40,7 @@ <h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>
ng-model="vm.unitType"
value="organization"
required>
{{'adminValidSourceAdd.isOrganization' | message}}
{{:: 'adminValidSourceAdd.isOrganization' | message}}
</label>

<div ng-if="vm.unitType === 'organization'">
Expand All @@ -56,7 +56,7 @@ <h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>

<div ng-if="vm.unitType === 'facility'">
<label for="facility">
{{'adminValidSourceAdd.facility' | message}}
{{:: 'adminValidSourceAdd.facility' | message}}
</label>

<select id="facility"
Expand All @@ -66,7 +66,7 @@ <h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>
</div>

<label for="geoLevelAffinity">
{{'adminValidSourceAdd.geoLevelAffinity' | message}}
{{:: 'adminValidSourceAdd.geoLevelAffinity' | message}}
</label>

<select id="geoLevelAffinity"
Expand All @@ -77,10 +77,10 @@ <h1>{{'adminValidSourceAdd.addValidSource' | message}}</h1>
</div>
<div class="modal-footer">
<button id="cancel" ng-click="vm.goToPreviousState()">
{{'adminValidSourceAdd.cancel' | message}}
{{:: 'adminValidSourceAdd.cancel' | message}}
</button>
<button class="primary" form="add-valid-source-form">
{{'adminValidSourceAdd.add' | message}}
{{:: 'adminValidSourceAdd.add' | message}}
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/organization-add/organization-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1>{{'organizationAdd.addOrganization' | message}}</h1>
<h1>{{:: 'organizationAdd.addOrganization' | message}}</h1>
</div>
<div class="modal-body">
<form id="add-organization-form" ng-submit="vm.createOrganization()">
Expand All @@ -18,10 +18,10 @@ <h1>{{'organizationAdd.addOrganization' | message}}</h1>
</div>
<div class="modal-footer">
<button id="cancel" ng-click="vm.goToPreviousState()">
{{'organizationAdd.cancel' | message}}
{{:: 'organizationAdd.cancel' | message}}
</button>
<button class="primary" form="add-organization-form">
{{'organizationAdd.save' | message}}
{{:: 'organizationAdd.save' | message}}
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/organization-edit/organization-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1>{{'organizationEdit.editOrganization' | message}}</h1>
<h1>{{:: 'organizationEdit.editOrganization' | message}}</h1>
</div>
<div class="modal-body">
<form id="edit-organization-form" ng-submit="vm.saveOrganization()">
Expand All @@ -18,10 +18,10 @@ <h1>{{'organizationEdit.editOrganization' | message}}</h1>
</div>
<div class="modal-footer">
<button id="cancel" ng-click="vm.goToPreviousState()">
{{'organizationEdit.cancel' | message}}
{{:: 'organizationEdit.cancel' | message}}
</button>
<button class="primary" form="edit-organization-form">
{{'organizationEdit.update' | message}}
{{:: 'organizationEdit.update' | message}}
</button>
</div>
</div>
Expand Down

0 comments on commit 03e1c85

Please sign in to comment.