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.
Files changed (161) hide show
  1. package/CHANGELOG.md +312 -299
  2. package/README.md +25 -8
  3. package/addon/components/building-preview.hbs +53 -0
  4. package/addon/components/housing-stat-link.hbs +8 -0
  5. package/addon/components/import-modal/building-data.hbs +1 -55
  6. package/addon/components/import-modal/dwelling-data.hbs +3 -3
  7. package/addon/components/import-modal/entrance-data.hbs +1 -1
  8. package/addon/components/import-modal.hbs +1 -4
  9. package/addon/components/link-building-modal.hbs +38 -24
  10. package/addon/components/link-building-modal.js +13 -5
  11. package/addon/components/link-street.hbs +33 -31
  12. package/addon/components/linked-models.hbs +13 -6
  13. package/addon/components/linked-projects.hbs +8 -6
  14. package/addon/components/linked-projects.js +13 -0
  15. package/addon/components/loading.hbs +3 -0
  16. package/addon/components/login-modal.hbs +86 -68
  17. package/addon/components/model-errors/error-indicator.hbs +1 -2
  18. package/addon/components/model-errors/header.hbs +6 -2
  19. package/addon/components/model-errors/list.hbs +13 -4
  20. package/addon/components/model-errors/skeleton-errors.hbs +14 -0
  21. package/addon/components/model-errors/skeleton.hbs +1 -16
  22. package/addon/components/model-errors.hbs +14 -16
  23. package/addon/components/model-form/date.hbs +10 -6
  24. package/addon/components/model-form/diff.hbs +8 -8
  25. package/addon/components/model-form/field.hbs +3 -2
  26. package/addon/components/model-form/field.js +7 -5
  27. package/addon/components/model-form/header/actions.hbs +25 -22
  28. package/addon/components/model-form/header/actions.js +6 -3
  29. package/addon/components/model-form/header/errors.hbs +16 -16
  30. package/addon/components/model-form/header/status-selector/submit-parameters.hbs +2 -1
  31. package/addon/components/model-form/header/status-selector.hbs +15 -3
  32. package/addon/components/model-form/header/status.hbs +2 -1
  33. package/addon/components/model-form/header.hbs +6 -5
  34. package/addon/components/model-form/step.hbs +5 -5
  35. package/addon/components/model-form/submit.hbs +1 -0
  36. package/addon/components/model-form.hbs +110 -77
  37. package/addon/components/model-form.js +38 -2
  38. package/addon/components/model-inview.hbs +2 -7
  39. package/addon/components/project-landing-page.hbs +26 -0
  40. package/addon/components/project-nav.hbs +65 -0
  41. package/addon/components/project-nav.js +27 -0
  42. package/addon/components/quarterly-closure/card-status.hbs +11 -0
  43. package/addon/components/quarterly-closure/card-status.js +36 -0
  44. package/addon/components/quarterly-closure/close-survey-button.hbs +10 -0
  45. package/addon/components/quarterly-closure/close-survey-button.js +46 -0
  46. package/addon/components/quarterly-closure/disabled-form-info.hbs +4 -0
  47. package/addon/components/quarterly-closure/error-list/project-errors.hbs +22 -0
  48. package/addon/components/quarterly-closure/error-list/project-errors.js +41 -0
  49. package/addon/components/quarterly-closure/error-list/survey-department-errors.hbs +22 -0
  50. package/addon/components/quarterly-closure/error-list/survey-department-errors.js +28 -0
  51. package/addon/components/quarterly-closure/error-list.hbs +4 -0
  52. package/addon/components/quarterly-closure/status.hbs +8 -0
  53. package/addon/components/quarterly-closure/status.js +6 -0
  54. package/addon/components/quarterly-closure/title.hbs +15 -0
  55. package/addon/components/quarterly-closure/title.js +11 -0
  56. package/addon/components/quarterly-closure.hbs +9 -0
  57. package/addon/components/quarterly-closure.js +6 -0
  58. package/addon/components/search/filters.hbs +128 -106
  59. package/addon/components/search/filters.js +13 -59
  60. package/addon/components/search/result-table/head/header.hbs +1 -1
  61. package/addon/components/search/result-table/head.hbs +1 -1
  62. package/addon/components/search/result-table/load-more.hbs +5 -0
  63. package/addon/components/search/result-table/row/field.hbs +1 -1
  64. package/addon/components/search/result-table/row.hbs +12 -13
  65. package/addon/components/search/result-table.hbs +3 -2
  66. package/addon/components/search.hbs +29 -0
  67. package/addon/components/search.js +96 -0
  68. package/addon/components/soon-available.hbs +7 -0
  69. package/addon/components/sub-nav.hbs +5 -8
  70. package/addon/components/title-card.hbs +28 -0
  71. package/addon/components/validated-form-error.hbs +4 -0
  72. package/addon/components/validated-form-error.js +14 -0
  73. package/addon/controllers/building/edit/dwelling/edit.js +2 -3
  74. package/addon/controllers/building/edit/entrance/edit/index.js +2 -3
  75. package/addon/controllers/building/edit/entrance/edit/link-street.js +4 -1
  76. package/addon/controllers/building/edit/form.js +57 -39
  77. package/addon/controllers/import.js +8 -64
  78. package/addon/controllers/project/form.js +3 -4
  79. package/addon/controllers/project.js +22 -44
  80. package/addon/controllers/search-building.js +39 -14
  81. package/addon/controllers/search-project.js +24 -19
  82. package/addon/helpers/current-quarter.js +8 -0
  83. package/addon/helpers/current-route-is-not.js +7 -0
  84. package/addon/helpers/current-route-is.js +15 -0
  85. package/addon/helpers/is-set.js +9 -0
  86. package/addon/helpers/is-unset.js +4 -4
  87. package/addon/helpers/show-model-field.js +4 -4
  88. package/addon/models/check-construction-project-response.js +20 -0
  89. package/addon/models/check-survey-department-response.js +20 -0
  90. package/addon/models/quarterly-closure-status.js +52 -0
  91. package/addon/modifiers/in-viewport.js +14 -0
  92. package/addon/modifiers/inverse-background.js +21 -0
  93. package/addon/resources/import.js +69 -0
  94. package/addon/routes/building/edit.js +1 -1
  95. package/addon/routes/building/new.js +1 -1
  96. package/addon/routes/building.js +7 -2
  97. package/addon/routes/global-landing-page.js +9 -0
  98. package/addon/routes/project/errors.js +1 -1
  99. package/addon/routes/project/form.js +1 -1
  100. package/addon/routes/project/new.js +1 -1
  101. package/addon/routes/project.js +1 -1
  102. package/addon/routes/quarterly-closure.js +3 -0
  103. package/addon/routes/search-building.js +7 -2
  104. package/addon/routes.js +7 -3
  105. package/addon/services/auth-fetch.js +6 -7
  106. package/addon/services/construction-project.js +10 -0
  107. package/addon/services/gwr.js +19 -7
  108. package/addon/services/quarterly-closure.js +147 -0
  109. package/addon/templates/building/edit/dwelling/edit.hbs +22 -19
  110. package/addon/templates/building/edit/dwelling/new.hbs +1 -1
  111. package/addon/templates/building/edit/dwelling.hbs +1 -1
  112. package/addon/templates/building/edit/dwellings.hbs +3 -4
  113. package/addon/templates/building/edit/entrance/edit/index.hbs +32 -18
  114. package/addon/templates/building/edit/entrance/edit/link-street.hbs +79 -75
  115. package/addon/templates/building/edit/entrance/edit.hbs +1 -1
  116. package/addon/templates/building/edit/entrance/new.hbs +1 -1
  117. package/addon/templates/building/edit/entrance.hbs +6 -5
  118. package/addon/templates/building/edit/entrances.hbs +4 -6
  119. package/addon/templates/building/edit/form.hbs +127 -112
  120. package/addon/templates/building/edit/index.hbs +1 -1
  121. package/addon/templates/building/edit.hbs +33 -23
  122. package/addon/templates/building.hbs +1 -1
  123. package/addon/templates/global-landing-page.hbs +34 -0
  124. package/addon/templates/project/errors.hbs +116 -109
  125. package/addon/templates/project/form.hbs +96 -63
  126. package/addon/templates/project/index.hbs +0 -1
  127. package/addon/templates/project/linked-buildings.hbs +7 -10
  128. package/addon/templates/project.hbs +12 -73
  129. package/addon/templates/quarterly-closure.hbs +1 -0
  130. package/addon/templates/search-building.hbs +202 -134
  131. package/addon/templates/search-project.hbs +98 -85
  132. package/addon/validations/building-work.js +106 -97
  133. package/addon/validations/extended-search-fields.js +27 -0
  134. package/addon/validations/realestate-identification.js +1 -0
  135. package/addon/xml/helpers.js +3 -0
  136. package/addon/xml/templates/building.js +1 -1
  137. package/addon/xml/templates/construction-project.js +1 -1
  138. package/app/styles/ember-ebau-gwr.scss +19 -0
  139. package/config/environment.js +4 -0
  140. package/config/icons.js +15 -0
  141. package/package.json +19 -15
  142. package/translations/de.yaml +29 -26
  143. package/translations/fr.yaml +11 -19
  144. package/translations/quarterly-closure/de.yaml +59 -0
  145. package/translations/validation-errors/de.yaml +37 -0
  146. package/addon/components/landing-page.hbs +0 -24
  147. package/addon/components/project-form/checkbox.hbs +0 -11
  148. package/addon/components/project-form/checkbox.js +0 -9
  149. package/addon/components/project-form/date.hbs +0 -10
  150. package/addon/components/project-form/diff.hbs +0 -43
  151. package/addon/components/project-form/diff.js +0 -18
  152. package/addon/components/project-form/field.hbs +0 -32
  153. package/addon/components/project-form/field.js +0 -59
  154. package/addon/components/project-form/input.hbs +0 -7
  155. package/addon/components/project-form/label.hbs +0 -17
  156. package/addon/components/project-form/select.hbs +0 -17
  157. package/addon/components/project-form/textarea.hbs +0 -7
  158. package/addon/components/project-form.hbs +0 -19
  159. package/addon/components/project-form.js +0 -14
  160. package/addon/components/sub-nav.js +0 -18
  161. 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
- <LinkTo
5
- @route="project.linked-buildings"
6
- @model={{this.model.projectId}}
7
- class="uk-link-muted uk-margin-small-bottom"
8
- >
9
- <span uk-icon="icon: arrow-left"></span>
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
- <div class="uk-flex uk-flex-center uk-flex-middle uk-margin-large-top">
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
- @validations={{this.BuildingWorkValidations}}
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
- @headerModelName="building"
30
- @hasStatus={{true}}
31
- @import={{this.import}}
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
- as |Field changeset|
41
+ @disabled={{this.quarterlyClosure.disableForms}}
42
+ as |Field changeset import|
41
43
  >
42
- {{#unless this.buildingWork.isNew}}
43
- <h3>
44
- {{t
45
- "ember-gwr.building.sections.kindOfWorkForProject"
46
- projectId=@model.projectId
47
- }}
48
- </h3>
49
- <div class="uk-flex uk-margin">
50
- <div class="uk-width-1-2">
51
- <span class="uk-form-label">{{t
52
- "ember-gwr.buildingWork.kindOfWork"
53
- }}:</span>
54
- <span>{{t
55
- (concat
56
- "ember-gwr.buildingWork.kindOfWorkOptions."
57
- this.buildingWork.kindOfWork
58
- )
59
- }}</span>
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
- <div class="uk-width-1-2">
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
- {{#if (eq changeset.kindOfWork 6002)}}
71
- <div class="uk-flex">
72
- <div class="uk-width-1-2">
73
- <Field
74
- @attr="energeticRestauration"
75
- @type="checkbox"
76
- @translationBase="ember-gwr.buildingWork"
77
- />
78
- <Field
79
- @attr="renovationHeatingsystem"
80
- @type="checkbox"
81
- @translationBase="ember-gwr.buildingWork"
82
- />
83
- <Field
84
- @attr="innerConversionRenovation"
85
- @type="checkbox"
86
- @translationBase="ember-gwr.buildingWork"
87
- />
88
- <Field
89
- @attr="conversion"
90
- @type="checkbox"
91
- @translationBase="ember-gwr.buildingWork"
92
- />
93
- <Field
94
- @attr="extensionHeighteningHeated"
95
- @type="checkbox"
96
- @translationBase="ember-gwr.buildingWork"
97
- />
98
- </div>
99
- <div class="uk-width-1-2">
100
- <Field
101
- @attr="extensionHeighteningNotHeated"
102
- @type="checkbox"
103
- @translationBase="ember-gwr.buildingWork"
104
- />
105
- <Field
106
- @attr="thermicSolarFacility"
107
- @type="checkbox"
108
- @translationBase="ember-gwr.buildingWork"
109
- />
110
- <Field
111
- @attr="photovoltaicSolarFacility"
112
- @type="checkbox"
113
- @translationBase="ember-gwr.buildingWork"
114
- />
115
- <Field
116
- @attr="otherWorks"
117
- @type="checkbox"
118
- @translationBase="ember-gwr.buildingWork"
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
- </div>
122
- {{/if}}
123
- <hr />
125
+ {{/if}}
126
+ <hr />
124
127
 
125
- <h3>
126
- {{t "ember-gwr.building.sections.building"}}
127
- </h3>
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) this.import)}}
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 uk-accordion="active: {{if (or
318
+ <ul
319
+ uk-accordion="active: {{if
320
+ (or
316
321
  (show-model-field
317
- "building.thermotechnicalDeviceForHeating2.heatGeneratorHeating"
322
+ 'building.thermotechnicalDeviceForHeating2.heatGeneratorHeating'
318
323
  changeset
319
- this.import
324
+ import
320
325
  )
321
326
  (show-model-field
322
- "building.thermotechnicalDeviceForHeating2.energySourceHeating"
327
+ 'building.thermotechnicalDeviceForHeating2.energySourceHeating'
323
328
  changeset
324
- this.import
325
- )) "0" false}}"
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 uk-accordion="active: {{if (or
403
+ <ul
404
+ uk-accordion="active: {{if
405
+ (or
395
406
  (show-model-field
396
- "building.thermotechnicalDeviceForHeating2.heatGeneratorHeating"
407
+ 'building.thermotechnicalDeviceForHeating2.heatGeneratorHeating'
397
408
  changeset
398
- this.import
409
+ import
399
410
  )
400
411
  (show-model-field
401
- "building.thermotechnicalDeviceForHeating2.energySourceHeating"
412
+ 'building.thermotechnicalDeviceForHeating2.energySourceHeating'
402
413
  changeset
403
- this.import
404
- )) "0" false}}"
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
- <SubNav
2
- @backRoute="project.linked-buildings"
3
- @backModel={{@model.projectId}}
4
- @backText={{t "ember-gwr.building.backToProject"}}
5
- @hiddenOnRoute={{array "entrance" "dwelling"}}
6
- @links={{array
7
- (hash
8
- route="building.edit.form"
9
- models=(array @model.buildingId)
10
- text=(t "ember-gwr.models.building" count=1)
11
- )
12
- (hash
13
- route="building.edit.entrances"
14
- models=(array @model.buildingId)
15
- text=(t "ember-gwr.models.entrance" count=2)
16
- )
17
- (hash
18
- route="building.edit.dwellings"
19
- models=(array @model.buildingId)
20
- text=(t "ember-gwr.models.dwelling" count=2)
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 "ebau-gwr.close"}}</span></a>
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
- <ModelErrors::ErrorIndicator @errorCount={{1}} />
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
- {{#each this.workBuildings as |building|}}
36
- <ModelInview
37
- @model={{building.EGID}}
38
- @fetchModel={{perform this.fetchModel}}
39
- as |inview|
40
- >
41
- {{#let inview.model as |inviewModel|}}
42
- <ModelErrors
43
- @model={{building}}
44
- @modelId={{building.EGID}}
45
- @errorModel={{inviewModel.buildingWithErrors}}
46
- @linkRoute="building.edit.form"
47
- @linkModels={{array this.project.EPROID building.EGID}}
48
- @modelDescription={{building.fullAddressTexts
49
- }} as |BuildingErrorList|
50
- >
51
- {{#if inviewModel.buildingWithErrors}}
52
- <UkSwitcher
53
- class="uk-margin-small-top uk-animation-fade" as |switcher|
54
- >
55
- <switcher.nav @type="subnav" as |nav|>
56
- <nav.component uk-switcher @divider={{true}} as |tab|>
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
- <tab.item>
59
- {{t "ember-gwr.issues.switcher.issues"}}
60
- </tab.item>
89
+ <content.item>
90
+ <li>
91
+ <BuildingErrorList />
92
+ </li>
93
+ </content.item>
61
94
  {{/if}}
62
95
  {{#if inviewModel.entrancesWithErrors.length}}
63
- <tab.item>
64
- <div class="uk-flex-inline uk-flex-middle">
65
- {{t "ember-gwr.issues.switcher.entrances"}}
66
- <ModelErrors::ErrorIndicator
67
- @errorCount={{inviewModel.entranceErrorCount}}
68
- />
69
- </div>
70
- </tab.item>
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
- <tab.item>
74
- <div class="uk-flex-inline uk-flex-middle">
75
- {{t "ember-gwr.issues.switcher.dwellings"}}
76
- <ModelErrors::ErrorIndicator
77
- @errorCount={{inviewModel.dwellingErrorCount}}
78
- />
79
- </div>
80
- </tab.item>
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
- </nav.component>
83
- </switcher.nav>
84
- <switcher.content as |content|>
85
- {{#if inviewModel.buildingWithErrors.errorList.length}}
86
- <content.item>
87
- <li>
88
- <BuildingErrorList />
89
- </li>
90
- </content.item>
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}}