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,11 +1,13 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
{{#if this.fetchDwelling.isRunning}}
|
|
3
|
-
<
|
|
4
|
-
<UkSpinner @ratio={{3}} />
|
|
5
|
-
</div>
|
|
3
|
+
<Loading />
|
|
6
4
|
{{else}}
|
|
5
|
+
{{#if this.quarterlyClosure.disableForms}}
|
|
6
|
+
<QuarterlyClosure::DisabledFormInfo />
|
|
7
|
+
{{/if}}
|
|
7
8
|
<ModelForm
|
|
8
9
|
@model={{this.dwelling}}
|
|
10
|
+
@instanceId={{this.model.instanceId}}
|
|
9
11
|
@validations={{this.DwellingValidations}}
|
|
10
12
|
@onSubmit={{this.saveDwelling}}
|
|
11
13
|
@errors={{this.errors}}
|
|
@@ -13,9 +15,10 @@
|
|
|
13
15
|
@headerModel={{this.dwelling}}
|
|
14
16
|
@headerModelId={{this.dwelling.EWID}}
|
|
15
17
|
@projectId={{this.router.externalRouter.currentRoute.attributes.projectId}}
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
18
|
+
@modelName="dwelling"
|
|
19
|
+
@showStatusActions={{this.hasInstanceContext}}
|
|
20
|
+
@showImport={{this.showImport}}
|
|
21
|
+
@importIndex={{this.importIndex}}
|
|
19
22
|
@modelStatusOptions={{this.dwellingStatusOptions}}
|
|
20
23
|
@nextValidStates={{this.nextValidStates}}
|
|
21
24
|
@onStatusChange={{this.transitionState}}
|
|
@@ -23,7 +26,8 @@
|
|
|
23
26
|
@getChangeParameters={{this.getChangeParameters}}
|
|
24
27
|
@getCorrectionParameters={{this.getCorrectionParameters}}
|
|
25
28
|
@modelStatusField="dwellingStatus"
|
|
26
|
-
|
|
29
|
+
@disabled={{this.quarterlyClosure.disableForms}}
|
|
30
|
+
as |Field changeset import|
|
|
27
31
|
>
|
|
28
32
|
<Field
|
|
29
33
|
@attr="EDID"
|
|
@@ -37,21 +41,20 @@
|
|
|
37
41
|
|
|
38
42
|
<Field
|
|
39
43
|
@attr="floorType"
|
|
40
|
-
@type="select"
|
|
44
|
+
@type="select"
|
|
45
|
+
@required={{true}}
|
|
41
46
|
@gwrEnumOptions={{this.Models.Dwelling.floorTypeOptions}}
|
|
42
47
|
@hint={{t "ember-gwr.dwelling.floorHint"}}
|
|
43
48
|
/>
|
|
44
49
|
|
|
45
|
-
{{#if
|
|
46
|
-
(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@required={{true}}
|
|
54
|
-
/>
|
|
50
|
+
{{#if
|
|
51
|
+
(or
|
|
52
|
+
(eq changeset.floorType 3101)
|
|
53
|
+
(eq changeset.floorType 3401)
|
|
54
|
+
(and import.data.floorNumber)
|
|
55
|
+
)
|
|
56
|
+
}}
|
|
57
|
+
<Field @attr="floorNumber" @type="number" @required={{true}} />
|
|
55
58
|
{{/if}}
|
|
56
59
|
|
|
57
60
|
<Field @attr="multipleFloor" @type="checkbox" @required={{true}} />
|
|
@@ -68,7 +71,7 @@
|
|
|
68
71
|
<Field @attr="kitchen" @type="checkbox" />
|
|
69
72
|
<Field @attr="surfaceAreaOfDwelling" @type="number" />
|
|
70
73
|
|
|
71
|
-
{{#if (or (not this.dwelling.isNew)
|
|
74
|
+
{{#if (or (not this.dwelling.isNew) import)}}
|
|
72
75
|
<Field @attr="yearOfConstruction" @type="number" />
|
|
73
76
|
<Field @attr="yearOfDemolition" @type="number" />
|
|
74
77
|
{{/if}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{{outlet}}
|
|
1
|
+
{{outlet}}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
{{#if this.fetchDwellings.isRunning}}
|
|
3
|
-
<
|
|
4
|
-
<UkSpinner @ratio={{3}} />
|
|
5
|
-
</div>
|
|
3
|
+
<Loading />
|
|
6
4
|
{{else}}
|
|
7
5
|
<LinkedModels
|
|
8
6
|
@models={{this.fetchDwellings.lastSuccessful.value}}
|
|
@@ -25,7 +23,8 @@
|
|
|
25
23
|
(t
|
|
26
24
|
"ember-gwr.buildingEntrance.title"
|
|
27
25
|
address=model.buildingEntrance.EDID
|
|
28
|
-
)
|
|
26
|
+
)
|
|
27
|
+
" - "
|
|
29
28
|
model.buildingEntrance.fullAddressText
|
|
30
29
|
}}
|
|
31
30
|
</td>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
{{#if this.fetchBuildingEntrance.isRunning}}
|
|
3
|
-
<
|
|
4
|
-
<UkSpinner @ratio={{3}} />
|
|
5
|
-
</div>
|
|
3
|
+
<Loading />
|
|
6
4
|
{{else}}
|
|
5
|
+
{{#if this.quarterlyClosure.disableForms}}
|
|
6
|
+
<QuarterlyClosure::DisabledFormInfo />
|
|
7
|
+
{{/if}}
|
|
7
8
|
<ModelForm
|
|
8
9
|
@model={{this.buildingEntrance}}
|
|
10
|
+
@instanceId={{this.model.instanceId}}
|
|
9
11
|
@validations={{this.BuildingEntranceValidations}}
|
|
10
12
|
@onSubmit={{this.saveBuildingEntrance}}
|
|
11
13
|
@translationBase="ember-gwr.buildingEntrance.fields"
|
|
@@ -14,10 +16,12 @@
|
|
|
14
16
|
@headerModelId={{this.buildingEntrance.EDID}}
|
|
15
17
|
@headerModelDescription={{this.buildingEntrance.fullAddressText}}
|
|
16
18
|
@projectId={{this.router.externalRouter.currentRoute.attributes.projectId}}
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
19
|
+
@modelName="entrance"
|
|
20
|
+
@importModelName="buildingEntrance"
|
|
21
|
+
@showStatusActions={{false}}
|
|
22
|
+
@showImport={{this.showImport}}
|
|
23
|
+
@importIndex={{this.importIndex}}
|
|
24
|
+
@disabled={{or this.hasNoStreet this.quarterlyClosure.disableForms}}
|
|
21
25
|
as |Field|
|
|
22
26
|
>
|
|
23
27
|
{{#unless this.buildingEntrance.isNew}}
|
|
@@ -27,38 +31,47 @@
|
|
|
27
31
|
<Field
|
|
28
32
|
@attr="locality.name.nameLong"
|
|
29
33
|
@required={{true}}
|
|
30
|
-
@disabled={{
|
|
34
|
+
@disabled={{or
|
|
35
|
+
this.quarterlyClosure.disableForms
|
|
36
|
+
(not this.buildingEntrance.isNew)
|
|
37
|
+
}}
|
|
31
38
|
/>
|
|
32
39
|
<Field
|
|
33
40
|
@attr="locality.swissZipCode"
|
|
34
41
|
@type="number"
|
|
35
|
-
@disabled={{
|
|
42
|
+
@disabled={{or
|
|
43
|
+
this.quarterlyClosure.disableForms
|
|
44
|
+
(not this.buildingEntrance.isNew)
|
|
45
|
+
}}
|
|
36
46
|
@required={{true}}
|
|
37
47
|
/>
|
|
38
48
|
{{#unless this.buildingEntrance.isNew}}
|
|
39
49
|
<Field
|
|
40
50
|
@attr="locality.swissZipCodeAddOn"
|
|
41
51
|
@type="number"
|
|
42
|
-
@disabled={{
|
|
52
|
+
@disabled={{or
|
|
53
|
+
this.quarterlyClosure.disableForms
|
|
54
|
+
(not this.buildingEntrance.isNew)
|
|
55
|
+
}}
|
|
43
56
|
/>
|
|
44
57
|
{{/unless}}
|
|
45
|
-
{{
|
|
46
|
-
fields on building entrances that are not linked to a street.
|
|
58
|
+
{{! API rejects any modification of the buildingEntranceNo or isOfficial
|
|
59
|
+
fields on building entrances that are not linked to a street. }}
|
|
47
60
|
<div
|
|
48
61
|
uk-tooltip="title: {{if
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
62
|
+
this.hasNoStreet
|
|
63
|
+
(t 'ember-gwr.buildingEntrance.missingStreetInfo')
|
|
64
|
+
}}
|
|
52
65
|
; container: {{this.config.modalContainer}}; pos: top-left"
|
|
53
66
|
>
|
|
54
67
|
<Field
|
|
55
68
|
@attr="buildingEntranceNo"
|
|
56
|
-
@disabled={{this.hasNoStreet}}
|
|
69
|
+
@disabled={{or this.quarterlyClosure.disableForms this.hasNoStreet}}
|
|
57
70
|
/>
|
|
58
71
|
<Field
|
|
59
72
|
@attr="isOfficialAddress"
|
|
60
73
|
@type="checkbox"
|
|
61
|
-
@disabled={{this.hasNoStreet}}
|
|
74
|
+
@disabled={{or this.quarterlyClosure.disableForms this.hasNoStreet}}
|
|
62
75
|
/>
|
|
63
76
|
</div>
|
|
64
77
|
{{#unless this.buildingEntrance.isNew}}
|
|
@@ -92,8 +105,9 @@
|
|
|
92
105
|
@fieldComponent={{Field}}
|
|
93
106
|
@buildingEntrance={{this.buildingEntrance}}
|
|
94
107
|
@translationBase="ember-gwr.buildingEntrance.fields"
|
|
108
|
+
@disabled={{this.quarterlyClosure.disableForms}}
|
|
95
109
|
/>
|
|
96
110
|
{{/unless}}
|
|
97
111
|
</ModelForm>
|
|
98
112
|
{{/if}}
|
|
99
|
-
</div>
|
|
113
|
+
</div>
|
|
@@ -1,85 +1,89 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
@backText={{this.backRouteLabel}}
|
|
4
|
-
/>
|
|
1
|
+
<BackRoute @backRoute={{this.backRoute}} @backText={{this.backRouteLabel}} />
|
|
2
|
+
|
|
5
3
|
<h1>
|
|
6
4
|
{{t "ember-gwr.components.linkStreet.heading"}}
|
|
7
5
|
</h1>
|
|
8
6
|
|
|
9
|
-
<Search
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
<Search @service={{this.street}} @baseQuery={{this.baseQuery}}>
|
|
8
|
+
<:filters as |Filters|>
|
|
9
|
+
<Filters @submitLabel={{t "ember-gwr.components.linkStreet.search"}} as |FilterInput|>
|
|
10
|
+
<div class="uk-flex uk-flex-column uk-flex-wrap">
|
|
11
|
+
<div class="uk-flex uk-flex-between uk-flex-bottom uk-flex-wrap">
|
|
12
|
+
<div class="uk-width-expand uk-width-1">
|
|
13
|
+
<div class="uk-margin-right">
|
|
14
|
+
<FilterInput
|
|
15
|
+
@name="locality.name.nameLong"
|
|
16
|
+
@label={{t "ember-gwr.locality.name.nameLong"}}
|
|
17
|
+
@disabled={{true}}
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="uk-width-small uk-width-1">
|
|
22
|
+
<div class="uk-margin-right">
|
|
23
|
+
<FilterInput
|
|
24
|
+
@name="locality.swissZipCode"
|
|
25
|
+
@label={{t "ember-gwr.locality.swissZipCode"}}
|
|
26
|
+
@disabled={{true}}
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="uk-width-small uk-width-1">
|
|
31
|
+
<FilterInput
|
|
32
|
+
@name="locality.swissZipCodeAddOn"
|
|
33
|
+
@label={{t "ember-gwr.locality.swissZipCodeAddOn"}}
|
|
34
|
+
@disabled={{true}}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
25
37
|
</div>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@attr="locality.swissZipCode"
|
|
31
|
-
@translationBase="ember-gwr"
|
|
32
|
-
@disabled={{true}}
|
|
33
|
-
@value={{this.PLZ4}}
|
|
38
|
+
<div class="uk-width-expand uk-width-1">
|
|
39
|
+
<FilterInput
|
|
40
|
+
@name="description.descriptionLong"
|
|
41
|
+
@label={{t "ember-gwr.building.street.description.descriptionLong"}}
|
|
34
42
|
/>
|
|
35
43
|
</div>
|
|
36
44
|
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@attr="locality.swissZipCodeAddOn"
|
|
40
|
-
@translationBase="ember-gwr"
|
|
41
|
-
@disabled={{true}}
|
|
42
|
-
@value={{this.PLZ6}}
|
|
43
|
-
/>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="uk-width-expand uk-width-1">
|
|
47
|
-
<Field
|
|
48
|
-
@attr="description.descriptionLong"
|
|
49
|
-
@translationBase="ember-gwr.street"
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
45
|
+
</Filters>
|
|
46
|
+
</:filters>
|
|
53
47
|
|
|
54
|
-
|
|
48
|
+
<:results as |Results|>
|
|
49
|
+
<Results as |TableHeader Rows|>
|
|
50
|
+
<TableHeader as |HeaderColumn|>
|
|
51
|
+
<HeaderColumn
|
|
52
|
+
class="uk-table-shrink"
|
|
53
|
+
@label={{t "ember-gwr.street.ESID"}}
|
|
54
|
+
/>
|
|
55
|
+
<HeaderColumn
|
|
56
|
+
@label={{t "ember-gwr.street.description.descriptionLong"}}
|
|
57
|
+
/>
|
|
58
|
+
<HeaderColumn
|
|
59
|
+
class="uk-table-shrink"
|
|
60
|
+
@label={{t "ember-gwr.locality.name.nameLong"}}
|
|
61
|
+
/>
|
|
62
|
+
<HeaderColumn
|
|
63
|
+
class="uk-table-shrink"
|
|
64
|
+
@label={{t "ember-gwr.locality.swissZipCode"}}
|
|
65
|
+
/>
|
|
66
|
+
<HeaderColumn
|
|
67
|
+
class="uk-table-shrink"
|
|
68
|
+
@label={{t "ember-gwr.locality.swissZipCodeAddOn"}}
|
|
69
|
+
/>
|
|
70
|
+
</TableHeader>
|
|
55
71
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{{on "click" (fn this.setStreet model)}}
|
|
75
|
-
>
|
|
76
|
-
{{value}}
|
|
77
|
-
</button>
|
|
78
|
-
</Field>
|
|
79
|
-
<Field @attr="description.descriptionLong" />
|
|
80
|
-
<Field @attr="locality.name.nameLong" />
|
|
81
|
-
<Field @attr="locality.swissZipCode" />
|
|
82
|
-
<Field @attr="locality.swissZipCodeAddOn" />
|
|
83
|
-
</Row>
|
|
84
|
-
</Search::ResultTable>
|
|
85
|
-
{{/if}}
|
|
72
|
+
<Rows as |TableRowColumn|>
|
|
73
|
+
<TableRowColumn @attr="ESID" as |value|>
|
|
74
|
+
<button
|
|
75
|
+
class="uk-button uk-button-link"
|
|
76
|
+
type="button"
|
|
77
|
+
{{on "click" (fn this.setStreet this.model)}}
|
|
78
|
+
>
|
|
79
|
+
{{value}}
|
|
80
|
+
</button>
|
|
81
|
+
</TableRowColumn>
|
|
82
|
+
<TableRowColumn @attr="description.descriptionLong" />
|
|
83
|
+
<TableRowColumn @attr="locality.name.nameLong" />
|
|
84
|
+
<TableRowColumn @attr="locality.swissZipCode" />
|
|
85
|
+
<TableRowColumn @attr="locality.swissZipCodeAddOn" />
|
|
86
|
+
</Rows>
|
|
87
|
+
</Results>
|
|
88
|
+
</:results>
|
|
89
|
+
</Search>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{{outlet}}
|
|
1
|
+
{{outlet}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{{outlet}}
|
|
1
|
+
{{outlet}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/>
|
|
1
|
+
{{#if (current-route-is-not "link-street")}}
|
|
2
|
+
<BackRoute
|
|
3
|
+
@backRoute="building.edit.entrances"
|
|
4
|
+
@backText={{t "ember-gwr.buildingEntrance.backToBuilding"}}
|
|
5
|
+
/>
|
|
6
|
+
{{/if}}
|
|
6
7
|
{{outlet}}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
{{#if this.fetchEntrances.isRunning}}
|
|
3
|
-
<
|
|
4
|
-
<UkSpinner @ratio={{3}} />
|
|
5
|
-
</div>
|
|
3
|
+
<Loading />
|
|
6
4
|
{{else}}
|
|
7
5
|
<LinkedModels
|
|
8
6
|
@models={{this.entrances}}
|
|
9
7
|
@modelName="entrance"
|
|
10
8
|
@newRoute="building.edit.entrance.new"
|
|
11
|
-
{{
|
|
9
|
+
{{!
|
|
12
10
|
TODO removing a entrance is not allowed if there is still a dwelling attached to it
|
|
13
11
|
We also cannot remove an entrance if there is only one. This only applies for active
|
|
14
12
|
instances of dwellings and building entrances. Since building entrance deactivation
|
|
15
13
|
is an asynchronous process, we should check the mutation status of deactivated
|
|
16
14
|
building entrances and dwellings, to ensure that the requirements hold.
|
|
17
|
-
|
|
15
|
+
}}
|
|
18
16
|
@removeLink={{if (gt this.entrances.length 1) this.removeEntranceLink}}
|
|
19
17
|
as |model|
|
|
20
18
|
>
|
|
@@ -32,4 +30,4 @@
|
|
|
32
30
|
</td>
|
|
33
31
|
</LinkedModels>
|
|
34
32
|
{{/if}}
|
|
35
|
-
</div>
|
|
33
|
+
</div>
|