Skip to content

Commit

Permalink
Application komponentille muutoksia hauttomalle hakemukselle
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoa committed Nov 12, 2024
1 parent cb45c0d commit 502bc7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/js/directives/application.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div role="presentation" class="hakemuseditori">
<section class="application-header">
<h2>{{application.haku.name }}</h2>
<h2 ng-if="application.haku">{{application.haku.name }}</h2>
<h2 ng-if="!application.haku">{{application.formName }}</h2>

<application-periods haku="application.haku"></application-periods>
<application-periods ng-if="application.haku" haku="application.haku"></application-periods>

<div class="timestamp-row" ng-show="application.haku.jarjestelmanHakulomake || application.hakemusSource === 'Ataru'">
<i ng-if="application.previewUrl" aria-hidden="true" class="icon-doc-text"></i>
Expand Down Expand Up @@ -33,7 +34,7 @@ <h2>{{application.haku.name }}</h2>
</div>
</section>

<section class="application-status" role="presentation">
<section ng-if="application.haku" class="application-status" role="presentation">
<div class="application-status-item" ng-if="application.state.id != 'HAKUKIERROSPAATTYNYT' && !application.allResultsAvailable() && application.vastaanotettavatHakutoiveet().length == 0">
{{ localization('label.applicationPeriodEnded') }}
<span ng-if="application.haku.aikataulu.julkistus">
Expand Down
1 change: 1 addition & 0 deletions src/main/js/models/hakemus.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class Hakemus {
this.migriUrl = null;
this.hakemusSource = json.hakemusSource;
this.previewUrl = json.previewUrl;
this.formName = json.formName;
}

removePreference(index) {
Expand Down

0 comments on commit 502bc7d

Please sign in to comment.