annotate client/src/components/importschedule/Importscheduledetail.vue @ 1854:79283856f9cb

fd import: UI - added unit of measurement
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 17 Jan 2019 11:36:59 +0100
parents f1ac917ec4a0
children 9141abe7c75a
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
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
3 class="importscheduledetails fadeIn animated"
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">
1480
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1455
diff changeset
7 <h6
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1455
diff changeset
8 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1455
diff changeset
9 >
1773
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
10 {{ dialogLabel }}
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
11 <span @click="closeDetailview" class="closebutton">
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 <font-awesome-icon icon="times"></font-awesome-icon>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
13 </span>
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
14 </h6>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 <div class="card-body">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
16 <form @submit.prevent="save" class="ml-2 mr-2">
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
17 <div class="d-flex flex-row">
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
18 <div class="flex-column w-50 mr-3">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
19 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
20 <small class="text-muted">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
21 <translate>Imports</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
22 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
23 </div>
1587
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
24 <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
25 <option :value="$options.IMPORTTYPES.BOTTLENECK"
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
26 ><translate>Bottlenecks</translate></option
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
27 >
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
28 <option :value="$options.IMPORTTYPES.WATERWAYAXIS"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
29 ><translate>Waterway axis</translate></option
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
30 >
1749
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
31 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT"
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
32 ><translate>Gauge measurement</translate></option
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
33 >
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
34 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY"
1767
e84f78cd0d2f Available Fairway Depths
Thomas Junk <thomas.junk@intevation.de>
parents: 1750
diff changeset
35 ><translate>Available Fairway Depths</translate></option
1749
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
36 >
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
37 <option :value="$options.IMPORTTYPES.WATERWAYAREA"
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
38 ><translate>Waterwayarea</translate></option
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
39 >
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
40 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSIONS"
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
41 ><translate>Fairwaydimensions</translate></option
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
42 >
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
43 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES"
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
44 ><translate>Waterway gauges</translate></option
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
45 >
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
46 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
47 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
48 <div class="flex-column ml-4">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
49 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
50 <small class="text-muted">
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
51 <translate>Email Notification</translate>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
52 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
53 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
54 <div class="flex-flex-row text-left">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
55 <toggle-button
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
56 v-model="eMailNotification"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
57 class="mt-2"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
58 :speed="100"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
59 :labels="{
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
60 checked: this.$options.on,
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
61 unchecked: this.$options.off
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
62 }"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
63 :width="60"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
64 :height="30"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
65 />
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
66 </div>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
67 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
68 </div>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
69 <div v-if="isURLRequired">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
70 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
71 <div class="flex-column mt-3 mr-3 w-100">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
72 <div class="flex-row text-left">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
73 <small class="text-muted"> <translate>URL</translate> </small>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
74 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
75 <div class="w-100">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
76 <input v-model="url" class="form-control" type="url" />
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
77 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
78 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
79 <div v-if="false" class="flex-column mt-3 text-left">
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
80 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
81 <small class="text-muted mr-2"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
82 ><translate>Insecure</translate>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
83 </small>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
84 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
85 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
86 <toggle-button
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
87 v-model="insecure"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
88 class="mt-2"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
89 :speed="100"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
90 :color="{
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
91 checked: '#FF0000',
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
92 unchecked: '#E9ECEF',
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
93 disabled: '#CCCCCC'
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
94 }"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
95 :labels="{
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
96 checked: this.$options.on,
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
97 unchecked: this.$options.off
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
98 }"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
99 :width="60"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
100 :height="30"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
101 />
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
102 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
103 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
104 </div>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
105 <div v-if="!url" class="d-flex flex-row">
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
106 <small
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
107 ><translate class="text-danger"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
108 >Please enter a URL</translate
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
109 ></small
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
110 >
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
111 </div>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
112 </div>
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
113 <div v-if="isCredentialsRequired">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
114 <div class="d-flex flex-row">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
115 <div class="flex-column mt-3 mr-3 w-50">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
116 <div class="flex-row text-left">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
117 <small class="text-muted">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
118 <translate>Username</translate>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
119 </small>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
120 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
121 <div class="w-100">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
122 <input v-model="username" class="form-control" type="text" />
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
123 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
124 <div v-if="!username" class="d-flex flex-row">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
125 <small
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
126 ><translate class="text-danger"
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
127 >Please enter a Username</translate
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
128 ></small
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
129 >
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
130 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
131 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
132 <div class="flex-column mt-3 w-50">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
133 <div class="flex-row text-left">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
134 <small class="text-muted">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
135 <translate>Password</translate>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
136 </small>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
137 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
138 <div class="w-100">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
139 <input v-model="password" class="form-control" type="text" />
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
140 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
141 <div v-if="!password" class="d-flex flex-row">
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
142 <small
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
143 ><translate class="text-danger"
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
144 >Please enter a Password</translate
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
145 ></small
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
146 >
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
147 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
148 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
149 </div>
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
150 </div>
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
151 <div v-if="isFeatureTypeRequired">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
152 <div class="d-flex flex-row">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
153 <div class="flex-column mt-3 mr-3 w-50">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
154 <div class="flex-row text-left">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
155 <small class="text-muted">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
156 <translate>Featuretype</translate>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
157 </small>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
158 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
159 <div class="w-100">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
160 <input
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
161 v-model="featureType"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
162 class="form-control"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
163 type="text"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
164 />
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
165 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
166 <div v-if="!featureType" class="d-flex flex-row">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
167 <small
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
168 ><translate class="text-danger"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
169 >Please enter a Featuretype</translate
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
170 ></small
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
171 >
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
172 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
173 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
174 <div class="flex-column mt-3 w-50">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
175 <div class="flex-row text-left">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
176 <small class="text-muted">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
177 <translate>SortBy</translate>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
178 </small>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
179 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
180 <div class="w-100">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
181 <input v-model="sortBy" class="form-control" type="text" />
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
182 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
183 <div v-if="!sortBy" class="d-flex flex-row">
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
184 <small
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
185 ><translate class="text-danger"
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
186 >Please enter SortBy</translate
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
187 ></small
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
188 >
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
189 </div>
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
190 </div>
1707
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
191 </div>
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
192 </div>
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
193 <div v-if="import_ == $options.IMPORTTYPES.FAIRWAYDIMENSIONS">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
194 <div class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
195 <div class="flex-column mt-3 mr-3 w-50">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
196 <div class="flex-row text-left">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
197 <small class="text-muted"> <translate>LOS</translate> </small>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
198 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
199 <div class="w-100">
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
200 <select v-model="LOS" class="form-control">
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
201 <option value="1">1</option>
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
202 <option value="2">2</option>
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
203 <option value="3">3</option>
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
204 </select>
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
205 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
206 <div v-if="!LOS" class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
207 <small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
208 ><translate class="text-danger"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
209 >Please enter a level of service</translate
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
210 ></small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
211 >
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
212 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
213 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
214 <div class="flex-column mt-3 w-50">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
215 <div class="flex-row text-left">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
216 <small class="text-muted">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
217 <translate>Depth</translate>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
218 </small>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
219 </div>
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
220 <div class="d-flex flex-row">
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
221 <input v-model="depth" class="form-control" type="number" />
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
222 <div class="ml-2 my-auto">cm</div>
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
223 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
224 <div v-if="!depth" class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
225 <small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
226 ><translate class="text-danger"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
227 >Please enter a depth</translate
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
228 ></small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
229 >
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
230 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
231 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
232 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
233 <div class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
234 <div class="flex-column mt-3 mr-3 w-50">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
235 <div class="flex-row text-left">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
236 <small class="text-muted">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
237 <translate>MinWidth</translate>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
238 </small>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
239 </div>
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
240 <div class="d-flex flex-row">
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
241 <input
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
242 v-model="minWidth"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
243 class="form-control"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
244 type="number"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
245 />
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
246 <div class="ml-2 my-auto">m</div>
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
247 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
248 <div v-if="!minWidth" class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
249 <small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
250 ><translate class="text-danger"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
251 >Please enter a minimum width</translate
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
252 ></small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
253 >
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
254 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
255 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
256 <div class="flex-column mt-3 w-50">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
257 <div class="flex-row text-left">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
258 <small class="text-muted">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
259 <translate>MaxWidth</translate>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
260 </small>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
261 </div>
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
262 <div class="d-flex flex-row">
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
263 <input
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
264 v-model="maxWidth"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
265 class="form-control"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
266 type="number"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
267 />
1854
79283856f9cb fd import: UI - added unit of measurement
Thomas Junk <thomas.junk@intevation.de>
parents: 1830
diff changeset
268 <div class="ml-2 my-auto">m</div>
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
269 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
270 <div v-if="!maxWidth" class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
271 <small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
272 ><translate class="text-danger"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
273 >Please enter a maximum width</translate
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
274 ></small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
275 >
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
276 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
277 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
278 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
279 <div class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
280 <div class="flex-column mt-3 mr-3 w-50">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
281 <div class="flex-row text-left">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
282 <small class="text-muted">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
283 <translate>Source orgranization</translate>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
284 </small>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
285 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
286 <div class="w-100">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
287 <input
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
288 v-model="sourceOrganization"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
289 class="form-control"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
290 type="text"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
291 />
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
292 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
293 <div v-if="!sourceOrganization" class="d-flex flex-row">
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
294 <small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
295 ><translate class="text-danger"
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
296 >Please enter a source orgranization</translate
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
297 ></small
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
298 >
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
299 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
300 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
301 </div>
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
302 </div>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
303 <div class="d-flex flex-row">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
304 <div class="flex-column mt-3 mr-4">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
305 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
306 <small class="text-muted">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
307 <translate>Scheduled</translate>?
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
308 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
309 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
310 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
311 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
312 v-model="scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
313 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
314 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
315 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
316 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
317 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
318 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
319 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
320 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
321 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
322 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
323 </div>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
324 <div class="flex-column mt-3 mr-2">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
325 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
326 <small class="text-muted">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
327 <translate>Simple Schedule</translate>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
328 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
329 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
330 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
331 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
332 :disabled="!scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
333 v-model="easyCron"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
334 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
335 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
336 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
337 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
338 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
339 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
340 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
341 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
342 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
343 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
344 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
345 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
346 <div class="flex-column w-100 mr-2">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
347 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
348 <small class="text-muted">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
349 <translate>Schedule</translate>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
350 </small>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
351 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
352 <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
353 <select
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
354 :disabled="!scheduled"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
355 v-model="simple"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
356 class="form-control"
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
357 ><option value="weekly"><translate>Weekly</translate></option>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
358 <option value="monthly"><translate>Monthly</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
359 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
360 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
361 <div v-if="!easyCron" class="text-left w-100">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
362 <div class="d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
363 <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
364 <select
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
365 :disabled="!scheduled"
1571
b3f2d43f43e4 added 15minutes as custom value
Thomas Junk <thomas.junk@intevation.de>
parents: 1570
diff changeset
366 style="width: 130px;"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
367 v-model="cronMode"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
368 class="form-control"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
369 @change="clearInputs"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
370 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
371 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
372 v-for="(option, key) in $options.CRONMODE"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
373 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
374 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
375 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
376 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
377 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
378 <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
379 <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
380 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
381 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
382 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
383 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
384 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
385 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
386 <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
387 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
388 <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
389 <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
390 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
391 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
392 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
393 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
394 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
395 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
396 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
397 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
398 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
399 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
400 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
401 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
402 <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
403 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
404 <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
405 <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
406 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
407 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
408 v-model="day"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
409 class="form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
410 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
411 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
412 v-for="(option, key) in $options.DAYSOFWEEK"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
413 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
414 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
415 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
416 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
417 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
418 <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
419 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
420 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
421 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
422 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
423 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
424 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
425 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
426 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
427 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
428 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
429 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
430 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
431 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
432 <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
433 <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
434 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
435 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
436 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
437 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
438 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
439 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
440 <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
441 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
442 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
443 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
444 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
445 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
446 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
447 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
448 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
449 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
450 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
451 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
452 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
453 <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
454 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
455 <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
456 <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
457 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
458 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
459 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
460 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
461 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
462 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
463 <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
464 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
465 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
466 v-model="month"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
467 class="ml-1 mr-1 form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
468 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
469 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
470 v-for="(option, key) in $options.MONTHS"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
471 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
472 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
473 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
474 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
475 </select>
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
476 <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
477 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
478 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
479 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
480 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
481 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
482 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
483 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
484 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
485 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
486 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
487 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
488 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
489 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
490 </div>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
491 <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
492 <h5 class="mt-auto mb-auto mr-2">
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
493 <translate>Cronstring</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
494 </h5>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
495 <input
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
496 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
497 class="form-control"
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
498 v-model="cronString"
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
499 type="text"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
500 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
501 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
502 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
503 </div>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
504 <button type="submit" class="shadow-sm btn btn-info submit-button">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
505 <translate>Submit</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
506 </button>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
507 <button
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
508 @click="triggerManualImport"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
509 type="button"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
510 class="shadow-sm btn btn-outline-info trigger"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
511 :disabled="!triggerActive"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
512 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
513 <font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
514 class="fa-fw mr-2"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
515 fixed-width
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
516 icon="play"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
517 ></font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
518 ><translate>Trigger import</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
519 </button>
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
520 </form>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
521 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
522 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
523 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
524 </template>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
525
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
526 <script>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
527 /* 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
528 * without warranty, see README.md and license for details.
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
529 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
530 * SPDX-License-Identifier: AGPL-3.0-or-later
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
531 * License-Filename: LICENSES/AGPL-3.0.txt
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
532 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
533 * Copyright (C) 2018 by via donau
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
534 * – Österreichische Wasserstraßen-Gesellschaft mbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
535 * Software engineering by Intevation GmbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
536 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
537 * Author(s):
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
538 * Thomas Junk <thomas.junk@intevation.de>
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
539 */
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
540 import {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
541 IMPORTTYPES,
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
542 IMPORTTYPEKIND,
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
543 initializeCurrentSchedule
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
544 } from "@/store/imports.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
545 import { mapState } from "vuex";
1613
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
546 import { displayInfo, displayError } from "@/lib/errors.js";
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
547 import app from "@/main.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
548
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
549 export default {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
550 name: "importscheduledetail",
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
551 data() {
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
552 return initializeCurrentSchedule();
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
553 },
1713
d4702b0ff15f use IMPORTTYPES from store
Thomas Junk <thomas.junk@intevation.de>
parents: 1712
diff changeset
554 IMPORTTYPES: IMPORTTYPES,
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
555 EVERY: app.$gettext("Every"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
556 MINUTESPAST: app.$gettext("minutes past"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
557 ON: app.$gettext("on"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
558 OF: app.$gettext("of"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
559 AT: app.$gettext("at"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
560 OCLOCK: app.$gettext("o' clock"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
561 CRONMODE: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
562 "15minutes": app.$gettext("15 minutes"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
563 hour: app.$gettext("hour"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
564 day: app.$gettext("day"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
565 week: app.$gettext("week"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
566 month: app.$gettext("month"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
567 year: app.$gettext("year")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
568 },
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
569 DAYSOFWEEK: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
570 1: app.$gettext("Monday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
571 2: app.$gettext("Tuesday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
572 3: app.$gettext("Wednesday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
573 4: app.$gettext("Thursday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
574 5: app.$gettext("Friday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
575 6: app.$gettext("Saturday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
576 0: app.$gettext("Sunday")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
577 },
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
578 MONTHS: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
579 1: app.$gettext("January"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
580 2: app.$gettext("February"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
581 3: app.$gettext("March"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
582 4: app.$gettext("April"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
583 5: app.$gettext("May"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
584 6: app.$gettext("June"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
585 7: app.$gettext("July"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
586 8: app.$gettext("August"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
587 9: app.$gettext("September"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
588 10: app.$gettext("October"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
589 11: app.$gettext("November"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
590 12: app.$gettext("December")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
591 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
592 mounted() {
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
593 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
594 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
595 watch: {
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
596 cronMode() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
597 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
598 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
599 minutes() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
600 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
601 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
602 hour() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
603 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
604 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
605 month() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
606 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
607 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
608 day() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
609 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
610 },
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
611 dayOfMonth() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
612 this.cronString = this.calcCronString();
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
613 },
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
614 importScheduleDetailVisible() {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
615 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
616 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
617 cronString() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
618 if (this.isWeekly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
619 this.simple = "weekly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
620 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
621 if (this.isMonthly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
622 this.simple = "monthly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
623 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
624 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
625 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
626 computed: {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
627 ...mapState("imports", ["importScheduleDetailVisible", "currentSchedule"]),
1773
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
628 dialogLabel() {
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
629 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
630 return this.$gettext("New Import");
bd72d1a7ffe6 in edit case, the title shows import and its according id
Thomas Junk <thomas.junk@intevation.de>
parents: 1767
diff changeset
631 },
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
632 isCredentialsRequired() {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
633 switch (this.import_) {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
634 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
635 return true;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
636 default:
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
637 return false;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
638 }
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
639 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
640 isURLRequired() {
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
641 switch (this.import_) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
642 case this.$options.IMPORTTYPES.BOTTLENECK:
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
643 case this.$options.IMPORTTYPES.WATERWAYAXIS:
1749
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
644 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
0a6b2ace7b7e Gauge measurement, Fairway availability implemented
Thomas Junk <thomas.junk@intevation.de>
parents: 1747
diff changeset
645 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
646 case this.$options.IMPORTTYPES.WATERWAYAREA:
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
647 case this.$options.IMPORTTYPES.FAIRWAYDIMENSIONS:
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
648 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
649 return true;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
650 default:
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
651 return false;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
652 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
653 },
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
654 isFeatureTypeRequired() {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
655 switch (this.import_) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
656 case this.$options.IMPORTTYPES.WATERWAYAXIS:
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
657 case this.$options.IMPORTTYPES.WATERWAYAREA:
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
658 case this.$options.IMPORTTYPES.FAIRWAYDIMENSIONS:
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
659 return true;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
660 default:
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
661 return false;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
662 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
663 },
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
664 isSortbyRequired() {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
665 switch (this.import_) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
666 case this.$options.IMPORTTYPES.WATERWAYAXIS:
1789
4a7aa3f57efe importschedule: frontend for WW_Area and Fairwaydimensions
Thomas Junk <thomas.junk@intevation.de>
parents: 1773
diff changeset
667 case this.$options.IMPORTTYPES.WATERWAYAREA:
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
668 return true;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
669 default:
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
670 return false;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
671 }
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
672 },
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
673 fixedSource() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
674 if (this.import_ === this.$options.IMPORTTYPES.BOTTLENECK) return true;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
675 return false;
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
676 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
677 },
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
678 methods: {
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
679 calcCronString() {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
680 let getValue = value => {
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
681 return this[value] ? this[value] : "*";
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
682 };
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
683 if (this.cronMode === "15minutes") return "0 */15 * * * *";
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
684 const min = getValue("minutes");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
685 const h = getValue("hour");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
686 const dm = getValue("dayOfMonth");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
687 const m = getValue("month");
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
688 const wd = getValue("day");
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
689 return `0 ${min} ${h} ${dm} ${m} ${wd}`;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
690 },
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
691 validateBottleneckfields() {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
692 return !!this.url;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
693 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
694 initialize() {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
695 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
696 this.importType = this.currentSchedule.importType;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
697 this.schedule = this.currentSchedule.schedule;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
698 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
699 this.import_ = this.currentSchedule.import_;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
700 this.importSource = this.currentSchedule.importSource;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
701 this.eMailNotification = this.currentSchedule.eMailNotification;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
702 this.easyCron = this.currentSchedule.easyCron;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
703 this.cronMode = this.currentSchedule.cronMode;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
704 this.minutes = this.currentSchedule.minutes;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
705 this.month = this.currentSchedule.month;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
706 this.hour = this.currentSchedule.hour;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
707 this.day = this.currentSchedule.day;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
708 this.dayOfMonth = this.currentSchedule.dayOfMonth;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
709 this.simple = this.currentSchedule.simple;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
710 this.url = this.currentSchedule.url;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
711 this.insecure = this.currentSchedule.insecure;
1734
549337e6facd importschedule: POC edit functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 1731
diff changeset
712 this.cronString = this.currentSchedule.cronString;
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
713 this.featureType = this.currentSchedule.featureType;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
714 this.sortBy = this.currentSchedule.sortBy;
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
715 this.username = this.currentSchedule.username;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
716 this.password = this.currentSchedule.password;
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
717 this.LOS = this.currentSchedule.LOS;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
718 this.minWidth = this.currentSchedule.minWidth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
719 this.maxWidth = this.currentSchedule.maxWidth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
720 this.depth = this.currentSchedule.depth;
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
721 this.sourceOrganization = this.currentSchedule.sourceOrganization;
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
722 },
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
723 isWeekly(cron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
724 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
725 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
726 isMonthly(cron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
727 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
728 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
729 clearInputs() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
730 this.minutes = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
731 this.month = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
732 this.hour = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
733 this.day = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
734 this.dayOfMonth = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
735 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
736 triggerManualImport() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
737 if (!this.triggerActive) return;
1725
b24a54c684bd importschedule: UI improvements
Thomas Junk <thomas.junk@intevation.de>
parents: 1724
diff changeset
738 if (!this.import_) return;
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
739 let data = {};
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
740 if (this.isURLRequired) {
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
741 if (!this.url) return;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
742 data["url"] = this.url;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
743 data["insecure"] = this.insecure;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
744 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
745 if (this.isFeatureTypeRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
746 if (!this.featureType) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
747 data["feature-type"] = this.featureType;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
748 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
749 if (this.isSortbyRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
750 if (!this.sortBy) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
751 data["sort-by"] = this.sortBy;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
752 }
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
753 if (this.isCredentialsRequired) {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
754 if (!this.username || !this.password) return;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
755 data["username"] = this.username;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
756 data["password"] = this.password;
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
757 }
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
758 this.triggerActive = false;
1709
8ff8d873ef6b refac: trigger manual import via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1707
diff changeset
759 this.$store
1713
d4702b0ff15f use IMPORTTYPES from store
Thomas Junk <thomas.junk@intevation.de>
parents: 1712
diff changeset
760 .dispatch("imports/triggerImport", { type: this.import_, data })
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
761 .then(response => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
762 const { id } = response.data;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
763 displayInfo({
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
764 title: this.$gettext("Import"),
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
765 message: this.$gettext("Manually triggered import: #") + id
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
766 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
767 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
768 .catch(error => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
769 const { status, data } = error.response;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
770 displayError({
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
771 title: this.$gettext("Backend Error"),
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
772 message: `${status}: ${data.message || data}`
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
773 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
774 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
775 .finally(() => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
776 this.triggerActive = true;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
777 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
778 },
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
779 save() {
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
780 const addAttribute = (data, attribute) => {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
781 if (!data["attributes"]) data.attributes = {};
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
782 data["attributes"] = { ...data["attributes"], ...attribute };
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
783 };
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
784 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
785 let cron = this.cronString;
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
786 if (this.easyCron) {
1738
8202d485331b importschedule: set seconds constant 0
Thomas Junk <thomas.junk@intevation.de>
parents: 1736
diff changeset
787 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
788 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
789 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
790 let data = {};
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
791 if (this.isURLRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
792 if (!this.url) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
793 data["url"] = this.url;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
794 addAttribute(data, {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
795 insecure: this.insecure + ""
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
796 });
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
797 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
798 if (this.isSortbyRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
799 if (!this.sortBy) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
800 addAttribute(data, {
1750
b28faf6fbf98 sort-by
Thomas Junk <thomas.junk@intevation.de>
parents: 1749
diff changeset
801 "sort-by": this.sortBy
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
802 });
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
803 }
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
804 if (this.isFeatureTypeRequired) {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
805 if (!this.featureType) return;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
806 addAttribute(data, {
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
807 "feature-type": this.featureType
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
808 });
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
809 }
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
810 if (this.isCredentialsRequired) {
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
811 if (!this.username || !this.password) return;
1830
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
812 addAttribute(data, {
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
813 username: this.username,
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
814 password: this.password
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
815 });
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
816 }
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
817 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSIONS) {
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
818 if (
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
819 !this.LOS ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
820 !this.minWidth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
821 !this.maxWidth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
822 !this.depth ||
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
823 !this.sourceOrganization
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
824 )
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
825 addAttribute(data, {
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
826 LOS: this.LOS,
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
827 minWidth: this.minWidth,
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
828 maxWidth: this.maxWidth,
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
829 depth: this.depth,
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
830 sourceOrganization: this.sourceOrganization
f1ac917ec4a0 import fairwaydimensions: added fields. PLUS TRANSLATIONS
Thomas Junk <thomas.junk@intevation.de>
parents: 1791
diff changeset
831 });
1791
0f98ef2531a5 importschedule: frontend for waterway gauges etd
Thomas Junk <thomas.junk@intevation.de>
parents: 1789
diff changeset
832 }
1747
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
833 if (this.scheduled) data["cron"] = cron;
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
834 data["kind"] = IMPORTTYPEKIND[this.import_];
90178f4ce255 import waterway axis
Thomas Junk <thomas.junk@intevation.de>
parents: 1738
diff changeset
835 data["send-email"] = this.eMailNotification;
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
836 if (!this.id) {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
837 this.$store
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
838 .dispatch("imports/saveCurrentSchedule", data)
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
839 .then(response => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
840 const { id } = response.data;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
841 displayInfo({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
842 title: this.$gettext("Import"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
843 message: this.$gettext("Saved import: #") + id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
844 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
845 this.closeDetailview();
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
846 this.$store.dispatch("imports/loadSchedules").catch(error => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
847 const { status, data } = error.response;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
848 displayError({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
849 title: this.gettext("Backend Error"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
850 message: `${status}: ${data.message || data}`
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
851 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
852 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
853 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
854 .catch(error => {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
855 const { status, data } = error.response;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
856 displayError({
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
857 title: this.$gettext("Backend Error"),
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
858 message: `${status}: ${data.message || data}`
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
859 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
860 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
861 } else {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
862 this.$store
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
863 .dispatch("imports/updateCurrentSchedule", {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
864 data: data,
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
865 id: this.id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
866 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
867 .then(response => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
868 const { id } = response.data;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
869 displayInfo({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
870 title: this.$gettext("Import"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
871 message: this.$gettext("update import: #") + id
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
872 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
873 this.closeDetailview();
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
874 this.$store.dispatch("imports/loadSchedules").catch(error => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
875 const { status, data } = error.response;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
876 displayError({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
877 title: this.gettext("Backend Error"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
878 message: `${status}: ${data.message || data}`
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
879 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
880 });
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
881 })
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
882 .catch(error => {
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
883 const { status, data } = error.response;
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
884 displayError({
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
885 title: this.$gettext("Backend Error"),
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
886 message: `${status}: ${data.message || data}`
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
887 });
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
888 });
1731
8dd7452929ca WIP: edit scheduled imports
Thomas Junk <thomas.junk@intevation.de>
parents: 1728
diff changeset
889 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
890 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
891 closeDetailview() {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
892 this.$store.commit("imports/clearCurrentSchedule");
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
893 this.$store.commit("imports/setImportScheduleDetailInvisible");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
894 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
895 },
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
896 imports: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
897 on: "on",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
898 off: "off",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
899 periods: {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
900 DAILY: "daily",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
901 MONTHLY: "monthly"
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
902 }
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
903 };
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
904 </script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
905
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
906 <style lang="scss" scoped>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
907 .cronfield {
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
908 width: 55px;
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
909 }
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
910
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
911 .importscheduledetailscard {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
912 min-height: 550px;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
913 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
914
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
915 .importscheduledetails {
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
916 width: 100%;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
917 margin-top: $offset;
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
918 margin-right: $offset;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
919 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
920
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
921 .trigger {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
922 position: absolute;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
923 left: $large-offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
924 bottom: $offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
925 }
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
926
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
927 .submit-button {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
928 position: absolute;
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
929 right: $large-offset;
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
930 bottom: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
931 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
932 </style>