Skip to content

Commit

Permalink
HiH: Rename "Priorität" to "Priorisierung"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Dec 12, 2024
1 parent ca17ee5 commit a2a7579
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions ang/crmFundingHiH/hihApplicationSidebar.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ fundingModule.directive('fundingHihApplicationSidebar', function() {
controller: ['$scope', 'crmApi4', 'crmStatus', function ($scope, crmApi4, crmStatus) {
this.ts = CRM.ts('funding');

$scope.prioritaetOptions = {};
$scope.priorisierungOptions = {};
crmApi4('FundingApplicationProcess', 'getFields', {
loadOptions: true,
where: [['name', '=', 'bsh_funding_application_extra.prioritaet']],
where: [['name', '=', 'bsh_funding_application_extra.priorisierung']],
select: ["options"]
}).then(function(fields) {
$scope.prioritaetOptions = fields[0].options;
$scope.priorisierungOptions = fields[0].options;
});

$scope.updateNdrBerichterstattung = function(data) {
Expand All @@ -53,15 +53,15 @@ fundingModule.directive('fundingHihApplicationSidebar', function() {
return 'unbekannt';
};

$scope.updatePrioritaet = function(data) {
return crmStatus({}, crmApi4('FundingApplicationProcess', 'setBshPrioritaet', {
$scope.updatePriorisierung = function(data) {
return crmStatus({}, crmApi4('FundingApplicationProcess', 'setBshPriorisierung', {
id: $scope.applicationProcess.id,
prioritaet: data,
priorisierung: data,
}));
};

$scope.showPrioritaet = function() {
return $scope.prioritaetOptions[$scope.applicationProcess['bsh_funding_application_extra.prioritaet']] || 'nicht definiert';
$scope.showPriorisierung = function() {
return $scope.priorisierungOptions[$scope.applicationProcess['bsh_funding_application_extra.priorisierung']] || 'nicht definiert';
};
}],
};
Expand Down
10 changes: 5 additions & 5 deletions ang/crmFundingHiH/hihApplicationSidebar.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
</div>

<div class="funding-application-sidebar-element">
<label for="prioritaet">Priorität</label>
<span id="prioritaet" editable-select="applicationProcess['bsh_funding_application_extra.prioritaet']"
e-ng-options="key as value for (key, value) in prioritaetOptions"
onbeforesave="updatePrioritaet($data)">
{{ showPrioritaet() }}
<label for="priorisierung">Priorisierung</label>
<span id="priorisierung" editable-select="applicationProcess['bsh_funding_application_extra.priorisierung']"
e-ng-options="key as value for (key, value) in priorisierungOptions"
onbeforesave="updatePriorisierung($data)">
{{ showPriorisierung() }}
</span>
</div>

Expand Down

0 comments on commit a2a7579

Please sign in to comment.