mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 15:16:51 +00:00
MIFOSX-1891 UI changes to Extend the term for loans following a daily repayment schedule.
This commit is contained in:
parent
1e2957b02b
commit
fcda152faf
@ -3490,6 +3490,7 @@
|
||||
"label.heading.workingDays":"Working Days",
|
||||
"label.input.workingDays":"Working Days",
|
||||
"label.input.paymentsDueOnHolidays":"Payments due on Holidays are",
|
||||
"label.input.extendTermForDailyRepayments" : "Extend the term for loans following a daily repayment schedule",
|
||||
|
||||
"#----------------------": "------------",
|
||||
|
||||
@ -3509,4 +3510,4 @@
|
||||
"label.input.iscashpayment":"Is Cash Payment?",
|
||||
"label.anchor.editpaymenttype":"Edit Payment Type"
|
||||
|
||||
}
|
||||
}
|
||||
@ -20,6 +20,7 @@
|
||||
code :data.repaymentRescheduleType.code
|
||||
}];
|
||||
scope.selectedRepaymentType = scope.repaymentRescheduleTypes[0].id;
|
||||
scope.extendTermForDailyRepayments = data.extendTermForDailyRepayments;
|
||||
var temp = data.recurrence.split("=");
|
||||
var days = temp[3].split(",");
|
||||
|
||||
@ -67,6 +68,7 @@
|
||||
this.formData.recurrence = stringFormat.concat(selectedDays);
|
||||
this.formData.locale = scope.optlang.code;
|
||||
this.formData.repaymentRescheduleType = scope.selectedRepaymentType;
|
||||
this.formData.extendTermForDailyRepayments = scope.extendTermForDailyRepayments;
|
||||
resourceFactory.workingDaysResource.put(this.formData, function(data){
|
||||
location.path('/organization/');
|
||||
})
|
||||
|
||||
@ -20,13 +20,21 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2 width20" >{{ 'label.input.paymentsDueOnHolidays' | translate }}</label>
|
||||
<div class="col-sm-3">
|
||||
<select chosen="repaymentRescheduleOptions" id="repaymentReschedule" ng-model="selectedRepaymentType"
|
||||
ng-init="selectedRepaymentType" ng-options="repaymentRescheduleType.id as repaymentRescheduleType.value for repaymentRescheduleType in repaymentRescheduleOptions"
|
||||
class="form-control" value="{{repaymentRescheduleType.id}}">
|
||||
</select>
|
||||
<div class="col-sm-3">
|
||||
<select chosen="repaymentRescheduleOptions" id="repaymentReschedule" ng-model="selectedRepaymentType"
|
||||
ng-init="selectedRepaymentType" ng-options="repaymentRescheduleType.id as repaymentRescheduleType.value for repaymentRescheduleType in repaymentRescheduleOptions"
|
||||
class="form-control" value="{{repaymentRescheduleType.id}}">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2 width20" >{{ 'label.input.extendTermForDailyRepayments' | translate }}</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="checkbox" ng-model="extendTermForDailyRepayments">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-offset-3">
|
||||
<a href="#/organization">
|
||||
<button type="reset" class="btn btn-default">{{'label.button.cancel' | translate}}</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user