annotate client/src/components/importschedule/Importscheduledetail.vue @ 2577:fcb139bfa56b

client: (minor) remove unsignificant space
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 11 Mar 2019 15:09:49 +0100
parents dc4fae4bdb8f
children 5466800da970
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
2 <div
2577
fcb139bfa56b client: (minor) remove unsignificant space
Bernhard Reiter <bernhard@intevation.de>
parents: 2563
diff changeset
3 class="importscheduledetails fadeIn animated"
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
4 v-if="importScheduleDetailVisible"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
5 >
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
6 <div class="card shadow-xs importscheduledetailscard pb-5">
2387
f185503ef35a client: unified box's header styles by creating a reusable component
Markus Kottlaender <markus@intevation.de>
parents: 2377
diff changeset
7 <UIBoxHeader :title="dialogLabel" :closeCallback="closeDetailview" />
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 <div class="card-body">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
9 <form @submit.prevent="save" class="ml-2 mr-2">
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
10 <div class="d-flex flex-row">
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
11 <div class="flex-column w-50 mr-3">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
12 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
13 <small class="text-muted">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
14 <translate>Imports</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
15 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
16 </div>
1587
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
17 <select v-model="import_" class="custom-select" id="importtype">
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
18 <option :value="$options.IMPORTTYPES.BOTTLENECK"
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
19 ><translate>Bottlenecks</translate></option
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
20 >
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
21 <option :value="$options.IMPORTTYPES.WATERWAYAXIS"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
22 ><translate>Waterway axis</translate></option
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
23 >
1749
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
24 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT"
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
25 ><translate>Gauge measurement</translate></option
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
26 >
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
27 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY"
2088
e972567100d3 input events for import schedule
Thomas Junk <thomas.junk@intevation.de>
parents: 2068
diff changeset
28 ><translate>Available fairway depths</translate></option
1749
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
29 >
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
30 <option :value="$options.IMPORTTYPES.WATERWAYAREA"
2062
Thomas Junk <thomas.junk@intevation.de>
parents: 2061
diff changeset
31 ><translate>Waterway area</translate></option
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
32 >
1858
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
33 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSION"
2062
Thomas Junk <thomas.junk@intevation.de>
parents: 2061
diff changeset
34 ><translate>Fairway dimension</translate></option
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
35 >
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
36 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES"
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
37 ><translate>Waterway gauges</translate></option
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
38 >
1863
3bf2e5a91e50 import: distance marks virtual added
Thomas Junk <thomas.junk@intevation.de>
parents: 1858
diff changeset
39 <option :value="$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL"
2062
Thomas Junk <thomas.junk@intevation.de>
parents: 2061
diff changeset
40 ><translate>Distance marks virtual</translate></option
1863
3bf2e5a91e50 import: distance marks virtual added
Thomas Junk <thomas.junk@intevation.de>
parents: 1858
diff changeset
41 >
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
42 <option :value="$options.IMPORTTYPES.DISTANCEMARKSASHORE"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
43 ><translate>Distance marks ashore</translate></option
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
44 >
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
45 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
46 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
47 <div class="flex-column ml-4">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
48 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
49 <small class="text-muted">
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
50 <translate>Email Notification</translate>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
51 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
52 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
53 <div class="flex-flex-row text-left">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
54 <toggle-button
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
55 v-model="eMailNotification"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
56 class="mt-2"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
57 :speed="100"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
58 :labels="{
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
59 checked: this.$options.on,
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
60 unchecked: this.$options.off
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
61 }"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
62 :width="60"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
63 :height="30"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
64 />
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
65 </div>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
66 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
67 </div>
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
68 <div v-if="directImportAvailable" class="flex-column">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
69 <div class="flex-row text-left">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
70 <small class="text-muted">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
71 <translate>Import via</translate>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
72 </small>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
73 </div>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
74 <div class="flex-flex-row text-left">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
75 <toggle-button
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
76 v-model="directImport"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
77 class="mt-2"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
78 :speed="100"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
79 :labels="{
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
80 checked: this.$options.FILE,
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
81 unchecked: this.$options.URL
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
82 }"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
83 :width="60"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
84 :height="30"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
85 />
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
86 </div>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
87 </div>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
88 <Availablefairwaydepth
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
89 v-if="
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
90 import_ == $options.IMPORTTYPES.FAIRWAYAVAILABILITY &&
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
91 !directImport
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
92 "
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
93 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
94 :url="url"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
95 ></Availablefairwaydepth>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
96 <Bottleneck
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
97 v-if="import_ == $options.IMPORTTYPES.BOTTLENECK && !directImport"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
98 @urlChanged="setUrl"
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
99 @toleranceChanged="setTolerance"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
100 :url="url"
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
101 :tolerance="tolerance"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
102 ></Bottleneck>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
103 <Distancemarksvirtual
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
104 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSVIRTUAL"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
105 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
106 @usernameChanged="setUsername"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
107 @passwordChanged="setPassword"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
108 :url="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
109 :username="username"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
110 :password="password"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
111 ></Distancemarksvirtual>
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
112 <Distancemarksashore
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
113 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSASHORE"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
114 @urlChanged="setUrl"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
115 @featureTypeChanged="setFeatureType"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
116 @sortByChanged="setSortBy"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
117 :url="url"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
118 :featureType="featureType"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
119 :sortBy="sortBy"
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
120 ></Distancemarksashore>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
121 <Faiwaydimensions
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
122 v-if="import_ == $options.IMPORTTYPES.FAIRWAYDIMENSION"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
123 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
124 @featureTypeChanged="setFeatureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
125 @sortByChanged="setSortBy"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
126 @LOSChanged="setLOS"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
127 @depthChanged="setDepth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
128 @minWidthChanged="setMinWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
129 @maxWidthChanged="setMaxWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
130 @sourceOrganizationChanged="setSourceOrganization"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
131 :url="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
132 :featureType="featureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
133 :sortBy="sortBy"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
134 :LOS="LOS"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
135 :minWidth="minWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
136 :maxWidth="maxWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
137 :sourceOrganization="sourceOrganization"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
138 :depth="depth"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
139 ></Faiwaydimensions>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
140 <Gaugemeasurement
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
141 v-if="
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
142 import_ == $options.IMPORTTYPES.GAUGEMEASUREMENT && !directImport
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
143 "
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
144 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
145 :url="url"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
146 ></Gaugemeasurement>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
147 <Waterwayarea
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
148 v-if="import_ == $options.IMPORTTYPES.WATERWAYAREA"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
149 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
150 @featureTypeChanged="setFeatureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
151 @sortByChanged="setSortBy"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
152 :url="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
153 :featureType="featureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
154 :sortBy="sortBy"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
155 ></Waterwayarea>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
156 <Waterwaygauges
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
157 v-if="import_ == $options.IMPORTTYPES.WATERWAYGAUGES"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
158 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
159 @usernameChanged="setUsername"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
160 @passwordChanged="setPassword"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
161 :url="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
162 :username="username"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
163 :password="password"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
164 ></Waterwaygauges>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
165 <Waterwayaxis
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
166 v-if="import_ == $options.IMPORTTYPES.WATERWAYAXIS"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
167 @urlChanged="setUrl"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
168 @featureTypeChanged="setFeatureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
169 @sortByChanged="setSortBy"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
170 :url="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
171 :featureType="featureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
172 :sortBy="sortBy"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
173 ></Waterwayaxis>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
174
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
175 <div v-if="!directImport" class="d-flex flex-row">
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
176 <div class="flex-column mt-3 mr-4">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
177 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
178 <small class="text-muted">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
179 <translate>Scheduled</translate>?
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
180 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
181 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
182 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
183 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
184 v-model="scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
185 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
186 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
187 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
188 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
189 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
190 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
191 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
192 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
193 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
194 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
195 </div>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
196 <div class="flex-column mt-3 mr-2">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
197 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
198 <small class="text-muted">
2062
Thomas Junk <thomas.junk@intevation.de>
parents: 2061
diff changeset
199 <translate>Simple schedule</translate>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
200 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
201 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
202 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
203 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
204 :disabled="!scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
205 v-model="easyCron"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
206 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
207 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
208 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
209 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
210 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
211 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
212 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
213 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
214 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
215 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
216 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
217 </div>
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
218 <div v-if="!directImport" class="flex-column w-100 mr-2">
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
219 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
220 <small class="text-muted">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
221 <translate>Schedule</translate>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
222 </small>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
223 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
224 <div v-if="easyCron" class="text-left w-50">
1707
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
225 <select
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
226 :disabled="!scheduled"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
227 v-model="simple"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
228 class="form-control"
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
229 ><option value="weekly"><translate>Weekly</translate></option>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
230 <option value="monthly"><translate>Monthly</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
231 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
232 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
233 <div v-if="!easyCron" class="text-left w-100">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
234 <div class="d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
235 <h4 class="mt-auto mb-auto mr-2">{{ $options.EVERY }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
236 <select
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
237 :disabled="!scheduled"
1571
b3f2d43f43e4 added 15minutes as custom value
Thomas Junk <thomas.junk@intevation.de>
parents: 1570
diff changeset
238 style="width: 130px;"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
239 v-model="cronMode"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
240 class="form-control"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
241 @change="clearInputs"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
242 >
2377
fdec7a652f34 client: imports: avoid error when cron string cannot be parsed when trying to edit imports
Markus Kottlaender <markus@intevation.de>
parents: 2353
diff changeset
243 <option :value="null"></option>
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
244 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
245 v-for="(option, key) in $options.CRONMODE"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
246 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
247 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
248 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
249 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
250 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
251 <div v-if="cronMode == 'hour'" class="ml-1 d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
252 <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
253 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
254 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
255 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
256 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
257 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
258 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
259 <h4 class="mt-auto mb-auto">{{ $options.MINUTESPAST }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
260 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
261 <div v-if="cronMode == 'day'" class="ml-1 d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
262 <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
263 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
264 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
265 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
266 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
267 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
268 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
269 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
270 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
271 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
272 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
273 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
274 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
275 <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
276 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
277 <div v-if="cronMode == 'week'" class="ml-1 d-flex flex-row">
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
278 <h4 class="ml-1 mr-1 mt-auto mb-auto">{{ $options.ON }}</h4>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
279 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
280 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
281 v-model="day"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
282 class="form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
283 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
284 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
285 v-for="(option, key) in $options.DAYSOFWEEK"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
286 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
287 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
288 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
289 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
290 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
291 <h4 class="ml-1 mt-auto mb-auto">{{ $options.AT }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
292 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
293 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
294 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
295 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
296 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
297 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
298 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
299 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
300 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
301 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
302 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
303 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
304 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
305 <div v-if="cronMode == 'month'" class="ml-1 d-flex flex-row">
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
306 <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
307 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
308 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
309 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
310 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
311 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
312 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
313 <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
314 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
315 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
316 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
317 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
318 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
319 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
320 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
321 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
322 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
323 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
324 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
325 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
326 <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
327 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
328 <div v-if="cronMode == 'year'" class="ml-1 d-flex flex-row">
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
329 <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
330 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
331 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
332 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
333 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
334 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
335 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
336 <h4 class="mt-auto mb-auto">{{ $options.OF }}</h4>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
337 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
338 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
339 v-model="month"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
340 class="ml-1 mr-1 form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
341 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
342 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
343 v-for="(option, key) in $options.MONTHS"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
344 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
345 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
346 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
347 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
348 </select>
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
349 <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
350 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
351 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
352 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
353 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
354 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
355 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
356 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
357 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
358 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
359 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
360 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
361 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
362 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
363 </div>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
364 <div class="mt-3 w-50 d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
365 <h5 class="mt-auto mb-auto mr-2">
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
366 <translate>Cronstring</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
367 </h5>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
368 <input
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
369 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
370 class="form-control"
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
371 v-model="cronString"
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
372 type="text"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
373 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
374 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
375 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
376 </div>
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
377 <div v-if="directImport" class="d-flex flex-row text-left">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
378 <div class="mt-3 mb-3 flex-column w-100">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
379 <div class="custom-file">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
380 <input
2199
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
381 accept=".xml"
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
382 type="file"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
383 @change="fileSelected"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
384 class="custom-file-input"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
385 id="uploadFile"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
386 />
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
387 <label class="pointer custom-file-label" for="uploadFile">
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
388 {{ uploadLabel }}
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
389 </label>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
390 </div>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
391 </div>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
392 </div>
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
393 <button
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
394 v-if="!directImport"
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
395 :disabled="!isValid"
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
396 type="submit"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
397 class="shadow-sm btn btn-info submit-button"
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
398 >
2193
35c56ace42b9 import_schedule: label changed to 'save'
Thomas Junk <thomas.junk@intevation.de>
parents: 2154
diff changeset
399 <translate>Save</translate>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
400 </button>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
401 <button
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
402 @click="triggerManualImport"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
403 type="button"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
404 class="shadow-sm btn btn-outline-info trigger"
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
405 :disabled="!triggerActive || !isValid"
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
406 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
407 <font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
408 class="fa-fw mr-2"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
409 fixed-width
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
410 icon="play"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
411 ></font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
412 ><translate>Trigger import</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
413 </button>
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
414 </form>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
415 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
416 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
417 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
418 </template>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
419
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
420 <script>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
421 /* This is Free Software under GNU Affero General Public License v >= 3.0
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
422 * without warranty, see README.md and license for details.
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
423 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
424 * SPDX-License-Identifier: AGPL-3.0-or-later
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
425 * License-Filename: LICENSES/AGPL-3.0.txt
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
426 *
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
427 * Copyright (C) 2018, 2019 by via donau
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
428 * – Österreichische Wasserstraßen-Gesellschaft mbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
429 * Software engineering by Intevation GmbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
430 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
431 * Author(s):
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
432 * Thomas Junk <thomas.junk@intevation.de>
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
433 * Tom Gottfried <tom.gottfried@intevation.de>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
434 */
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
435 import {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
436 IMPORTTYPES,
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
437 IMPORTTYPEKIND,
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
438 initializeCurrentSchedule
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
439 } from "@/store/importschedule";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
440 import { mapState } from "vuex";
1613
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
441 import { displayInfo, displayError } from "@/lib/errors.js";
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
442 import app from "@/main.js";
2199
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
443 import { HTTP } from "@/lib/http";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
444
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
445 export default {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
446 name: "importscheduledetail",
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
447 components: {
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
448 Availablefairwaydepth: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
449 import("@/components/importschedule/importtypes/Availablefairwaydepth"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
450 Bottleneck: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
451 import("@/components/importschedule/importtypes/Bottleneck"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
452 Distancemarksvirtual: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
453 import("@/components/importschedule/importtypes/Distancemarksvirtual"),
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
454 Distancemarksashore: () =>
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
455 import("@/components/importschedule/importtypes/Distancemarksashore"),
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
456 Faiwaydimensions: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
457 import("@/components/importschedule/importtypes/Fairwaydimensions"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
458 Gaugemeasurement: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
459 import("@/components/importschedule/importtypes/Gaugemeasurement"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
460 Waterwayarea: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
461 import("@/components/importschedule/importtypes/Waterwayarea"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
462 Waterwaygauges: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
463 import("@/components/importschedule/importtypes/Waterwaygauges"),
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
464 Waterwayaxis: () =>
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
465 import("@/components/importschedule/importtypes/Waterwayaxis")
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents: 1953
diff changeset
466 },
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
467 data() {
1953
3ccdd635d4fd import schedule: password field instead of plaintext
Thomas Junk <thomas.junk@intevation.de>
parents: 1869
diff changeset
468 return {
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
469 directImport: false,
1953
3ccdd635d4fd import schedule: password field instead of plaintext
Thomas Junk <thomas.junk@intevation.de>
parents: 1869
diff changeset
470 passwordVisible: false,
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
471 uploadLabel: this.$gettext("choose file to upload"),
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
472 uploadFile: null,
1953
3ccdd635d4fd import schedule: password field instead of plaintext
Thomas Junk <thomas.junk@intevation.de>
parents: 1869
diff changeset
473 ...initializeCurrentSchedule()
3ccdd635d4fd import schedule: password field instead of plaintext
Thomas Junk <thomas.junk@intevation.de>
parents: 1869
diff changeset
474 };
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
475 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
476 mounted() {
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
477 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
478 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
479 watch: {
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
480 cronMode() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
481 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
482 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
483 minutes() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
484 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
485 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
486 hour() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
487 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
488 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
489 month() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
490 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
491 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
492 day() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
493 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
494 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
495 dayOfMonth() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
496 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
497 },
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
498 importScheduleDetailVisible() {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
499 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
500 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
501 cronString() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
502 if (this.isWeekly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
503 this.simple = "weekly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
504 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
505 if (this.isMonthly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
506 this.simple = "monthly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
507 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
508 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
509 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
510 computed: {
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
511 ...mapState("importschedule", [
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
512 "importScheduleDetailVisible",
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
513 "currentSchedule"
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
514 ]),
1773
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
515 dialogLabel() {
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
516 if (this.id) return this.$gettext("Import") + " " + this.id;
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
517 return this.$gettext("New Import");
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
518 },
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
519 directImportAvailable() {
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
520 switch (this.import_) {
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
521 case this.$options.IMPORTTYPES.BOTTLENECK:
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
522 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
523 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
524 return true;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
525 default:
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
526 return false;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
527 }
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
528 },
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
529 isCredentialsRequired() {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
530 switch (this.import_) {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
531 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
532 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
533 return true;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
534 default:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
535 return false;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
536 }
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
537 },
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
538 isURLRequired() {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
539 switch (this.import_) {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
540 case this.$options.IMPORTTYPES.BOTTLENECK:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
541 case this.$options.IMPORTTYPES.WATERWAYAXIS:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
542 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
543 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
544 case this.$options.IMPORTTYPES.WATERWAYAREA:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
545 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
546 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
547 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL:
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
548 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
549 return true;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
550 default:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
551 return false;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
552 }
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
553 },
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
554 isFeatureTypeRequired() {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
555 switch (this.import_) {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
556 case this.$options.IMPORTTYPES.WATERWAYAXIS:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
557 case this.$options.IMPORTTYPES.WATERWAYAREA:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
558 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
559 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
560 return true;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
561 default:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
562 return false;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
563 }
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
564 },
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
565 isSortbyRequired() {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
566 switch (this.import_) {
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
567 case this.$options.IMPORTTYPES.WATERWAYAXIS:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
568 case this.$options.IMPORTTYPES.WATERWAYAREA:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
569 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
2068
5a898da60b87 dma added
Thomas Junk <thomas.junk@intevation.de>
parents: 2064
diff changeset
570 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
571 return true;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
572 default:
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
573 return false;
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1998
diff changeset
574 }
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
575 },
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
576 isToleranceRequired() {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
577 switch (this.import_) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
578 case this.$options.IMPORTTYPES.BOTTLENECK:
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
579 return true;
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
580 default:
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
581 return false;
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
582 }
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
583 },
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
584 isValid() {
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
585 if (!this.import_) return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
586 if (this.directImport && !this.uploadFile) return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
587 else if (!this.directImport) {
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
588 if (this.isURLRequired && !this.url) return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
589 if (this.isSortbyRequired && !this.sortBy) return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
590 if (this.isFeatureTypeRequired && !this.featureType) return false;
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
591 if (this.isToleranceRequired && !this.tolerance) return false;
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
592 if (this.isCredentialsRequired && (!this.username || !this.password))
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
593 return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
594 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
595 if (
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
596 !this.LOS ||
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
597 !this.minWidth ||
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
598 !this.maxWidth ||
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
599 !this.depth ||
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
600 !this.sourceOrganization
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
601 )
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
602 return false;
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
603 }
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
604 }
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
605 return true;
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
606 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
607 },
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
608 methods: {
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
609 fileSelected(e) {
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
610 const files = e.target.files || e.dataTransfer.files;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
611 if (!files) return;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
612 this.uploadLabel = files[0].name;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
613 this.uploadFile = files[0];
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
614 },
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
615 setUrl(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
616 this.url = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
617 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
618 setFeatureType(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
619 this.featureType = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
620 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
621 setSortBy(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
622 this.sortBy = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
623 },
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
624 setTolerance(value) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
625 this.tolerance = value;
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
626 },
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
627 setUsername(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
628 this.username = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
629 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
630 setPassword(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
631 this.password = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
632 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
633 setLOS(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
634 this.LOS = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
635 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
636 setMinWidth(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
637 this.minWidth = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
638 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
639 setMaxWidth(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
640 this.maxWidth = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
641 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
642 setDepth(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
643 this.depth = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
644 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
645 setSourceOrganization(value) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
646 this.sourceOrganization = value;
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
647 },
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
648 calcCronString() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
649 let getValue = value => {
2344
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
650 return this[value] !== null ? this[value] : "*";
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
651 };
2344
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
652
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
653 const min = getValue("minutes");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
654 const h = getValue("hour");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
655 const dm = getValue("dayOfMonth");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
656 const m = getValue("month");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
657 const wd = getValue("day");
2344
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
658
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
659 if (this.cronMode === "15minutes") return "0 */15 * * * *";
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
660 if (this.cronMode === "hour") return `0 ${min} * * * *`;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
661 if (this.cronMode === "day") return `0 ${min} ${h} * * *`;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
662 if (this.cronMode === "week") return `0 ${min} ${h} * * ${wd}`;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
663 if (this.cronMode === "month") return `0 ${min} ${h} ${dm} * *`;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
664 if (this.cronMode === "year") return `0 ${min} ${h} ${dm} ${m} *`;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
665 return this.cronString;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
666 },
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
667 validateBottleneckfields() {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
668 return !!this.url;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
669 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
670 initialize() {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
671 this.id = this.currentSchedule.id;
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
672 this.importType = this.currentSchedule.importType;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
673 this.schedule = this.currentSchedule.schedule;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
674 this.scheduled = this.currentSchedule.scheduled;
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
675 this.import_ = this.currentSchedule.import_;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
676 this.importSource = this.currentSchedule.importSource;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
677 this.eMailNotification = this.currentSchedule.eMailNotification;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
678 this.easyCron = this.currentSchedule.easyCron;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
679 this.cronMode = this.currentSchedule.cronMode;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
680 this.minutes = this.currentSchedule.minutes;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
681 this.month = this.currentSchedule.month;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
682 this.hour = this.currentSchedule.hour;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
683 this.day = this.currentSchedule.day;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
684 this.dayOfMonth = this.currentSchedule.dayOfMonth;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
685 this.simple = this.currentSchedule.simple;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
686 this.url = this.currentSchedule.url;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
687 this.insecure = this.currentSchedule.insecure;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
688 this.cronString = this.currentSchedule.cronString;
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
689 this.featureType = this.currentSchedule.featureType;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
690 this.sortBy = this.currentSchedule.sortBy;
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
691 this.tolerance = this.currentSchedule.tolerance;
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
692 this.username = this.currentSchedule.username;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
693 this.password = this.currentSchedule.password;
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
694 this.LOS = this.currentSchedule.LOS;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
695 this.minWidth = this.currentSchedule.minWidth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
696 this.maxWidth = this.currentSchedule.maxWidth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
697 this.depth = this.currentSchedule.depth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
698 this.sourceOrganization = this.currentSchedule.sourceOrganization;
2353
b9c317236ebc client: imports: disabled save/trigger buttons if form is invalid/not filled
Markus Kottlaender <markus@intevation.de>
parents: 2344
diff changeset
699 this.directImport = false;
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
700 },
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
701 isWeekly(cron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
702 return /0 \d{1,2} \d{1,2} \* \* \d{1}/.test(cron);
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
703 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
704 isMonthly(cron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
705 return /0 \d{1,2} \d{1,2} \d{1,2} \* \*/.test(cron);
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
706 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
707 clearInputs() {
2344
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
708 this.minutes = this.currentSchedule.minutes;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
709 this.month = this.currentSchedule.month;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
710 this.hour = this.currentSchedule.hour;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
711 this.day = this.currentSchedule.day;
a5b87a695469 client: imports: fixed cron string
Markus Kottlaender <markus@intevation.de>
parents: 2312
diff changeset
712 this.dayOfMonth = this.currentSchedule.dayOfMonth;
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
713 },
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
714 triggerFileUpload() {
2199
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
715 if (!this.uploadFile) return;
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
716 let formData = new FormData();
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
717 let routeParam = "";
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
718 switch (this.import_) {
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
719 case this.$options.IMPORTTYPES.BOTTLENECK:
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
720 routeParam = "ubn";
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
721 break;
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
722 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
723 routeParam = "ufa";
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
724 break;
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
725 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
726 routeParam = "ugm";
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
727 break;
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
728 default:
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
729 throw new Error("invalid importroute");
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
730 }
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
731
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
732 formData.append(routeParam, this.uploadFile);
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
733 HTTP.post("/imports/" + routeParam, formData, {
2199
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
734 headers: {
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
735 "X-Gemma-Auth": localStorage.getItem("token"),
2241
5529e1f08dba import_queue: ubn used correct endpoint
Thomas Junk <thomas.junk@intevation.de>
parents: 2199
diff changeset
736 "Content-Type": "multipart/form-data"
2199
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
737 }
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
738 })
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
739 .then(response => {
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
740 const { id } = response.data;
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
741 displayInfo({
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
742 title: this.$gettext("File Import"),
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
743 message: this.$gettext("Import import: #") + id
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
744 });
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
745 this.closeDetailview();
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
746 this.$store.dispatch("importschedule/loadSchedules").catch(error => {
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
747 const { status, data } = error.response;
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
748 displayError({
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
749 title: this.gettext("Backend Error"),
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
750 message: `${status}: ${data.message || data}`
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
751 });
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
752 });
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
753 })
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
754 .catch(error => {
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
755 const { status, data } = error.response;
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
756 displayError({
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
757 title: this.$gettext("Backend Error"),
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
758 message: `${status}: ${data.message || data}`
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
759 });
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
760 });
b1735b09df6f UBN: WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2197
diff changeset
761 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
762 triggerManualImport() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
763 if (!this.triggerActive) return;
1725
b24a54c684bd importschedule: UI improvements
Thomas Junk <thomas.junk@intevation.de>
parents: 1724
diff changeset
764 if (!this.import_) return;
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
765 if (this.directImport) {
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
766 if (!this.uploadFile) return;
2262
dedd7bbee846 testclient: ufa, vgm implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 2241
diff changeset
767 this.triggerFileUpload();
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
768 return;
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
769 }
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
770 let data = {};
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
771 if (this.isURLRequired) {
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
772 if (!this.url) return;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
773 data["url"] = this.url;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
774 data["insecure"] = this.insecure;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
775 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
776 if (this.isFeatureTypeRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
777 if (!this.featureType) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
778 data["feature-type"] = this.featureType;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
779 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
780 if (this.isSortbyRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
781 if (!this.sortBy) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
782 data["sort-by"] = this.sortBy;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
783 }
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
784 if (this.isToleranceRequired) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
785 if (!this.tolerance) return;
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
786 data["tolerance"] = parseFloat(this.tolerance);
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
787 }
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
788 if (this.isCredentialsRequired) {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
789 if (!this.username || !this.password) return;
2312
b87211f595ae import-schedule: fix edit waterway gauge import. transmitting cedentials correctly
Thomas Junk <thomas.junk@intevation.de>
parents: 2307
diff changeset
790 data["user"] = this.username;
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
791 data["password"] = this.password;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
792 }
1858
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
793 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
794 if (
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
795 !this.LOS ||
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
796 !this.minWidth ||
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
797 !this.maxWidth ||
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
798 !this.depth ||
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
799 !this.sourceOrganization
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
800 )
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
801 return;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
802 data["feature-type"] = this.featureType;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
803 data["sort-by"] = this.sortBy;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
804 data["los"] = this.LOS * 1;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
805 data["min-width"] = this.minWidth * 1;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
806 data["max-width"] = this.maxWidth * 1;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
807 data["depth"] = this.depth * 1;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
808 data["source-organization"] = this.sourceOrganization;
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
809 }
2307
e1aa9bb65da6 import_schedule: send email when manually triggering import
Thomas Junk <thomas.junk@intevation.de>
parents: 2262
diff changeset
810 data["send-email"] = this.eMailNotification;
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
811 this.triggerActive = false;
1709
8ff8d873ef6b refac: trigger manual import via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1707
diff changeset
812 this.$store
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
813 .dispatch("importschedule/triggerImport", {
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
814 type: IMPORTTYPEKIND[this.import_],
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
815 data
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
816 })
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
817 .then(response => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
818 const { id } = response.data;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
819 displayInfo({
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
820 title: this.$gettext("Import"),
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
821 message: this.$gettext("Manually triggered import: #") + id
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
822 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
823 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
824 .catch(error => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
825 const { status, data } = error.response;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
826 displayError({
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
827 title: this.$gettext("Backend Error"),
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
828 message: `${status}: ${data.message || data}`
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
829 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
830 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
831 .finally(() => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
832 this.triggerActive = true;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
833 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
834 },
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
835 save() {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
836 if (!this.import_) return;
1728
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
837 let cron = this.cronString;
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
838 if (this.easyCron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
839 if (this.simple === "weekly") cron = "0 0 0 * * 0";
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
840 if (this.simple === "monthly") cron = "0 0 0 1 * *";
1728
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
841 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
842 let data = {};
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
843 let config = {};
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
844 data["kind"] = IMPORTTYPEKIND[this.import_];
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
845
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
846 if (this.isURLRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
847 if (!this.url) return;
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
848 config["url"] = this.url;
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
849 config["insecure"] = this.insecure;
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
850 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
851 if (this.isSortbyRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
852 if (!this.sortBy) return;
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
853 config["sort-by"] = this.sortBy;
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
854 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
855 if (this.isFeatureTypeRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
856 if (!this.featureType) return;
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
857 config["feature-type"] = this.featureType;
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
858 }
2563
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
859 if (this.isToleranceRequired) {
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
860 if (!this.tolerance) return;
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
861 config["tolerance"] = parseFloat(this.tolerance);
dc4fae4bdb8f Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents: 2387
diff changeset
862 }
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
863 if (this.isCredentialsRequired) {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
864 if (!this.username || !this.password) return;
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
865 config = {
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
866 ...config,
2312
b87211f595ae import-schedule: fix edit waterway gauge import. transmitting cedentials correctly
Thomas Junk <thomas.junk@intevation.de>
parents: 2307
diff changeset
867 user: this.username,
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
868 password: this.password
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
869 };
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
870 }
1858
108a049c8394 importqueue: fairwaydimensions removed typos. should work now
Thomas Junk <thomas.junk@intevation.de>
parents: 1857
diff changeset
871 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
872 if (
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
873 !this.LOS ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
874 !this.minWidth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
875 !this.maxWidth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
876 !this.depth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
877 !this.sourceOrganization
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
878 )
1857
9141abe7c75a import fairwaydimensions: fields pushed/retrieved
Thomas Junk <thomas.junk@intevation.de>
parents: 1854
diff changeset
879 return;
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
880 config = { ...config, los: this.LOS, depth: this.depth };
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
881 config["min-width"] = this.minWidth;
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
882 config["max-width"] = this.maxWidth;
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
883 config["source-organization"] = this.sourceOrganization;
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
884 }
2061
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
885 if (this.scheduled) config["cron"] = cron;
4a0d4e50768d frontend adapted to new backend
Thomas Junk <thomas.junk@intevation.de>
parents: 2035
diff changeset
886 config["send-email"] = this.eMailNotification;
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
887 if (!this.id) {
2102
e9879eb7e965 importschedule: in case of UPDATE send proper document
Thomas Junk <thomas.junk@intevation.de>
parents: 2088
diff changeset
888 data["config"] = config;
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
889 this.$store
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
890 .dispatch("importschedule/saveCurrentSchedule", data)
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
891 .then(response => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
892 const { id } = response.data;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
893 displayInfo({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
894 title: this.$gettext("Import"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
895 message: this.$gettext("Saved import: #") + id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
896 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
897 this.closeDetailview();
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
898 this.$store
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
899 .dispatch("importschedule/loadSchedules")
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
900 .catch(error => {
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
901 const { status, data } = error.response;
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
902 displayError({
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
903 title: this.gettext("Backend Error"),
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
904 message: `${status}: ${data.message || data}`
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
905 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
906 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
907 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
908 .catch(error => {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
909 const { status, data } = error.response;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
910 displayError({
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
911 title: this.$gettext("Backend Error"),
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
912 message: `${status}: ${data.message || data}`
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
913 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
914 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
915 } else {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
916 this.$store
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
917 .dispatch("importschedule/updateCurrentSchedule", {
2102
e9879eb7e965 importschedule: in case of UPDATE send proper document
Thomas Junk <thomas.junk@intevation.de>
parents: 2088
diff changeset
918 data: config,
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
919 id: this.id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
920 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
921 .then(response => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
922 const { id } = response.data;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
923 displayInfo({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
924 title: this.$gettext("Import"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
925 message: this.$gettext("update import: #") + id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
926 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
927 this.closeDetailview();
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
928 this.$store
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
929 .dispatch("importschedule/loadSchedules")
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
930 .catch(error => {
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
931 const { status, data } = error.response;
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
932 displayError({
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
933 title: this.gettext("Backend Error"),
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
934 message: `${status}: ${data.message || data}`
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
935 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
936 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
937 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
938 .catch(error => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
939 const { status, data } = error.response;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
940 displayError({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
941 title: this.$gettext("Backend Error"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
942 message: `${status}: ${data.message || data}`
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
943 });
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
944 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
945 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
946 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
947 closeDetailview() {
2033
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
948 this.$store.commit("importschedule/clearCurrentSchedule");
431f97fd873b importschedule: extracted to separate store
Thomas Junk <thomas.junk@intevation.de>
parents: 2031
diff changeset
949 this.$store.commit("importschedule/setImportScheduleDetailInvisible");
1998
ceb6aaff6c8b Backed out changeset 74c03fec0a91
Thomas Junk <thomas.junk@intevation.de>
parents: 1997
diff changeset
950 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
951 },
2035
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
952 IMPORTTYPES: IMPORTTYPES,
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
953 on: "on",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
954 off: "off",
2197
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
955 FILE: app.$gettext("File"),
3203c53a8d29 import_schedule: user is able to choose between file upload or URL as import type for bottleneckimport
Thomas Junk <thomas.junk@intevation.de>
parents: 2193
diff changeset
956 URL: app.$gettext("URL"),
2035
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
957 EVERY: app.$gettext("Every"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
958 MINUTESPAST: app.$gettext("minutes past"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
959 ON: app.$gettext("on"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
960 OF: app.$gettext("of"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
961 AT: app.$gettext("at"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
962 OCLOCK: app.$gettext("o' clock"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
963 CRONMODE: {
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
964 "15minutes": app.$gettext("15 minutes"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
965 hour: app.$gettext("hour"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
966 day: app.$gettext("day"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
967 week: app.$gettext("week"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
968 month: app.$gettext("month"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
969 year: app.$gettext("year")
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
970 },
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
971 DAYSOFWEEK: {
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
972 1: app.$gettext("Monday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
973 2: app.$gettext("Tuesday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
974 3: app.$gettext("Wednesday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
975 4: app.$gettext("Thursday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
976 5: app.$gettext("Friday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
977 6: app.$gettext("Saturday"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
978 0: app.$gettext("Sunday")
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
979 },
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
980 MONTHS: {
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
981 1: app.$gettext("January"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
982 2: app.$gettext("February"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
983 3: app.$gettext("March"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
984 4: app.$gettext("April"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
985 5: app.$gettext("May"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
986 6: app.$gettext("June"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
987 7: app.$gettext("July"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
988 8: app.$gettext("August"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
989 9: app.$gettext("September"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
990 10: app.$gettext("October"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
991 11: app.$gettext("November"),
2f6cadcb3558 importschedule: moved constants
Thomas Junk <thomas.junk@intevation.de>
parents: 2033
diff changeset
992 12: app.$gettext("December")
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
993 }
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
994 };
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
995 </script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
996
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
997 <style lang="scss" scoped>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
998 .cronfield {
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
999 width: 55px;
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
1000 }
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
1001
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
1002 .importscheduledetailscard {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
1003 min-height: 550px;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
1004 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
1005
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
1006 .importscheduledetails {
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
1007 width: 100%;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
1008 margin-top: $offset;
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
1009 margin-right: $offset;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
1010 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
1011
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1012 .trigger {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1013 position: absolute;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1014 left: $large-offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1015 bottom: $offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1016 }
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1017
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
1018 .submit-button {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
1019 position: absolute;
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
1020 right: $large-offset;
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
1021 bottom: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
1022 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1023 </style>