ember-ebau-gwr 2.7.1 → 3.2.0
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/.github/workflows/release.yml +2 -0
- package/CHANGELOG.md +95 -0
- package/addon/components/back-route.hbs +10 -0
- package/addon/components/import-modal/building-data.hbs +64 -0
- package/addon/components/import-modal/dwelling-data.hbs +30 -0
- package/addon/components/import-modal/entrance-data.hbs +14 -0
- package/addon/components/import-modal.hbs +54 -0
- package/addon/components/import-modal.js +6 -0
- package/addon/components/link-building-modal.hbs +1 -1
- package/addon/components/link-building-modal.js +2 -0
- package/addon/components/link-street.hbs +105 -0
- package/addon/components/link-street.js +24 -0
- package/addon/components/linked-models.hbs +12 -6
- package/addon/components/linked-models.js +6 -0
- package/addon/components/linked-projects.hbs +1 -1
- package/addon/components/linked-projects.js +6 -0
- package/addon/components/model-errors/error-indicator.hbs +3 -1
- package/addon/components/model-errors/header.hbs +4 -2
- package/addon/components/model-errors.hbs +1 -0
- package/addon/components/model-form/date.hbs +1 -0
- package/addon/components/model-form/date.js +6 -6
- package/addon/components/model-form/diff.hbs +40 -27
- package/addon/components/model-form/field.hbs +13 -8
- package/addon/components/model-form/field.js +36 -9
- package/addon/components/model-form/header/actions.hbs +70 -36
- package/addon/components/model-form/header/actions.js +6 -0
- package/addon/components/model-form/header/status-selector/submit-parameters.hbs +1 -1
- package/addon/components/model-form/header/status-selector.hbs +1 -1
- package/addon/components/model-form/header.hbs +4 -2
- package/addon/components/model-form/submit-errors.hbs +41 -23
- package/addon/components/model-form.hbs +6 -5
- package/addon/components/model-form.js +25 -5
- package/addon/components/model-inview.hbs +8 -0
- package/addon/components/model-inview.js +12 -0
- package/addon/components/project-form/date.hbs +1 -1
- package/addon/components/project-form/field.hbs +1 -1
- package/addon/components/project-form/field.js +5 -1
- package/addon/components/search/filters.hbs +0 -5
- package/addon/components/search/filters.js +1 -3
- package/addon/components/sub-nav.hbs +5 -10
- package/addon/controllers/building/edit/dwelling/edit.js +27 -32
- package/addon/controllers/building/edit/dwellings.js +1 -1
- package/addon/controllers/building/edit/entrance/edit/index.js +26 -13
- package/addon/controllers/building/edit/entrance/edit/link-street.js +45 -20
- package/addon/controllers/building/edit/entrances.js +18 -2
- package/addon/controllers/building/edit/form.js +29 -44
- package/addon/controllers/import.js +70 -0
- package/addon/controllers/project/errors.js +25 -29
- package/addon/controllers/project/form.js +35 -48
- package/addon/controllers/project.js +2 -1
- package/addon/helpers/housing-stat-link.js +13 -0
- package/addon/helpers/is-unset.js +7 -0
- package/addon/helpers/show-model-field.js +13 -0
- package/addon/models/address.js +39 -9
- package/addon/models/building-entrance.js +17 -7
- package/addon/models/building.js +74 -75
- package/addon/models/client.js +1 -1
- package/addon/models/construction-project.js +18 -16
- package/addon/models/date-partially-known.js +1 -1
- package/addon/models/dwelling.js +28 -1
- package/addon/models/heating.js +1 -1
- package/addon/models/identification.js +2 -1
- package/addon/models/options.js +251 -1
- package/addon/models/organisation-identification.js +6 -3
- package/addon/models/realestate-identification.js +0 -6
- package/addon/models/street.js +2 -0
- package/addon/models/xml-model.js +18 -7
- package/addon/models.js +2 -1
- package/addon/routes/building/edit/entrance/edit/index.js +0 -2
- package/addon/routes/building/edit/entrance/edit/link-street.js +10 -1
- package/addon/routes/building/edit/entrance/new.js +9 -16
- package/addon/routes/building/edit/index.js +8 -1
- package/addon/routes/building/new.js +10 -1
- package/addon/routes/project/form.js +5 -0
- package/addon/routes/project/new.js +3 -2
- package/addon/services/building-entrance.js +13 -9
- package/addon/services/building.js +195 -193
- package/addon/services/construction-project.js +140 -152
- package/addon/services/gwr.js +47 -2
- package/addon/services/street.js +10 -0
- package/addon/templates/building/edit/dwelling/edit.hbs +29 -6
- package/addon/templates/building/edit/dwellings.hbs +7 -4
- package/addon/templates/building/edit/entrance/edit/index.hbs +49 -84
- package/addon/templates/building/edit/entrance/edit/link-street.hbs +41 -12
- package/addon/templates/building/edit/entrances.hbs +6 -3
- package/addon/templates/building/edit/form.hbs +75 -21
- package/addon/templates/project/errors.hbs +121 -132
- package/addon/templates/project/form.hbs +126 -97
- package/addon/templates/project/linked-buildings.hbs +13 -20
- package/addon/templates/project.hbs +29 -19
- package/addon/templates/search-building.hbs +6 -0
- package/addon/templates/search-project.hbs +6 -0
- package/addon/utils.js +8 -0
- package/addon/validations/building-entrance.js +6 -4
- package/addon/validations/building-work.js +131 -11
- package/addon/validations/construction-project.js +154 -6
- package/addon/validations/coordinates.js +2 -2
- package/addon/validations/dwelling.js +61 -6
- package/addon/validations/realestate-identification.js +9 -9
- package/addon/validations/status/status-project-change.js +1 -1
- package/addon/validations/status/status-project-correction.js +1 -1
- package/addon/validators/range-state.js +27 -0
- package/addon/xml/helpers.js +4 -0
- package/addon/xml/templates/building-entrance.js +0 -14
- package/addon/xml/templates/building.js +0 -6
- package/addon/xml/templates/construction-project.js +2 -9
- package/addon/xml/templates/street.js +1 -7
- package/app/styles/ember-ebau-gwr.scss +32 -5
- package/config/environment.js +3 -0
- package/package.json +2 -2
- package/translations/building/de.yaml +13 -8
- package/translations/building-entrance/de.yaml +4 -10
- package/translations/construction-project/de.yaml +270 -15
- package/translations/de.yaml +46 -13
- package/translations/dwelling/de.yaml +14 -0
- package/translations/locality/de.yaml +2 -0
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
@validations={{this.BuildingEntranceValidations}}
|
|
10
10
|
@onSubmit={{this.saveBuildingEntrance}}
|
|
11
11
|
@translationBase="ember-gwr.buildingEntrance.fields"
|
|
12
|
-
@disabled={{not this.buildingEntrance.street.ESID}}
|
|
13
12
|
@errors={{this.errors}}
|
|
14
13
|
@headerModel={{this.buildingEntrance}}
|
|
15
14
|
@headerModelId={{this.buildingEntrance.EDID}}
|
|
@@ -17,6 +16,8 @@
|
|
|
17
16
|
@projectId={{this.router.currentRoute.attributes.projectId}}
|
|
18
17
|
@headerModelName="entrance"
|
|
19
18
|
@hasStatus={{false}}
|
|
19
|
+
@import={{this.import}}
|
|
20
|
+
@disabled={{this.hasNoStreet}}
|
|
20
21
|
as |Field|
|
|
21
22
|
>
|
|
22
23
|
{{#unless this.buildingEntrance.isNew}}
|
|
@@ -28,107 +29,71 @@
|
|
|
28
29
|
@required={{true}}
|
|
29
30
|
@disabled={{not this.buildingEntrance.isNew}}
|
|
30
31
|
/>
|
|
32
|
+
<Field
|
|
33
|
+
@attr="locality.swissZipCode"
|
|
34
|
+
@type="number"
|
|
35
|
+
@disabled={{not this.buildingEntrance.isNew}}
|
|
36
|
+
@required={{true}}
|
|
37
|
+
/>
|
|
31
38
|
{{#unless this.buildingEntrance.isNew}}
|
|
32
|
-
<Field
|
|
33
|
-
@attr="locality.swissZipCode"
|
|
34
|
-
@type="number"
|
|
35
|
-
@disabled={{not this.buildingEntrance.isNew}}
|
|
36
|
-
/>
|
|
37
39
|
<Field
|
|
38
40
|
@attr="locality.swissZipCodeAddOn"
|
|
39
41
|
@type="number"
|
|
40
42
|
@disabled={{not this.buildingEntrance.isNew}}
|
|
41
43
|
/>
|
|
42
44
|
{{/unless}}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@min="1070000.0"
|
|
53
|
-
@max="1300000.999"
|
|
54
|
-
@disabled={{true}}
|
|
55
|
-
/>
|
|
56
|
-
<Field
|
|
57
|
-
@attr="coordinates.east"
|
|
58
|
-
@type="number"
|
|
59
|
-
@step="0.001"
|
|
60
|
-
@min="2480000.0"
|
|
61
|
-
@max="2840000.999"
|
|
62
|
-
@disabled={{true}}
|
|
63
|
-
/>
|
|
64
|
-
<Field
|
|
65
|
-
@attr="coordinates.originOfCoordinates"
|
|
66
|
-
@type="select"
|
|
67
|
-
@convertValueTo="number"
|
|
68
|
-
@gwrEnumOptions={{this.Models.Coordinates.originOfCoordinatesOptions}}
|
|
69
|
-
@disabled={{true}}
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
|
-
<div class="uk-flex uk-flex-between">
|
|
73
|
-
<span>
|
|
74
|
-
{{! this is needed since the h2 selector is * + h2}}
|
|
75
|
-
<span></span>
|
|
76
|
-
<h2>{{t "ember-gwr.buildingEntrance.street"}}</h2>
|
|
77
|
-
</span>
|
|
78
|
-
<span>
|
|
79
|
-
<LinkTo
|
|
80
|
-
class="uk-button
|
|
81
|
-
{{if
|
|
82
|
-
this.buildingEntrance.isNew
|
|
83
|
-
"uk-button-primary"
|
|
84
|
-
"uk-button-default"
|
|
85
|
-
}}"
|
|
86
|
-
@route="building.edit.entrance.edit.link-street"
|
|
87
|
-
@models={{if this.buildingEntrance.isNew (array "new") (array)}}
|
|
88
|
-
>
|
|
89
|
-
{{t
|
|
90
|
-
(if
|
|
91
|
-
this.buildingEntrance.isNew
|
|
92
|
-
"ember-gwr.buildingEntrance.linkStreet.link"
|
|
93
|
-
"ember-gwr.buildingEntrance.linkStreet.change"
|
|
94
|
-
)
|
|
95
|
-
}}
|
|
96
|
-
</LinkTo>
|
|
97
|
-
</span>
|
|
98
|
-
</div>
|
|
99
|
-
{{#if this.buildingEntrance.street.isNew}}
|
|
100
|
-
<div uk-alert class="uk-alert-warning">{{t
|
|
101
|
-
"ember-gwr.buildingEntrance.streetHint"
|
|
102
|
-
}}</div>
|
|
103
|
-
{{else}}
|
|
104
|
-
<Field @attr="street.ESID" @disabled={{true}} readonly />
|
|
45
|
+
{{!-- API rejects any modification of the buildingEntranceNo or isOfficial
|
|
46
|
+
fields on building entrances that are not linked to a street. --}}
|
|
47
|
+
<div
|
|
48
|
+
uk-tooltip="title: {{if
|
|
49
|
+
this.hasNoStreet
|
|
50
|
+
(t "ember-gwr.buildingEntrance.missingStreetInfo")
|
|
51
|
+
}}
|
|
52
|
+
; container: {{this.config.modalContainer}}; pos: top-left"
|
|
53
|
+
>
|
|
105
54
|
<Field
|
|
106
|
-
@attr="
|
|
107
|
-
@disabled={{
|
|
108
|
-
readonly
|
|
55
|
+
@attr="buildingEntranceNo"
|
|
56
|
+
@disabled={{this.hasNoStreet}}
|
|
109
57
|
/>
|
|
58
|
+
<Field
|
|
59
|
+
@attr="isOfficialAddress"
|
|
60
|
+
@type="checkbox"
|
|
61
|
+
@disabled={{this.hasNoStreet}}
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
{{#unless this.buildingEntrance.isNew}}
|
|
65
|
+
<h3>
|
|
66
|
+
{{t "ember-gwr.buildingEntrance.coordinates"}}
|
|
67
|
+
</h3>
|
|
110
68
|
<Field
|
|
111
|
-
@attr="
|
|
112
|
-
@type="
|
|
113
|
-
@
|
|
114
|
-
@
|
|
69
|
+
@attr="coordinates.north"
|
|
70
|
+
@type="number"
|
|
71
|
+
@step="0.001"
|
|
72
|
+
@min="1070000.0"
|
|
73
|
+
@max="1300000.999"
|
|
115
74
|
@disabled={{true}}
|
|
116
|
-
readonly
|
|
117
75
|
/>
|
|
118
76
|
<Field
|
|
119
|
-
@attr="
|
|
77
|
+
@attr="coordinates.east"
|
|
120
78
|
@type="number"
|
|
79
|
+
@step="0.001"
|
|
80
|
+
@min="2480000.0"
|
|
81
|
+
@max="2840000.999"
|
|
121
82
|
@disabled={{true}}
|
|
122
|
-
readonly
|
|
123
83
|
/>
|
|
124
84
|
<Field
|
|
125
|
-
@attr="
|
|
126
|
-
@type="
|
|
85
|
+
@attr="coordinates.originOfCoordinates"
|
|
86
|
+
@type="select"
|
|
87
|
+
@convertValueTo="number"
|
|
88
|
+
@gwrEnumOptions={{this.Models.Coordinates.originOfCoordinatesOptions}}
|
|
127
89
|
@disabled={{true}}
|
|
128
|
-
readonly
|
|
129
90
|
/>
|
|
130
|
-
|
|
131
|
-
|
|
91
|
+
<LinkStreet
|
|
92
|
+
@fieldComponent={{Field}}
|
|
93
|
+
@buildingEntrance={{this.buildingEntrance}}
|
|
94
|
+
@translationBase="ember-gwr.buildingEntrance.fields"
|
|
95
|
+
/>
|
|
96
|
+
{{/unless}}
|
|
132
97
|
</ModelForm>
|
|
133
98
|
{{/if}}
|
|
134
|
-
</div>
|
|
99
|
+
</div>
|
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
<SubNav
|
|
2
2
|
@backRoute={{this.backRoute}}
|
|
3
|
-
@backText={{
|
|
3
|
+
@backText={{this.backRouteLabel}}
|
|
4
4
|
/>
|
|
5
5
|
<h1>
|
|
6
|
-
{{t "ember-gwr.
|
|
6
|
+
{{t "ember-gwr.components.linkStreet.heading"}}
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
9
|
<Search::Filters
|
|
10
10
|
@search={{this.search}}
|
|
11
|
-
@searchLabel={{t "ember-gwr.
|
|
11
|
+
@searchLabel={{t "ember-gwr.components.linkStreet.search"}}
|
|
12
12
|
@baseQuery={{this.baseQuery}}
|
|
13
13
|
as |Field|
|
|
14
14
|
>
|
|
15
|
-
<div class="uk-flex uk-flex-
|
|
16
|
-
<div class="uk-
|
|
17
|
-
<div class="uk-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<div class="uk-flex uk-flex-column uk-flex-wrap">
|
|
16
|
+
<div class="uk-flex uk-flex-between uk-flex-bottom uk-flex-wrap">
|
|
17
|
+
<div class="uk-width-expand uk-width-1">
|
|
18
|
+
<div class="uk-margin-right">
|
|
19
|
+
<Field
|
|
20
|
+
@attr="locality.name.nameLong"
|
|
21
|
+
@translationBase="ember-gwr"
|
|
22
|
+
@disabled={{true}}
|
|
23
|
+
@value={{this.locality}}
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="uk-width-small uk-width-1">
|
|
28
|
+
<div class="uk-margin-right">
|
|
29
|
+
<Field
|
|
30
|
+
@attr="locality.swissZipCode"
|
|
31
|
+
@translationBase="ember-gwr"
|
|
32
|
+
@disabled={{true}}
|
|
33
|
+
@value={{this.PLZ4}}
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="uk-width-small uk-width-1">
|
|
38
|
+
<Field
|
|
39
|
+
@attr="locality.swissZipCodeAddOn"
|
|
40
|
+
@translationBase="ember-gwr"
|
|
41
|
+
@disabled={{true}}
|
|
42
|
+
@value={{this.PLZ6}}
|
|
21
43
|
/>
|
|
22
44
|
</div>
|
|
23
45
|
</div>
|
|
24
|
-
<div class="uk-width-
|
|
25
|
-
<Field
|
|
46
|
+
<div class="uk-width-expand uk-width-1">
|
|
47
|
+
<Field
|
|
48
|
+
@attr="description.descriptionLong"
|
|
49
|
+
@translationBase="ember-gwr.street"
|
|
50
|
+
/>
|
|
26
51
|
</div>
|
|
27
52
|
</div>
|
|
28
53
|
|
|
@@ -37,7 +62,9 @@
|
|
|
37
62
|
<Search::ResultTable::Head as |Header|>
|
|
38
63
|
<Header class="uk-table-shrink" @label={{t "ember-gwr.street.ESID"}} />
|
|
39
64
|
<Header @label={{t "ember-gwr.street.description.descriptionLong"}} />
|
|
40
|
-
<Header @label={{t "ember-gwr.locality.name.nameLong"}} />
|
|
65
|
+
<Header class="uk-table-shrink" @label={{t "ember-gwr.locality.name.nameLong"}} />
|
|
66
|
+
<Header class="uk-table-shrink" @label={{t "ember-gwr.locality.swissZipCode"}} />
|
|
67
|
+
<Header class="uk-table-shrink" @label={{t "ember-gwr.locality.swissZipCodeAddOn"}} />
|
|
41
68
|
</Search::ResultTable::Head>
|
|
42
69
|
<Row as |Field model|>
|
|
43
70
|
<Field @attr="ESID" as |value|>
|
|
@@ -51,6 +78,8 @@
|
|
|
51
78
|
</Field>
|
|
52
79
|
<Field @attr="description.descriptionLong" />
|
|
53
80
|
<Field @attr="locality.name.nameLong" />
|
|
81
|
+
<Field @attr="locality.swissZipCode" />
|
|
82
|
+
<Field @attr="locality.swissZipCodeAddOn" />
|
|
54
83
|
</Row>
|
|
55
84
|
</Search::ResultTable>
|
|
56
85
|
{{/if}}
|
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
{{else}}
|
|
7
7
|
<LinkedModels
|
|
8
|
-
@models={{this.
|
|
8
|
+
@models={{this.entrances}}
|
|
9
9
|
@modelName="entrance"
|
|
10
10
|
@newRoute="building.edit.entrance.new"
|
|
11
11
|
{{!--
|
|
12
12
|
TODO removing a entrance is not allowed if there is still a dwelling attached to it
|
|
13
|
-
We also cannot remove an entrance if there is only one.
|
|
14
|
-
|
|
13
|
+
We also cannot remove an entrance if there is only one. This only applies for active
|
|
14
|
+
instances of dwellings and building entrances. Since building entrance deactivation
|
|
15
|
+
is an asynchronous process, we should check the mutation status of deactivated
|
|
16
|
+
building entrances and dwellings, to ensure that the requirements hold.
|
|
15
17
|
--}}
|
|
18
|
+
@removeLink={{if (gt this.entrances.length 1) this.removeEntranceLink}}
|
|
16
19
|
as |model|
|
|
17
20
|
>
|
|
18
21
|
<td class="uk-table-shrink">
|
|
@@ -28,13 +28,14 @@
|
|
|
28
28
|
@projectId={{this.model.projectId}}
|
|
29
29
|
@headerModelName="building"
|
|
30
30
|
@hasStatus={{true}}
|
|
31
|
+
@import={{this.import}}
|
|
31
32
|
@modelStatusOptions={{this.buildingStatusOptions}}
|
|
32
33
|
@nextValidStates={{this.nextValidStates}}
|
|
33
34
|
@onStatusChange={{this.transitionState}}
|
|
34
35
|
@onStatusCorrection={{this.correctState}}
|
|
35
36
|
@getChangeParameters={{this.getChangeParameters}}
|
|
36
37
|
@getCorrectionParameters={{this.getCorrectionParameters}}
|
|
37
|
-
@getChangeHint={{this.getChangeHint}}
|
|
38
|
+
@getChangeHint={{fn this.gwr.getChangeHint this.buildingAPI.cacheClass}}
|
|
38
39
|
@modelStatusField="buildingStatus"
|
|
39
40
|
as |Field changeset|
|
|
40
41
|
>
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
}}
|
|
47
48
|
</h3>
|
|
48
49
|
<div class="uk-flex uk-margin">
|
|
49
|
-
<div class="uk-width-1-2
|
|
50
|
+
<div class="uk-width-1-2">
|
|
50
51
|
<span class="uk-form-label">{{t
|
|
51
52
|
"ember-gwr.buildingWork.kindOfWork"
|
|
52
53
|
}}:</span>
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
)
|
|
58
59
|
}}</span>
|
|
59
60
|
</div>
|
|
60
|
-
<div class="uk-width-1-2
|
|
61
|
+
<div class="uk-width-1-2">
|
|
61
62
|
<span class="uk-form-label">{{t
|
|
62
63
|
"ember-gwr.buildingWork.ARBID"
|
|
63
64
|
}}:</span>
|
|
@@ -141,6 +142,36 @@
|
|
|
141
142
|
@gwrEnumOptions={{this.Models.Building.buildingClassOptions}}
|
|
142
143
|
/>
|
|
143
144
|
|
|
145
|
+
|
|
146
|
+
{{#if this.buildingWork.building.isNew}}
|
|
147
|
+
<h3 class="uk-margin-remove-bottom">
|
|
148
|
+
{{t "ember-gwr.building.buildingEntrance.mainEntrance"}}
|
|
149
|
+
</h3>
|
|
150
|
+
<small class="uk-margin-bottom">
|
|
151
|
+
{{t "ember-gwr.building.buildingEntrance.info"}}
|
|
152
|
+
</small>
|
|
153
|
+
<Field
|
|
154
|
+
@attr="building.buildingEntrance.locality.name.nameLong"
|
|
155
|
+
@required={{true}}
|
|
156
|
+
@label="ember-gwr.buildingEntrance.fields.locality.name.nameLong"
|
|
157
|
+
/>
|
|
158
|
+
<Field
|
|
159
|
+
@attr="building.buildingEntrance.locality.swissZipCode"
|
|
160
|
+
@type="number"
|
|
161
|
+
@label="ember-gwr.buildingEntrance.fields.locality.swissZipCode"
|
|
162
|
+
@required={{true}}
|
|
163
|
+
/>
|
|
164
|
+
<Field
|
|
165
|
+
@attr="building.buildingEntrance.buildingEntranceNo"
|
|
166
|
+
@label="ember-gwr.buildingEntrance.fields.buildingEntranceNo"
|
|
167
|
+
/>
|
|
168
|
+
<Field
|
|
169
|
+
@attr="building.buildingEntrance.isOfficialAddress"
|
|
170
|
+
@type="checkbox"
|
|
171
|
+
@label="ember-gwr.buildingEntrance.fields.isOfficialAddress"
|
|
172
|
+
/>
|
|
173
|
+
{{/if}}
|
|
174
|
+
|
|
144
175
|
<h3>
|
|
145
176
|
{{t "ember-gwr.building.sections.locality"}}
|
|
146
177
|
</h3>
|
|
@@ -189,35 +220,36 @@
|
|
|
189
220
|
|
|
190
221
|
<Field @attr="building.nameOfBuilding" />
|
|
191
222
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
223
|
+
{{#if (or (not this.buildingWork.isNew) this.import)}}
|
|
224
|
+
<Field @attr="building.dateOfConstruction.yearMonthDay" @type="date" />
|
|
225
|
+
{{#if this.buildingWork.building.dateOfConstruction.year}}
|
|
226
|
+
<Field @attr="building.dateOfConstruction.year" @disabled={{true}} />
|
|
227
|
+
{{/if}}
|
|
228
|
+
{{#if this.buildingWork.building.dateOfConstruction.yearMonth}}
|
|
229
|
+
<Field
|
|
230
|
+
@attr="building.dateOfConstruction.yearMonth"
|
|
231
|
+
@disabled={{true}}
|
|
232
|
+
/>
|
|
233
|
+
{{/if}}
|
|
203
234
|
<Field
|
|
204
235
|
@attr="building.dateOfConstruction.periodOfConstruction"
|
|
205
236
|
@type="select"
|
|
206
237
|
@convertValueTo="number"
|
|
207
238
|
@gwrEnumOptions={{this.Models.DateOfConstruction.periodOfConstructionOptions}}
|
|
208
239
|
/>
|
|
209
|
-
{{/if}}
|
|
210
240
|
|
|
211
|
-
|
|
241
|
+
<Field @attr="building.yearOfDemolition" @type="number" />
|
|
242
|
+
{{/if}}
|
|
212
243
|
|
|
213
244
|
<h3>
|
|
214
245
|
{{t "ember-gwr.components.modelForm.realEstateHeading"}}
|
|
215
246
|
</h3>
|
|
216
247
|
<Field @attr="building.realestateIdentification.number" />
|
|
217
|
-
<Field @attr="building.realestateIdentification.numberSuffix" />
|
|
218
248
|
<Field @attr="building.realestateIdentification.EGRID" />
|
|
219
|
-
<Field
|
|
220
|
-
|
|
249
|
+
<Field
|
|
250
|
+
@type="number"
|
|
251
|
+
@attr="building.realestateIdentification.subDistrict"
|
|
252
|
+
/>
|
|
221
253
|
|
|
222
254
|
<h3>
|
|
223
255
|
{{t "ember-gwr.building.sections.structure"}}
|
|
@@ -280,7 +312,18 @@
|
|
|
280
312
|
@label="ember-gwr.building.heating.revisionDate"
|
|
281
313
|
/>
|
|
282
314
|
|
|
283
|
-
<ul uk-accordion
|
|
315
|
+
<ul uk-accordion="active: {{if (or
|
|
316
|
+
(show-model-field
|
|
317
|
+
"building.thermotechnicalDeviceForHeating2.heatGeneratorHeating"
|
|
318
|
+
changeset
|
|
319
|
+
this.import
|
|
320
|
+
)
|
|
321
|
+
(show-model-field
|
|
322
|
+
"building.thermotechnicalDeviceForHeating2.energySourceHeating"
|
|
323
|
+
changeset
|
|
324
|
+
this.import
|
|
325
|
+
)) "0" false}}"
|
|
326
|
+
>
|
|
284
327
|
<li>
|
|
285
328
|
<a class="uk-accordion-title" href="#">
|
|
286
329
|
<h4>
|
|
@@ -348,7 +391,18 @@
|
|
|
348
391
|
@label="ember-gwr.building.heating.revisionDate"
|
|
349
392
|
/>
|
|
350
393
|
|
|
351
|
-
<ul uk-accordion
|
|
394
|
+
<ul uk-accordion="active: {{if (or
|
|
395
|
+
(show-model-field
|
|
396
|
+
"building.thermotechnicalDeviceForHeating2.heatGeneratorHeating"
|
|
397
|
+
changeset
|
|
398
|
+
this.import
|
|
399
|
+
)
|
|
400
|
+
(show-model-field
|
|
401
|
+
"building.thermotechnicalDeviceForHeating2.energySourceHeating"
|
|
402
|
+
changeset
|
|
403
|
+
this.import
|
|
404
|
+
)) "0" false}}"
|
|
405
|
+
>
|
|
352
406
|
<li>
|
|
353
407
|
<a class="uk-accordion-title" href="#">
|
|
354
408
|
<h4>
|