ember-ebau-gwr 4.0.7 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +312 -299
- package/README.md +25 -8
- package/addon/components/building-preview.hbs +53 -0
- package/addon/components/housing-stat-link.hbs +8 -0
- package/addon/components/import-modal/building-data.hbs +1 -55
- package/addon/components/import-modal/dwelling-data.hbs +3 -3
- package/addon/components/import-modal/entrance-data.hbs +1 -1
- package/addon/components/import-modal.hbs +1 -4
- package/addon/components/link-building-modal.hbs +38 -24
- package/addon/components/link-building-modal.js +13 -5
- package/addon/components/link-street.hbs +33 -31
- package/addon/components/linked-models.hbs +13 -6
- package/addon/components/linked-projects.hbs +8 -6
- package/addon/components/linked-projects.js +13 -0
- package/addon/components/loading.hbs +3 -0
- package/addon/components/login-modal.hbs +86 -68
- package/addon/components/model-errors/error-indicator.hbs +1 -2
- package/addon/components/model-errors/header.hbs +6 -2
- package/addon/components/model-errors/list.hbs +13 -4
- package/addon/components/model-errors/skeleton-errors.hbs +14 -0
- package/addon/components/model-errors/skeleton.hbs +1 -16
- package/addon/components/model-errors.hbs +14 -16
- package/addon/components/model-form/date.hbs +10 -6
- package/addon/components/model-form/diff.hbs +8 -8
- package/addon/components/model-form/field.hbs +3 -2
- package/addon/components/model-form/field.js +7 -5
- package/addon/components/model-form/header/actions.hbs +25 -22
- package/addon/components/model-form/header/actions.js +6 -3
- package/addon/components/model-form/header/errors.hbs +16 -16
- package/addon/components/model-form/header/status-selector/submit-parameters.hbs +2 -1
- package/addon/components/model-form/header/status-selector.hbs +15 -3
- package/addon/components/model-form/header/status.hbs +2 -1
- package/addon/components/model-form/header.hbs +6 -5
- package/addon/components/model-form/step.hbs +5 -5
- package/addon/components/model-form/submit.hbs +1 -0
- package/addon/components/model-form.hbs +110 -77
- package/addon/components/model-form.js +38 -2
- package/addon/components/model-inview.hbs +2 -7
- package/addon/components/project-landing-page.hbs +26 -0
- package/addon/components/project-nav.hbs +65 -0
- package/addon/components/project-nav.js +27 -0
- package/addon/components/quarterly-closure/card-status.hbs +11 -0
- package/addon/components/quarterly-closure/card-status.js +36 -0
- package/addon/components/quarterly-closure/close-survey-button.hbs +10 -0
- package/addon/components/quarterly-closure/close-survey-button.js +46 -0
- package/addon/components/quarterly-closure/disabled-form-info.hbs +4 -0
- package/addon/components/quarterly-closure/error-list/project-errors.hbs +22 -0
- package/addon/components/quarterly-closure/error-list/project-errors.js +41 -0
- package/addon/components/quarterly-closure/error-list/survey-department-errors.hbs +22 -0
- package/addon/components/quarterly-closure/error-list/survey-department-errors.js +28 -0
- package/addon/components/quarterly-closure/error-list.hbs +4 -0
- package/addon/components/quarterly-closure/status.hbs +8 -0
- package/addon/components/quarterly-closure/status.js +6 -0
- package/addon/components/quarterly-closure/title.hbs +15 -0
- package/addon/components/quarterly-closure/title.js +11 -0
- package/addon/components/quarterly-closure.hbs +9 -0
- package/addon/components/quarterly-closure.js +6 -0
- package/addon/components/search/filters.hbs +128 -106
- package/addon/components/search/filters.js +13 -59
- package/addon/components/search/result-table/head/header.hbs +1 -1
- package/addon/components/search/result-table/head.hbs +1 -1
- package/addon/components/search/result-table/load-more.hbs +5 -0
- package/addon/components/search/result-table/row/field.hbs +1 -1
- package/addon/components/search/result-table/row.hbs +12 -13
- package/addon/components/search/result-table.hbs +3 -2
- package/addon/components/search.hbs +29 -0
- package/addon/components/search.js +96 -0
- package/addon/components/soon-available.hbs +7 -0
- package/addon/components/sub-nav.hbs +5 -8
- package/addon/components/title-card.hbs +28 -0
- package/addon/components/validated-form-error.hbs +4 -0
- package/addon/components/validated-form-error.js +14 -0
- package/addon/controllers/building/edit/dwelling/edit.js +2 -3
- package/addon/controllers/building/edit/entrance/edit/index.js +2 -3
- package/addon/controllers/building/edit/entrance/edit/link-street.js +4 -1
- package/addon/controllers/building/edit/form.js +57 -39
- package/addon/controllers/import.js +8 -64
- package/addon/controllers/project/form.js +3 -4
- package/addon/controllers/project.js +22 -44
- package/addon/controllers/search-building.js +39 -14
- package/addon/controllers/search-project.js +24 -19
- package/addon/helpers/current-quarter.js +8 -0
- package/addon/helpers/current-route-is-not.js +7 -0
- package/addon/helpers/current-route-is.js +15 -0
- package/addon/helpers/is-set.js +9 -0
- package/addon/helpers/is-unset.js +4 -4
- package/addon/helpers/show-model-field.js +4 -4
- package/addon/models/check-construction-project-response.js +20 -0
- package/addon/models/check-survey-department-response.js +20 -0
- package/addon/models/quarterly-closure-status.js +52 -0
- package/addon/modifiers/in-viewport.js +14 -0
- package/addon/modifiers/inverse-background.js +21 -0
- package/addon/resources/import.js +69 -0
- package/addon/routes/building/edit.js +1 -1
- package/addon/routes/building/new.js +1 -1
- package/addon/routes/building.js +7 -2
- package/addon/routes/global-landing-page.js +9 -0
- package/addon/routes/project/errors.js +1 -1
- package/addon/routes/project/form.js +1 -1
- package/addon/routes/project/new.js +1 -1
- package/addon/routes/project.js +1 -1
- package/addon/routes/quarterly-closure.js +3 -0
- package/addon/routes/search-building.js +7 -2
- package/addon/routes.js +7 -3
- package/addon/services/auth-fetch.js +6 -7
- package/addon/services/construction-project.js +10 -0
- package/addon/services/gwr.js +19 -7
- package/addon/services/quarterly-closure.js +147 -0
- package/addon/templates/building/edit/dwelling/edit.hbs +22 -19
- package/addon/templates/building/edit/dwelling/new.hbs +1 -1
- package/addon/templates/building/edit/dwelling.hbs +1 -1
- package/addon/templates/building/edit/dwellings.hbs +3 -4
- package/addon/templates/building/edit/entrance/edit/index.hbs +32 -18
- package/addon/templates/building/edit/entrance/edit/link-street.hbs +79 -75
- package/addon/templates/building/edit/entrance/edit.hbs +1 -1
- package/addon/templates/building/edit/entrance/new.hbs +1 -1
- package/addon/templates/building/edit/entrance.hbs +6 -5
- package/addon/templates/building/edit/entrances.hbs +4 -6
- package/addon/templates/building/edit/form.hbs +127 -112
- package/addon/templates/building/edit/index.hbs +1 -1
- package/addon/templates/building/edit.hbs +33 -23
- package/addon/templates/building.hbs +1 -1
- package/addon/templates/global-landing-page.hbs +34 -0
- package/addon/templates/project/errors.hbs +116 -109
- package/addon/templates/project/form.hbs +96 -63
- package/addon/templates/project/index.hbs +0 -1
- package/addon/templates/project/linked-buildings.hbs +7 -10
- package/addon/templates/project.hbs +12 -73
- package/addon/templates/quarterly-closure.hbs +1 -0
- package/addon/templates/search-building.hbs +202 -134
- package/addon/templates/search-project.hbs +98 -85
- package/addon/validations/building-work.js +106 -97
- package/addon/validations/extended-search-fields.js +27 -0
- package/addon/validations/realestate-identification.js +1 -0
- package/addon/xml/helpers.js +3 -0
- package/addon/xml/templates/building.js +1 -1
- package/addon/xml/templates/construction-project.js +1 -1
- package/app/styles/ember-ebau-gwr.scss +19 -0
- package/config/environment.js +4 -0
- package/config/icons.js +15 -0
- package/package.json +19 -15
- package/translations/de.yaml +29 -26
- package/translations/fr.yaml +11 -19
- package/translations/quarterly-closure/de.yaml +59 -0
- package/translations/validation-errors/de.yaml +37 -0
- package/addon/components/landing-page.hbs +0 -24
- package/addon/components/project-form/checkbox.hbs +0 -11
- package/addon/components/project-form/checkbox.js +0 -9
- package/addon/components/project-form/date.hbs +0 -10
- package/addon/components/project-form/diff.hbs +0 -43
- package/addon/components/project-form/diff.js +0 -18
- package/addon/components/project-form/field.hbs +0 -32
- package/addon/components/project-form/field.js +0 -59
- package/addon/components/project-form/input.hbs +0 -7
- package/addon/components/project-form/label.hbs +0 -17
- package/addon/components/project-form/select.hbs +0 -17
- package/addon/components/project-form/textarea.hbs +0 -7
- package/addon/components/project-form.hbs +0 -19
- package/addon/components/project-form.js +0 -14
- package/addon/components/sub-nav.js +0 -18
- package/addon/services/import-state.js +0 -10
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{{#if
|
|
2
2
|
(and this.buildingWork.building.isNew (not this.fetchBuildingWork.isRunning))
|
|
3
3
|
}}
|
|
4
|
-
<
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{{t "ember-gwr.building.backToProject"}}
|
|
11
|
-
</LinkTo>
|
|
4
|
+
<BackRoute
|
|
5
|
+
@backRoute="project.linked-buildings"
|
|
6
|
+
@backModel={{this.model.projectId}}
|
|
7
|
+
@backText={{t "ember-gwr.building.backToProject"}}
|
|
8
|
+
/>
|
|
9
|
+
|
|
12
10
|
{{/if}}
|
|
13
11
|
<div>
|
|
14
12
|
{{#if (or this.fetchBuildingWork.isRunning this.fetchBuilding.isRunning)}}
|
|
15
|
-
<
|
|
16
|
-
<UkSpinner @ratio={{3}} />
|
|
17
|
-
</div>
|
|
13
|
+
<Loading />
|
|
18
14
|
{{else}}
|
|
15
|
+
{{#if this.quarterlyClosure.disableForms}}
|
|
16
|
+
<QuarterlyClosure::DisabledFormInfo />
|
|
17
|
+
{{/if}}
|
|
19
18
|
<ModelForm
|
|
20
19
|
@model={{this.buildingWork}}
|
|
21
|
-
@
|
|
20
|
+
@instanceId={{this.model.instanceId}}
|
|
21
|
+
@validations={{this.BuildingWorkValidations.value}}
|
|
22
22
|
@onSubmit={{this.saveBuildingWork}}
|
|
23
23
|
@errors={{this.errors}}
|
|
24
24
|
@translationBase="ember-gwr"
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
@headerModel={{this.building}}
|
|
27
27
|
@headerModelId={{this.building.EGID}}
|
|
28
28
|
@projectId={{this.model.projectId}}
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
29
|
+
@modelName="building"
|
|
30
|
+
@showStatusActions={{this.hasInstanceContext}}
|
|
31
|
+
@showImport={{this.showImport}}
|
|
32
|
+
@importIndex={{this.importIndex}}
|
|
32
33
|
@modelStatusOptions={{this.buildingStatusOptions}}
|
|
33
34
|
@nextValidStates={{this.nextValidStates}}
|
|
34
35
|
@onStatusChange={{this.transitionState}}
|
|
@@ -37,94 +38,97 @@
|
|
|
37
38
|
@getCorrectionParameters={{this.getCorrectionParameters}}
|
|
38
39
|
@getChangeHint={{fn this.gwr.getChangeHint this.buildingAPI.cacheClass}}
|
|
39
40
|
@modelStatusField="buildingStatus"
|
|
40
|
-
|
|
41
|
+
@disabled={{this.quarterlyClosure.disableForms}}
|
|
42
|
+
as |Field changeset import|
|
|
41
43
|
>
|
|
42
|
-
{{#unless this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<div class="uk-
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
{{#unless this.hasNoProject}}
|
|
45
|
+
{{#unless this.buildingWork.isNew}}
|
|
46
|
+
<h3>
|
|
47
|
+
{{t
|
|
48
|
+
"ember-gwr.building.sections.kindOfWorkForProject"
|
|
49
|
+
projectId=@model.projectId
|
|
50
|
+
}}
|
|
51
|
+
</h3>
|
|
52
|
+
<div class="uk-flex uk-margin">
|
|
53
|
+
<div class="uk-width-1-2">
|
|
54
|
+
<span class="uk-form-label">{{t
|
|
55
|
+
"ember-gwr.buildingWork.kindOfWork"
|
|
56
|
+
}}:</span>
|
|
57
|
+
<span>{{t
|
|
58
|
+
(concat
|
|
59
|
+
"ember-gwr.buildingWork.kindOfWorkOptions."
|
|
60
|
+
this.buildingWork.kindOfWork
|
|
61
|
+
)
|
|
62
|
+
}}</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="uk-width-1-2">
|
|
65
|
+
<span class="uk-form-label">{{t
|
|
66
|
+
"ember-gwr.buildingWork.ARBID"
|
|
67
|
+
}}:</span>
|
|
68
|
+
<span>{{this.buildingWork.ARBID}}</span>
|
|
69
|
+
</div>
|
|
60
70
|
</div>
|
|
61
|
-
|
|
62
|
-
<span class="uk-form-label">{{t
|
|
63
|
-
"ember-gwr.buildingWork.ARBID"
|
|
64
|
-
}}:</span>
|
|
65
|
-
<span>{{this.buildingWork.ARBID}}</span>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
{{/unless}}
|
|
71
|
+
{{/unless}}
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
73
|
+
{{#if (eq changeset.kindOfWork 6002)}}
|
|
74
|
+
<div class="uk-flex">
|
|
75
|
+
<div class="uk-width-1-2">
|
|
76
|
+
<Field
|
|
77
|
+
@attr="energeticRestauration"
|
|
78
|
+
@type="checkbox"
|
|
79
|
+
@translationBase="ember-gwr.buildingWork"
|
|
80
|
+
/>
|
|
81
|
+
<Field
|
|
82
|
+
@attr="renovationHeatingsystem"
|
|
83
|
+
@type="checkbox"
|
|
84
|
+
@translationBase="ember-gwr.buildingWork"
|
|
85
|
+
/>
|
|
86
|
+
<Field
|
|
87
|
+
@attr="innerConversionRenovation"
|
|
88
|
+
@type="checkbox"
|
|
89
|
+
@translationBase="ember-gwr.buildingWork"
|
|
90
|
+
/>
|
|
91
|
+
<Field
|
|
92
|
+
@attr="conversion"
|
|
93
|
+
@type="checkbox"
|
|
94
|
+
@translationBase="ember-gwr.buildingWork"
|
|
95
|
+
/>
|
|
96
|
+
<Field
|
|
97
|
+
@attr="extensionHeighteningHeated"
|
|
98
|
+
@type="checkbox"
|
|
99
|
+
@translationBase="ember-gwr.buildingWork"
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="uk-width-1-2">
|
|
103
|
+
<Field
|
|
104
|
+
@attr="extensionHeighteningNotHeated"
|
|
105
|
+
@type="checkbox"
|
|
106
|
+
@translationBase="ember-gwr.buildingWork"
|
|
107
|
+
/>
|
|
108
|
+
<Field
|
|
109
|
+
@attr="thermicSolarFacility"
|
|
110
|
+
@type="checkbox"
|
|
111
|
+
@translationBase="ember-gwr.buildingWork"
|
|
112
|
+
/>
|
|
113
|
+
<Field
|
|
114
|
+
@attr="photovoltaicSolarFacility"
|
|
115
|
+
@type="checkbox"
|
|
116
|
+
@translationBase="ember-gwr.buildingWork"
|
|
117
|
+
/>
|
|
118
|
+
<Field
|
|
119
|
+
@attr="otherWorks"
|
|
120
|
+
@type="checkbox"
|
|
121
|
+
@translationBase="ember-gwr.buildingWork"
|
|
122
|
+
/>
|
|
123
|
+
</div>
|
|
120
124
|
</div>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
<hr />
|
|
125
|
+
{{/if}}
|
|
126
|
+
<hr />
|
|
124
127
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
<h3>
|
|
129
|
+
{{t "ember-gwr.building.sections.building"}}
|
|
130
|
+
</h3>
|
|
131
|
+
{{/unless}}
|
|
128
132
|
|
|
129
133
|
<Field @attr="building.officialBuildingNo" @type="number" />
|
|
130
134
|
|
|
@@ -142,7 +146,6 @@
|
|
|
142
146
|
@gwrEnumOptions={{this.Models.Building.buildingClassOptions}}
|
|
143
147
|
/>
|
|
144
148
|
|
|
145
|
-
|
|
146
149
|
{{#if this.buildingWork.building.isNew}}
|
|
147
150
|
<h3 class="uk-margin-remove-bottom">
|
|
148
151
|
{{t "ember-gwr.building.buildingEntrance.mainEntrance"}}
|
|
@@ -220,7 +223,7 @@
|
|
|
220
223
|
|
|
221
224
|
<Field @attr="building.nameOfBuilding" />
|
|
222
225
|
|
|
223
|
-
{{#if (or (not this.buildingWork.isNew)
|
|
226
|
+
{{#if (or (not this.buildingWork.isNew) import)}}
|
|
224
227
|
<Field @attr="building.dateOfConstruction.yearMonthDay" @type="date" />
|
|
225
228
|
{{#if this.buildingWork.building.dateOfConstruction.year}}
|
|
226
229
|
<Field @attr="building.dateOfConstruction.year" @disabled={{true}} />
|
|
@@ -312,17 +315,23 @@
|
|
|
312
315
|
@label="ember-gwr.building.heating.revisionDate"
|
|
313
316
|
/>
|
|
314
317
|
|
|
315
|
-
<ul
|
|
318
|
+
<ul
|
|
319
|
+
uk-accordion="active: {{if
|
|
320
|
+
(or
|
|
316
321
|
(show-model-field
|
|
317
|
-
|
|
322
|
+
'building.thermotechnicalDeviceForHeating2.heatGeneratorHeating'
|
|
318
323
|
changeset
|
|
319
|
-
|
|
324
|
+
import
|
|
320
325
|
)
|
|
321
326
|
(show-model-field
|
|
322
|
-
|
|
327
|
+
'building.thermotechnicalDeviceForHeating2.energySourceHeating'
|
|
323
328
|
changeset
|
|
324
|
-
|
|
325
|
-
)
|
|
329
|
+
import
|
|
330
|
+
)
|
|
331
|
+
)
|
|
332
|
+
'0'
|
|
333
|
+
false
|
|
334
|
+
}}"
|
|
326
335
|
>
|
|
327
336
|
<li>
|
|
328
337
|
<a class="uk-accordion-title" href="#">
|
|
@@ -391,17 +400,23 @@
|
|
|
391
400
|
@label="ember-gwr.building.heating.revisionDate"
|
|
392
401
|
/>
|
|
393
402
|
|
|
394
|
-
<ul
|
|
403
|
+
<ul
|
|
404
|
+
uk-accordion="active: {{if
|
|
405
|
+
(or
|
|
395
406
|
(show-model-field
|
|
396
|
-
|
|
407
|
+
'building.thermotechnicalDeviceForHeating2.heatGeneratorHeating'
|
|
397
408
|
changeset
|
|
398
|
-
|
|
409
|
+
import
|
|
399
410
|
)
|
|
400
411
|
(show-model-field
|
|
401
|
-
|
|
412
|
+
'building.thermotechnicalDeviceForHeating2.energySourceHeating'
|
|
402
413
|
changeset
|
|
403
|
-
|
|
404
|
-
)
|
|
414
|
+
import
|
|
415
|
+
)
|
|
416
|
+
)
|
|
417
|
+
'0'
|
|
418
|
+
false
|
|
419
|
+
}}"
|
|
405
420
|
>
|
|
406
421
|
<li>
|
|
407
422
|
<a class="uk-accordion-title" href="#">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{{outlet}}
|
|
1
|
+
{{outlet}}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
@
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
{{#if (current-route-is-not "entrance" "dwelling")}}
|
|
2
|
+
{{#if @model.projectId}}
|
|
3
|
+
<BackRoute
|
|
4
|
+
@backRoute="project.linked-buildings"
|
|
5
|
+
@backModel={{@model.projectId}}
|
|
6
|
+
@backText={{t "ember-gwr.building.backToProject"}}
|
|
7
|
+
/>
|
|
8
|
+
{{else}}
|
|
9
|
+
<BackRoute
|
|
10
|
+
@backRoute="search-building"
|
|
11
|
+
@backText={{t "ember-gwr.globalLandingPage.backToSearch"}}
|
|
12
|
+
/>
|
|
13
|
+
{{/if}}
|
|
14
|
+
<SubNav
|
|
15
|
+
@links={{array
|
|
16
|
+
(hash
|
|
17
|
+
route="building.edit.form"
|
|
18
|
+
models=(array @model.buildingId)
|
|
19
|
+
text=(t "ember-gwr.models.building" count=1)
|
|
20
|
+
)
|
|
21
|
+
(hash
|
|
22
|
+
route="building.edit.entrances"
|
|
23
|
+
models=(array @model.buildingId)
|
|
24
|
+
text=(t "ember-gwr.models.entrance" count=2)
|
|
25
|
+
)
|
|
26
|
+
(hash
|
|
27
|
+
route="building.edit.dwellings"
|
|
28
|
+
models=(array @model.buildingId)
|
|
29
|
+
text=(t "ember-gwr.models.dwelling" count=2)
|
|
30
|
+
)
|
|
31
|
+
}}
|
|
32
|
+
/>
|
|
33
|
+
{{/if}}
|
|
24
34
|
{{outlet}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{{outlet}}
|
|
1
|
+
{{outlet}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<div class="uk-padding">
|
|
2
|
+
<h1 class="uk-text-center">
|
|
3
|
+
{{t "ember-gwr.globalLandingPage.heading"}}
|
|
4
|
+
</h1>
|
|
5
|
+
<h4 class="uk-text-center uk-margin-remove-top uk-margin-large">
|
|
6
|
+
{{t "ember-gwr.globalLandingPage.infoText"}}
|
|
7
|
+
</h4>
|
|
8
|
+
|
|
9
|
+
<div uk-grid class="uk-child-width-1-1 uk-child-width-1-3@m">
|
|
10
|
+
<TitleCard
|
|
11
|
+
@title={{t "ember-gwr.globalLandingPage.searchProject"}}
|
|
12
|
+
@route="search-project"
|
|
13
|
+
@icon={{hash name="folder-closed" prefix="far"}}
|
|
14
|
+
/>
|
|
15
|
+
<TitleCard
|
|
16
|
+
@title={{t "ember-gwr.globalLandingPage.searchBuilding"}}
|
|
17
|
+
@route="search-building"
|
|
18
|
+
@icon={{hash name="building" prefix="far"}}
|
|
19
|
+
/>
|
|
20
|
+
<TitleCard
|
|
21
|
+
@title={{t
|
|
22
|
+
"ember-gwr.globalLandingPage.quarterlyClosure"
|
|
23
|
+
quarter=(current-quarter "q")
|
|
24
|
+
}}
|
|
25
|
+
@route="quarterly-closure"
|
|
26
|
+
@icon="list-check"
|
|
27
|
+
>
|
|
28
|
+
<:footer>
|
|
29
|
+
<QuarterlyClosure::CardStatus />
|
|
30
|
+
</:footer>
|
|
31
|
+
</TitleCard>
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
{{else}}
|
|
6
6
|
<div uk-alert>
|
|
7
|
-
<a href="" class="uk-alert-close" uk-close><span hidden>{{t
|
|
7
|
+
<a href="" class="uk-alert-close" uk-close><span hidden>{{t
|
|
8
|
+
"ebau-gwr.close"
|
|
9
|
+
}}</span></a>
|
|
8
10
|
<div class="uk-flex-inline uk-flex-middle">
|
|
9
11
|
<div uk-icon="info"></div>
|
|
10
12
|
<div class="uk-margin-small-left">
|
|
11
13
|
{{t "ember-gwr.issues.info"}}
|
|
12
14
|
</div>
|
|
13
|
-
|
|
15
|
+
<ModelErrors::ErrorIndicator @errorCount={{1}} />
|
|
14
16
|
</div>
|
|
15
17
|
</div>
|
|
16
18
|
<h3 class="uk-margin-top">
|
|
@@ -32,119 +34,124 @@
|
|
|
32
34
|
uk-scrollspy="cls: uk-animation-fade; target: .inview-trigger; offset-top: 300"
|
|
33
35
|
>
|
|
34
36
|
<ul class="uk-list uk-list-divider uk-list-large">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<nav
|
|
37
|
+
{{#each this.workBuildings as |building|}}
|
|
38
|
+
<ModelInview
|
|
39
|
+
@model={{building.EGID}}
|
|
40
|
+
@fetchModel={{perform this.fetchModel}}
|
|
41
|
+
as |inview|
|
|
42
|
+
>
|
|
43
|
+
{{#let inview.model as |inviewModel|}}
|
|
44
|
+
<ModelErrors
|
|
45
|
+
@model={{building}}
|
|
46
|
+
@modelId={{building.EGID}}
|
|
47
|
+
@errorModel={{inviewModel.buildingWithErrors}}
|
|
48
|
+
@linkRoute="building.edit.form"
|
|
49
|
+
@linkModels={{array building.EGID}}
|
|
50
|
+
@modelDescription={{building.fullAddressTexts}}
|
|
51
|
+
as |BuildingErrorList|
|
|
52
|
+
>
|
|
53
|
+
{{#if inviewModel.buildingWithErrors}}
|
|
54
|
+
<UkSwitcher
|
|
55
|
+
class="uk-margin-small-top uk-animation-fade"
|
|
56
|
+
as |switcher|
|
|
57
|
+
>
|
|
58
|
+
<switcher.nav @type="subnav" as |nav|>
|
|
59
|
+
<nav.component uk-switcher @divider={{true}} as |tab|>
|
|
60
|
+
{{#if inviewModel.buildingWithErrors.errorList.length}}
|
|
61
|
+
<tab.item>
|
|
62
|
+
{{t "ember-gwr.issues.switcher.issues"}}
|
|
63
|
+
</tab.item>
|
|
64
|
+
{{/if}}
|
|
65
|
+
{{#if inviewModel.entrancesWithErrors.length}}
|
|
66
|
+
<tab.item>
|
|
67
|
+
<div class="uk-flex-inline uk-flex-middle">
|
|
68
|
+
{{t "ember-gwr.issues.switcher.entrances"}}
|
|
69
|
+
<ModelErrors::ErrorIndicator
|
|
70
|
+
@errorCount={{inviewModel.entranceErrorCount}}
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
</tab.item>
|
|
74
|
+
{{/if}}
|
|
75
|
+
{{#if inviewModel.dwellingsWithErrors.length}}
|
|
76
|
+
<tab.item>
|
|
77
|
+
<div class="uk-flex-inline uk-flex-middle">
|
|
78
|
+
{{t "ember-gwr.issues.switcher.dwellings"}}
|
|
79
|
+
<ModelErrors::ErrorIndicator
|
|
80
|
+
@errorCount={{inviewModel.dwellingErrorCount}}
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
</tab.item>
|
|
84
|
+
{{/if}}
|
|
85
|
+
</nav.component>
|
|
86
|
+
</switcher.nav>
|
|
87
|
+
<switcher.content as |content|>
|
|
57
88
|
{{#if inviewModel.buildingWithErrors.errorList.length}}
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
89
|
+
<content.item>
|
|
90
|
+
<li>
|
|
91
|
+
<BuildingErrorList />
|
|
92
|
+
</li>
|
|
93
|
+
</content.item>
|
|
61
94
|
{{/if}}
|
|
62
95
|
{{#if inviewModel.entrancesWithErrors.length}}
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
{{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
96
|
+
<content.item>
|
|
97
|
+
<ul class="uk-list uk-list-divider uk-list-large">
|
|
98
|
+
{{#each
|
|
99
|
+
inviewModel.entrancesWithErrors
|
|
100
|
+
as |entrance|
|
|
101
|
+
}}
|
|
102
|
+
<ModelErrors
|
|
103
|
+
@model={{entrance}}
|
|
104
|
+
@modelId={{entrance.EDID}}
|
|
105
|
+
@errorModel={{entrance}}
|
|
106
|
+
@linkRoute="building.edit.entrance.edit"
|
|
107
|
+
@linkModels={{array
|
|
108
|
+
building.EGID
|
|
109
|
+
entrance.EDID
|
|
110
|
+
}}
|
|
111
|
+
@modelDescription={{entrance.fullAddressText}}
|
|
112
|
+
@smallHeaderIdWidth={{true}}
|
|
113
|
+
/>
|
|
114
|
+
{{/each}}
|
|
115
|
+
</ul>
|
|
116
|
+
</content.item>
|
|
71
117
|
{{/if}}
|
|
72
118
|
{{#if inviewModel.dwellingsWithErrors.length}}
|
|
73
|
-
<
|
|
74
|
-
<
|
|
75
|
-
{{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
119
|
+
<content.item>
|
|
120
|
+
<ul class="uk-list uk-list-divider uk-list-large">
|
|
121
|
+
{{#each
|
|
122
|
+
inviewModel.dwellingsWithErrors
|
|
123
|
+
as |dwelling|
|
|
124
|
+
}}
|
|
125
|
+
<ModelErrors
|
|
126
|
+
@model={{dwelling.dwelling}}
|
|
127
|
+
@modelId={{dwelling.dwelling.EWID}}
|
|
128
|
+
@errorModel={{dwelling.dwelling}}
|
|
129
|
+
@linkRoute="building.edit.dwelling.edit"
|
|
130
|
+
@linkModels={{array
|
|
131
|
+
building.EGID
|
|
132
|
+
dwelling.dwelling.EWID
|
|
133
|
+
}}
|
|
134
|
+
@modelDescription={{concat
|
|
135
|
+
(t "ember-gwr.models.entrance" count=1)
|
|
136
|
+
" "
|
|
137
|
+
dwelling.EDID
|
|
138
|
+
}}
|
|
139
|
+
@smallHeaderIdWidth={{true}}
|
|
140
|
+
/>
|
|
141
|
+
{{/each}}
|
|
142
|
+
</ul>
|
|
143
|
+
</content.item>
|
|
81
144
|
{{/if}}
|
|
82
|
-
</
|
|
83
|
-
</
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
{{/if}}
|
|
92
|
-
{{#if inviewModel.entrancesWithErrors.length}}
|
|
93
|
-
<content.item>
|
|
94
|
-
<ul class="uk-list uk-list-divider uk-list-large">
|
|
95
|
-
{{#each inviewModel.entrancesWithErrors as |entrance|}}
|
|
96
|
-
<ModelErrors
|
|
97
|
-
@model={{entrance}}
|
|
98
|
-
@modelId={{entrance.EDID}}
|
|
99
|
-
@errorModel={{entrance}}
|
|
100
|
-
@linkRoute="building.edit.entrance.edit"
|
|
101
|
-
@linkModels={{array
|
|
102
|
-
this.project.EPROID
|
|
103
|
-
building.EGID
|
|
104
|
-
entrance.EDID
|
|
105
|
-
}}
|
|
106
|
-
@modelDescription={{entrance.fullAddressText}}
|
|
107
|
-
@smallHeaderIdWidth={{true}}
|
|
108
|
-
/>
|
|
109
|
-
{{/each}}
|
|
110
|
-
</ul>
|
|
111
|
-
</content.item>
|
|
112
|
-
{{/if}}
|
|
113
|
-
{{#if inviewModel.dwellingsWithErrors.length}}
|
|
114
|
-
<content.item>
|
|
115
|
-
<ul class="uk-list uk-list-divider uk-list-large">
|
|
116
|
-
{{#each inviewModel.dwellingsWithErrors as |dwelling|}}
|
|
117
|
-
<ModelErrors
|
|
118
|
-
@model={{dwelling.dwelling}}
|
|
119
|
-
@modelId={{dwelling.dwelling.EWID}}
|
|
120
|
-
@errorModel={{dwelling.dwelling}}
|
|
121
|
-
@linkRoute="building.edit.dwelling.edit"
|
|
122
|
-
@linkModels={{array
|
|
123
|
-
this.project.EPROID
|
|
124
|
-
building.EGID
|
|
125
|
-
dwelling.dwelling.EWID
|
|
126
|
-
}}
|
|
127
|
-
@modelDescription={{concat
|
|
128
|
-
(t "ember-gwr.models.entrance" count=1)
|
|
129
|
-
" "
|
|
130
|
-
dwelling.EDID
|
|
131
|
-
}}
|
|
132
|
-
@smallHeaderIdWidth={{true}}
|
|
133
|
-
/>
|
|
134
|
-
{{/each}}
|
|
135
|
-
</ul>
|
|
136
|
-
</content.item>
|
|
137
|
-
{{/if}}
|
|
138
|
-
</switcher.content>
|
|
139
|
-
</UkSwitcher>
|
|
140
|
-
{{else}}
|
|
141
|
-
<ModelErrors::Skeleton />
|
|
142
|
-
{{/if}}
|
|
143
|
-
</ModelErrors>
|
|
144
|
-
{{/let}}
|
|
145
|
-
</ModelInview>
|
|
146
|
-
{{/each}}
|
|
145
|
+
</switcher.content>
|
|
146
|
+
</UkSwitcher>
|
|
147
|
+
{{else}}
|
|
148
|
+
<ModelErrors::Skeleton />
|
|
149
|
+
{{/if}}
|
|
150
|
+
</ModelErrors>
|
|
151
|
+
{{/let}}
|
|
152
|
+
</ModelInview>
|
|
153
|
+
{{/each}}
|
|
147
154
|
</ul>
|
|
148
155
|
</div>
|
|
149
156
|
{{/if}}
|
|
150
|
-
{{/if}}
|
|
157
|
+
{{/if}}
|