Skip to content

Commit

Permalink
Add message placeholders for default purchase interval
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Apr 15, 2021
1 parent 8d9321c commit 22158e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/i18n/en/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@
"DATE": "Enter a Date",
"DEBTOR": "Enter debtor",
"DEBTOR_GROUP": "Enter a Debtor Group",
"DEFAULT_PURCHASE_ORDER_INTERVAL": "The default purchase order interval for calculating Maximum stock",
"DESCRIPTION": "Enter description",
"DOCUMENT_NAME": "Enter document name",
"PATIENT_GROUP": "Enter patient group",
Expand Down
1 change: 1 addition & 0 deletions client/src/i18n/fr/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@
"CURRENCY": "Sélectionner la monnaie",
"DEBTOR": "Entrer un Débiteur",
"DEBTOR_GROUP": "Entrer un Groupe Débiteur",
"DEFAULT_PURCHASE_ORDER_INTERVAL": "L'intervalle de commande par défaut pour le calcul du stock Maximum",
"PATIENT_GROUP": "Entrer un groupe de patients",
"DATE": "Entrer la Date",
"DESCRIPTION": "Entrer une description",
Expand Down
4 changes: 3 additions & 1 deletion client/src/modules/depots/modals/depot.modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@
FORM.LABELS.DEFAULT_PURCHASE_ORDER_INTERVAL
</label>
<input name="default_purchase_interval" class="form-control"
ng-model="DepotModalCtrl.depot.default_purchase_interval" type="number" min="0" autocomplete="off" required
ng-model="DepotModalCtrl.depot.default_purchase_interval" type="number" min="0" autocomplete="off"
placeholder="{{ 'FORM.PLACEHOLDERS.DEFAULT_PURCHASE_ORDER_INTERVAL' | translate }}"
required
bh-integer>
<div class="help-block" ng-show="DepotForm.$submitted" ng-messages="DepotForm.default_purchase_interval.$error">
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
Expand Down

0 comments on commit 22158e3

Please sign in to comment.