mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:11:54 +00:00
combobox is added
This commit is contained in:
parent
99cb4c00df
commit
f34187b0fb
BIN
app/images/chosen-sprite.png
Normal file
BIN
app/images/chosen-sprite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 559 B |
24
app/scripts/directives/ChosenComboboxDirective.js
Normal file
24
app/scripts/directives/ChosenComboboxDirective.js
Normal file
@ -0,0 +1,24 @@
|
||||
(function(module) {
|
||||
mifosX.directives = _.extend(module, {
|
||||
ChosenComboboxDirective: function($compile) {
|
||||
var linker = function(scope,element,attrs) {
|
||||
var list = attrs['chosen'];
|
||||
scope.$watch(list, function(){
|
||||
element.trigger('liszt:updated');
|
||||
element.trigger("chosen:updated");
|
||||
});
|
||||
|
||||
element.chosen();
|
||||
};
|
||||
|
||||
return {
|
||||
restrict:'A',
|
||||
link: linker
|
||||
}
|
||||
}
|
||||
});
|
||||
}(mifosX.directives || {}));
|
||||
|
||||
mifosX.ng.application.directive("chosen", ['$compile', mifosX.directives.ChosenComboboxDirective]).run(function($log) {
|
||||
$log.info("ChosenComboboxDirective initialized");
|
||||
});
|
||||
19
app/scripts/directives/ComboboxDirective.js
Normal file
19
app/scripts/directives/ComboboxDirective.js
Normal file
@ -0,0 +1,19 @@
|
||||
(function(module) {
|
||||
mifosX.directives = _.extend(module, {
|
||||
ComboboxDirective: function() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function(scope, element, attrs){
|
||||
scope.$watch("selectedDevice", function(){
|
||||
$(".combobox").combobox();
|
||||
scope.comboboxSetup = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}(mifosX.directives || {}));
|
||||
|
||||
mifosX.ng.application.directive("combobox", [mifosX.directives.ComboboxDirective]).run(function($log) {
|
||||
$log.info("ComboboxDirective initialized");
|
||||
});
|
||||
@ -26,7 +26,8 @@
|
||||
'ngSanitize': '../bower_components/angular-sanitize/angular-sanitize.min',
|
||||
'ckEditor': '../bower_components/ckeditor/ckeditor.min',
|
||||
'LocalStorageModule':'../scripts/modules/localstorage',
|
||||
'ngCsv': "../scripts/modules/csv"
|
||||
'ngCsv': "../scripts/modules/csv",
|
||||
'chosen.jquery.min': "../scripts/modules/chosen.jquery.min"
|
||||
},
|
||||
shim: {
|
||||
'angular': { exports: 'angular' },
|
||||
@ -48,6 +49,7 @@
|
||||
'ckEditor':{deps:['jquery']},
|
||||
'LocalStorageModule':{deps:['angular']},
|
||||
'ngCsv':{deps:['angular']},
|
||||
'chosen.jquery.min':{deps:['jquery']},
|
||||
'mifosX': {
|
||||
deps: [
|
||||
'angular',
|
||||
@ -67,7 +69,8 @@
|
||||
'configurations',
|
||||
'LocalStorageModule',
|
||||
'angularFileUploadShim',
|
||||
'ngCsv'
|
||||
'ngCsv',
|
||||
'chosen.jquery.min'
|
||||
],
|
||||
exports: 'mifosX'
|
||||
}
|
||||
|
||||
@ -26,7 +26,8 @@
|
||||
'ngSanitize': '../bower_components/angular-sanitize/angular-sanitize',
|
||||
'ckEditor': '../bower_components/ckeditor/ckeditor',
|
||||
'LocalStorageModule':'../scripts/modules/localstorage',
|
||||
'ngCsv': "../scripts/modules/csv"
|
||||
'ngCsv': "../scripts/modules/csv",
|
||||
'chosen.jquery.min': "../scripts/modules/chosen.jquery.min"
|
||||
},
|
||||
shim: {
|
||||
'angular': { exports: 'angular' },
|
||||
@ -48,6 +49,7 @@
|
||||
'ckEditor':{deps:['jquery']},
|
||||
'LocalStorageModule':{deps:['angular']},
|
||||
'ngCsv':{deps:['angular']},
|
||||
'chosen.jquery.min':{deps:['jquery']},
|
||||
'mifosX': {
|
||||
deps: [
|
||||
'angular',
|
||||
@ -67,7 +69,8 @@
|
||||
'configurations',
|
||||
'LocalStorageModule',
|
||||
'angularFileUploadShim',
|
||||
'ngCsv'
|
||||
'ngCsv',
|
||||
'chosen.jquery.min'
|
||||
],
|
||||
exports: 'mifosX'
|
||||
}
|
||||
|
||||
@ -185,7 +185,8 @@ define(['underscore', 'mifosX'], function() {
|
||||
'FormSubmitValidateDirective',
|
||||
'ApiValidationDirective',
|
||||
'ActivitiesDisplayPanelDirective',
|
||||
'ScrollbarTopDirective'
|
||||
'ScrollbarTopDirective',
|
||||
'ChosenComboboxDirective'
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@ -6,7 +6,8 @@ define(['underscore'], function() {
|
||||
'font-awesome.min',
|
||||
'app',
|
||||
'nv.d3',
|
||||
'style'
|
||||
'style',
|
||||
'chosen.min'
|
||||
],
|
||||
less: [
|
||||
'mifosX'
|
||||
|
||||
2
app/scripts/modules/chosen.jquery.min.js
vendored
Normal file
2
app/scripts/modules/chosen.jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -987,4 +987,4 @@ nav:hover:after{
|
||||
|
||||
.highlight-row:hover{
|
||||
background-color: deepskyblue;
|
||||
}
|
||||
}
|
||||
|
||||
3
app/styles/chosen.min.css
vendored
Normal file
3
app/styles/chosen.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -56,11 +56,11 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div ng-show="creditRuleType=='Account'">
|
||||
<select ng-model="formData.accountToCredit" ng-options="creditAccount.name for creditAccount in glAccounts" ></select>
|
||||
<select ng-model="formData.accountToCredit" chosen="glAccounts" ng-options="creditAccount.name for creditAccount in glAccounts" ></select>
|
||||
</div>
|
||||
<div ng-show="creditRuleType=='tags'">
|
||||
<label>{{ 'label.input.allowMultipleCreditEntries' | translate}} <input type="checkbox" ng-model="formData.allowMultipleCreditEntries"></label>
|
||||
<select ng-model="formData.creditTagTemplate" ng-options="creditTag.name for creditTag in creditTagOptions" ></select>
|
||||
<select ng-model="formData.creditTagTemplate" chosen="creditTagOptions" ng-options="creditTag.name for creditTag in creditTagOptions" ></select>
|
||||
<a ng-click="addCreditTag()"> <i class="icon-plus icon-white"></i></a>
|
||||
<br>
|
||||
<div ng-repeat="crTag in formData.creditTags">
|
||||
@ -71,11 +71,11 @@
|
||||
</td>
|
||||
<td>
|
||||
<div ng-show="debitRuleType=='Account'">
|
||||
<select ng-model="formData.accountToDebit" ng-options="debitAccount.name for debitAccount in glAccounts" ></select>
|
||||
<select ng-model="formData.accountToDebit" chosen="glAccounts" ng-options="debitAccount.name for debitAccount in glAccounts" ></select>
|
||||
</div>
|
||||
<div ng-show="debitRuleType=='tags'">
|
||||
<label>{{ 'label.input.allowMultipleDebitEntries' | translate}} <input type="checkbox" ng-model="formData.allowMultipleDebitEntries"></label>
|
||||
<select ng-model="formData.debitTagTemplate" ng-options="debitTag.name for debitTag in debitTagOptions" ></select>
|
||||
<select ng-model="formData.debitTagTemplate" chosen="debitTagOptions" ng-options="debitTag.name for debitTag in debitTagOptions" ></select>
|
||||
<a ng-click="addDebitTag()"> <i class="icon-plus icon-white"></i></a>
|
||||
<br>
|
||||
<div ng-repeat="dbTag in formData.debitTags">
|
||||
|
||||
@ -57,12 +57,12 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div ng-show="creditRuleType=='Account'">
|
||||
<select class="input-medium" ng-model="formData.accountToCredit" ng-options="creditAccount.id as creditAccount.name for creditAccount in glAccounts"
|
||||
<select ng-model="formData.accountToCredit" chosen="glAccounts" ng-options="creditAccount.id as creditAccount.name for creditAccount in glAccounts"
|
||||
value="{{creditAccount.id}}"></select>
|
||||
</div>
|
||||
<div ng-show="creditRuleType=='tags'">
|
||||
<label>{{ 'label.input.allowMultipleCreditEntries' | translate}} <input type="checkbox" ng-model="formData.allowMultipleCreditEntries"></label>
|
||||
<select class="input-medium" ng-model="formData.creditTagTemplate" ng-options="creditTag.name for creditTag in creditTagOptions" ></select>
|
||||
<select ng-model="formData.creditTagTemplate" chosen="creditTagOptions" ng-options="creditTag.name for creditTag in creditTagOptions" ></select>
|
||||
<a ng-click="addCreditTag()"> <i class="icon-plus icon-white"></i></a>
|
||||
<br>
|
||||
<div ng-repeat="crTag in formData.creditTags">
|
||||
@ -73,12 +73,12 @@
|
||||
</td>
|
||||
<td>
|
||||
<div ng-show="debitRuleType=='Account'">
|
||||
<select class="input-medium" ng-model="formData.accountToDebit" ng-options="debitAccount.id as debitAccount.name for debitAccount in glAccounts"
|
||||
<select ng-model="formData.accountToDebit" chosen="glAccounts" ng-options="debitAccount.id as debitAccount.name for debitAccount in glAccounts"
|
||||
value="{{debitAccount.id}}"></select>
|
||||
</div>
|
||||
<div ng-show="debitRuleType=='tags'">
|
||||
<label>{{ 'label.input.allowMultipleDebitEntries' | translate}} <input type="checkbox" ng-model="formData.allowMultipleDebitEntries"></label>
|
||||
<select class="input-medium" ng-model="formData.debitTagTemplate" ng-options="debitTag.name for debitTag in debitTagOptions" ></select>
|
||||
<select ng-model="formData.debitTagTemplate" chosen="debitTagOptions" ng-options="debitTag.name for debitTag in debitTagOptions" ></select>
|
||||
<a ng-click="addDebitTag()"> <i class="icon-plus icon-white"></i></a>
|
||||
<br>
|
||||
<div ng-repeat="dbTag in formData.debitTags">
|
||||
|
||||
@ -28,18 +28,11 @@
|
||||
<label class="control-label">{{ 'label.input.affectedglentries' | translate }}<span class="required">*</span></label>
|
||||
<div class="controls">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<strong>{{ 'label.input.credit' | translate }}</strong>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<strong>{{ 'label.input.debit' | translate }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<h4><strong>{{ 'label.input.credit' | translate }}</strong></h4>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<select class="input-small" ng-model="formData.creditAccountTemplate" ng-options="creditAccount.name for creditAccount in glAccounts" >
|
||||
<select chosen="glAccounts" ng-model="formData.creditAccountTemplate" ng-options="creditAccount.name for creditAccount in glAccounts" >
|
||||
<option style="display:none" value="">{{'label.selectcredit' | translate}}</option>
|
||||
</select>
|
||||
<input type="text" class="input-small" name="creditamount" ng-model="formData.crAmountTemplate">
|
||||
@ -52,15 +45,23 @@
|
||||
</div>
|
||||
<br>
|
||||
<div ng-repeat="crAccount in formData.crAccounts">
|
||||
<input type="text" class="input-small" ng-model="crAccount.crGlName" readonly>
|
||||
<input type="text" ng-model="crAccount.crGlName" readonly>
|
||||
<input type="text" class="input-small" ng-model="crAccount.crAmount">
|
||||
<a ng-click="removeCrAccount($index)"> <i class="icon-remove icon-white"></i></a>
|
||||
<a ng-click="removeCrAccount($index)"> <i class="icon-remove icon-white"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<select class="input-small" ng-model="formData.debitAccountTemplate" ng-options="debitAccount.name for debitAccount in glAccounts" >
|
||||
<option style="display:none" value="">{{'label.selectdebit' | translate}}</option>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%">
|
||||
<h4><strong>{{ 'label.input.debit' | translate }}</strong></h4>
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<select chosen="glAccounts" ng-model="formData.debitAccountTemplate"
|
||||
ng-options="debitAccount.name for debitAccount in glAccounts" >
|
||||
<option style="display:none" value="">{{'label.selectdebit' | translate}}</option>
|
||||
</select>
|
||||
<input type="text" class="input-small" name="debitamount" ng-model="formData.debitAmountTemplate">
|
||||
<a ng-click="addDebitAccount()"> <i class="icon-plus icon-white"></i></a>
|
||||
@ -72,11 +73,12 @@
|
||||
</div>
|
||||
<br>
|
||||
<div ng-repeat="dbAccount in formData.dbAccounts">
|
||||
<input type="text" class="input-small" ng-model="dbAccount.debitGlName" readonly>
|
||||
<input type="text" ng-model="dbAccount.debitGlName" readonly>
|
||||
<input type="text" class="input-small" ng-model="dbAccount.debitAmount">
|
||||
<a ng-click="removeDebitAccount($index)"> <i class="icon-remove icon-white"></i></a>
|
||||
<a ng-click="removeDebitAccount($index)"> <i class="icon-remove icon-white"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="office">{{ 'label.input.office' | translate }}<span class="required">*</span></label>
|
||||
<div class="controls">
|
||||
<select id="officeId" ng-model="formData.officeId" ng-options="office.id as office.name for office in offices" value="{{office.id}}">
|
||||
<select id="officeId" ng-model="formData.officeId" ng-options="office.id as office.name for office in offices" value="{{office.id}}">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -534,7 +534,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.fundsource' | translate }} </label>
|
||||
<select id="fundSourceAccountId" ng-model="formData.fundSourceAccountId"
|
||||
<select id="fundSourceAccountId" ng-model="formData.fundSourceAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -543,7 +543,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.loanportfolio' | translate }} </label>
|
||||
<select id="loanPortfolioAccountId" ng-model="formData.loanPortfolioAccountId"
|
||||
<select id="loanPortfolioAccountId" ng-model="formData.loanPortfolioAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -554,7 +554,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.transfersinsuspense' | translate }} </label>
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId"
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -573,7 +573,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrominterest' | translate }} </label>
|
||||
<select id="interestOnLoanAccountId" ng-model="formData.interestOnLoanAccountId"
|
||||
<select id="interestOnLoanAccountId" ng-model="formData.interestOnLoanAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -583,7 +583,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefromfees' | translate }} </label>
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId"
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -594,7 +594,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrompenalties' | translate }} </label>
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId"
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -613,7 +613,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.loseswrittenoff' | translate }} </label>
|
||||
<select id="writeOffAccountId" ng-model="formData.writeOffAccountId"
|
||||
<select id="writeOffAccountId" ng-model="formData.writeOffAccountId" chosen="expenseAccountOptions"
|
||||
ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions"
|
||||
value="{{expenseAccount.id}}">
|
||||
</select>
|
||||
@ -628,7 +628,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.overpaymentliability' | translate }} </label>
|
||||
<select id="overpaymentLiabilityAccountId" ng-model="formData.overpaymentLiabilityAccountId"
|
||||
<select id="overpaymentLiabilityAccountId" ng-model="formData.overpaymentLiabilityAccountId" chosen="liabilityOptions"
|
||||
ng-options="liability.id as liability.name for liability in liabilityOptions"
|
||||
value="{{liability.id}}">
|
||||
</select>
|
||||
|
||||
@ -209,7 +209,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingreference' | translate }} </label>
|
||||
<select id="savingsReferenceAccountId" ng-model="formData.savingsReferenceAccountId" ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions" value="{{assetAccount.id}}">
|
||||
<select id="savingsReferenceAccountId" ng-model="formData.savingsReferenceAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@ -224,14 +226,18 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingcontrol' | translate }} </label>
|
||||
<select id="savingsControlAccountId" ng-model="formData.savingsControlAccountId" ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions" value="{{liabilityAccount.id}}">
|
||||
<select id="savingsControlAccountId" ng-model="formData.savingsControlAccountId" chosen="liabilityAccountOptions"
|
||||
ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions"
|
||||
value="{{liabilityAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingstransfersinsuspenpense' | translate }} </label>
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions" value="{{liabilityAccount.id}}">
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" chosen="liabilityAccountOptions"
|
||||
ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions"
|
||||
value="{{liabilityAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
@ -248,7 +254,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.interestonsavings' | translate }} </label>
|
||||
<select id="interestOnSavingsAccountId" ng-model="formData.interestOnSavingsAccountId" ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions" value="{{expenseAccount.id}}">
|
||||
<select id="interestOnSavingsAccountId" ng-model="formData.interestOnSavingsAccountId" chosen="expenseAccountOptions"
|
||||
ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions"
|
||||
value="{{expenseAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
@ -264,7 +272,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefromfees' | translate }} </label>
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions" value="{{incomeAccount.id}}">
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
@ -273,7 +283,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrompenalties' | translate }} </label>
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions" value="{{incomeAccount.id}}">
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@ -611,7 +611,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.fundsource' | translate }} </label>
|
||||
<select id="fundSourceAccountId" ng-model="formData.fundSourceAccountId"
|
||||
<select id="fundSourceAccountId" ng-model="formData.fundSourceAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -620,7 +620,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.loanportfolio' | translate }} </label>
|
||||
<select id="loanPortfolioAccountId" ng-model="formData.loanPortfolioAccountId"
|
||||
<select id="loanPortfolioAccountId" ng-model="formData.loanPortfolioAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -631,7 +631,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.transfersinsuspense' | translate }} </label>
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId"
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
@ -650,7 +650,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrominterest' | translate }} </label>
|
||||
<select id="interestOnLoanAccountId" ng-model="formData.interestOnLoanAccountId"
|
||||
<select id="interestOnLoanAccountId" ng-model="formData.interestOnLoanAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -660,7 +660,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefromfees' | translate }} </label>
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId"
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -671,7 +671,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrompenalties' | translate }} </label>
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId"
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
@ -690,7 +690,7 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.loseswrittenoff' | translate }} </label>
|
||||
<select id="writeOffAccountId" ng-model="formData.writeOffAccountId"
|
||||
<select id="writeOffAccountId" ng-model="formData.writeOffAccountId" chosen="expenseAccountOptions"
|
||||
ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions"
|
||||
value="{{expenseAccount.id}}">
|
||||
</select>
|
||||
@ -705,7 +705,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.overpaymentliability' | translate }} </label>
|
||||
<select id="overpaymentLiabilityAccountId" ng-model="formData.overpaymentLiabilityAccountId"
|
||||
<select id="overpaymentLiabilityAccountId" ng-model="formData.overpaymentLiabilityAccountId" chosen="liabilityOptions"
|
||||
ng-options="liability.id as liability.name for liability in liabilityOptions"
|
||||
value="{{liability.id}}">
|
||||
</select>
|
||||
|
||||
@ -213,7 +213,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingreference' | translate }} </label>
|
||||
<select id="savingsReferenceAccountId" ng-model="formData.savingsReferenceAccountId" ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions" value="{{assetAccount.id}}">
|
||||
<select id="savingsReferenceAccountId" ng-model="formData.savingsReferenceAccountId" chosen="assetAccountOptions"
|
||||
ng-options="assetAccount.id as assetAccount.name for assetAccount in assetAccountOptions"
|
||||
value="{{assetAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@ -228,14 +230,18 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingcontrol' | translate }} </label>
|
||||
<select id="savingsControlAccountId" ng-model="formData.savingsControlAccountId" ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions" value="{{liabilityAccount.id}}">
|
||||
<select id="savingsControlAccountId" ng-model="formData.savingsControlAccountId" chosen="liabilityAccountOptions"
|
||||
ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions"
|
||||
value="{{liabilityAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.savingstransfersinsuspenpense' | translate }} </label>
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions" value="{{liabilityAccount.id}}">
|
||||
<select id="transfersInSuspenseAccountId" ng-model="formData.transfersInSuspenseAccountId" chosen="liabilityAccountOptions"
|
||||
ng-options="liabilityAccount.id as liabilityAccount.name for liabilityAccount in liabilityAccountOptions"
|
||||
value="{{liabilityAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
@ -252,7 +258,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.interestonsavings' | translate }} </label>
|
||||
<select id="interestOnSavingsAccountId" ng-model="formData.interestOnSavingsAccountId" ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions" value="{{expenseAccount.id}}">
|
||||
<select id="interestOnSavingsAccountId" ng-model="formData.interestOnSavingsAccountId" chosen="expenseAccountOptions"
|
||||
ng-options="expenseAccount.id as expenseAccount.name for expenseAccount in expenseAccountOptions"
|
||||
value="{{expenseAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
@ -268,7 +276,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefromfees' | translate }} </label>
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions" value="{{incomeAccount.id}}">
|
||||
<select id="incomeFromFeeAccountId" ng-model="formData.incomeFromFeeAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
@ -277,7 +287,9 @@
|
||||
<tr class="control-group">
|
||||
<td>
|
||||
<label class="control-label">{{ 'label.input.incomefrompenalties' | translate }} </label>
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions" value="{{incomeAccount.id}}">
|
||||
<select id="incomeFromPenaltyAccountId" ng-model="formData.incomeFromPenaltyAccountId" chosen="incomeAccountOptions"
|
||||
ng-options="incomeAccount.id as incomeAccount.name for incomeAccount in incomeAccountOptions"
|
||||
value="{{incomeAccount.id}}">
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user