annotate client/src/components/importschedule/Importscheduledetail.vue @ 1728:647195199dc8

importschedule: now with display of cron and delete function
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 09 Jan 2019 12:39:20 +0100
parents 9e1abe157e47
children 8dd7452929ca
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 >
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
10 <translate>New import</translate>
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">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
17 <div class="d-flex flex-row w-100">
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 >
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
28 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
29 </div>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
30 <div v-if="import_" class="flex-column w-50">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
31 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
32 <small class="text-muted">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
33 <translate>Importtype</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
34 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
35 </div>
1587
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
36 <select
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
37 :disabled="fixedSource"
1587
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
38 v-model="importSource"
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
39 class="custom-select"
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
40 id="importsource"
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
41 >
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
42 <option :value="this.$options.IMPORTSOURCES.SOAP"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
43 ><translate>SOAP</translate></option
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
44 >
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
45 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
46 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
47 </div>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
48 <div v-if="isURLRequired">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
49 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
50 <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
51 <div class="flex-row text-left">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
52 <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
53 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
54 <div class="w-100">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
55 <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
56 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
57 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
58 <div class="flex-column mt-3 text-left">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
59 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
60 <small class="text-muted mr-2"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
61 ><translate>Insecure</translate>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
62 </small>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
63 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
64 <div class="d-flex flex-row">
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
65 <toggle-button
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
66 v-model="insecure"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
67 class="mt-2"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
68 :speed="100"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
69 :color="{
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
70 checked: '#FF0000',
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
71 unchecked: '#E9ECEF',
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
72 disabled: '#CCCCCC'
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
73 }"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
74 :labels="{
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
75 checked: this.$options.on,
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
76 unchecked: this.$options.off
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
77 }"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
78 :width="60"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
79 :height="30"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
80 />
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
81 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
82 </div>
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
83 </div>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
84 <div v-if="!url" class="d-flex flex-row">
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
85 <small
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
86 ><translate class="text-danger"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
87 >Please enter a URL</translate
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
88 ></small
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
89 >
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
90 </div>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
91 </div>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
92 <div class="flex-column mt-3 w-100 mr-2">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
93 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
94 <small class="text-muted">
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
95 <translate>Email Notification</translate>
1707
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
96 </small>
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
97 </div>
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
98 <div class="flex-flex-row text-left">
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
99 <toggle-button
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
100 v-model="eMailNotification"
1707
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
101 class="mt-2"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
102 :speed="100"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
103 :labels="{
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
104 checked: this.$options.on,
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
105 unchecked: this.$options.off
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
106 }"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
107 :width="60"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
108 :height="30"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
109 />
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
110 </div>
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
111 </div>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
112 <div class="d-flex flex-row">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
113 <div class="flex-column mt-3 mr-4">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
114 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
115 <small class="text-muted">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
116 <translate>Scheduled</translate>?
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
117 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
118 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
119 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
120 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
121 v-model="scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
122 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
123 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
124 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
125 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
126 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
127 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
128 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
129 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
130 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
131 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
132 </div>
1712
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
133 <div class="flex-column mt-3 mr-2">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
134 <div class="flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
135 <small class="text-muted">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
136 <translate>Simple Schedule</translate>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
137 </small>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
138 </div>
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
139 <div class="flex-flex-row text-left">
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
140 <toggle-button
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
141 :disabled="!scheduled"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
142 v-model="easyCron"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
143 class="mt-2"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
144 :speed="100"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
145 :labels="{
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
146 checked: this.$options.on,
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
147 unchecked: this.$options.off
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
148 }"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
149 :width="60"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
150 :height="30"
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
151 />
1368e2a52c29 schedule_detail: scheduling last
Thomas Junk <thomas.junk@intevation.de>
parents: 1711
diff changeset
152 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
153 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
154 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
155 <div class="flex-column w-100 mr-2">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
156 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
157 <small class="text-muted">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
158 <translate>Schedule</translate>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
159 </small>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
160 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
161 <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
162 <select
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
163 :disabled="!scheduled"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
164 v-model="simple"
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
165 class="form-control"
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
166 ><option value="weekly"><translate>Weekly</translate></option>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
167 <option value="monthly"><translate>Monthly</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
168 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
169 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
170 <div v-if="!easyCron" class="text-left w-100">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
171 <div class="d-flex flex-row">
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
172 <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
173 <select
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
174 :disabled="!scheduled"
1571
b3f2d43f43e4 added 15minutes as custom value
Thomas Junk <thomas.junk@intevation.de>
parents: 1570
diff changeset
175 style="width: 130px;"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
176 v-model="cronMode"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
177 class="form-control"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
178 @change="clearInputs"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
179 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
180 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
181 v-for="(option, key) in $options.CRONMODE"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
182 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
183 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
184 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
185 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
186 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
187 <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
188 <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
189 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
190 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
191 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
192 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
193 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
194 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
195 <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
196 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
197 <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
198 <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
199 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
200 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
201 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
202 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
203 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
204 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
205 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
206 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
207 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
208 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
209 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
210 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
211 <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
212 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
213 <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
214 <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
215 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
216 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
217 v-model="day"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
218 class="form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
219 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
220 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
221 v-for="(option, key) in $options.DAYSOFWEEK"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
222 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
223 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
224 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
225 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
226 </select>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
227 <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
228 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
229 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
230 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
231 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
232 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
233 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
234 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
235 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
236 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
237 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
238 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
239 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
240 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
241 <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
242 <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
243 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
244 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
245 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
246 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
247 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
248 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
249 <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
250 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
251 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
252 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
253 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
254 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
255 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
256 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
257 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
258 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
259 class="cronfield ml-1 mr-2 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
260 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
261 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
262 <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
263 </div>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
264 <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
265 <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
266 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
267 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
268 v-model="dayOfMonth"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
269 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
270 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
271 />
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
272 <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
273 <select
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
274 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
275 v-model="month"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
276 class="ml-1 mr-1 form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
277 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
278 <option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
279 v-for="(option, key) in $options.MONTHS"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
280 :value="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
281 :key="key"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
282 >{{ option }}</option
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
283 >
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
284 </select>
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
285 <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
286 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
287 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
288 v-model="hour"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
289 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
290 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
291 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
292 <input
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
293 :disabled="!scheduled"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
294 v-model="minutes"
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
295 class="cronfield ml-1 mr-1 form-control"
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
296 type="number"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
297 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
298 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
299 </div>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
300 <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
301 <h5 class="mt-auto mb-auto mr-2">
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
302 <translate>Cronstring</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
303 </h5>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
304 <input
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
305 :disabled="!scheduled"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
306 class="form-control"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
307 :value="cronString"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
308 type="text"
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
309 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
310 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
311 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
312 </div>
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
313 <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
314 <translate>Submit</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
315 </button>
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
316 <button
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
317 @click="triggerManualImport"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
318 type="button"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
319 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
320 :disabled="!triggerActive"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
321 >
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
322 <font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
323 class="fa-fw mr-2"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
324 fixed-width
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
325 icon="play"
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
326 ></font-awesome-icon
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
327 ><translate>Trigger import</translate>
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
328 </button>
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
329 </form>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
330 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
331 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
332 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
333 </template>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
334
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
335 <script>
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
336 /* 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
337 * without warranty, see README.md and license for details.
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
338 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
339 * SPDX-License-Identifier: AGPL-3.0-or-later
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
340 * License-Filename: LICENSES/AGPL-3.0.txt
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
341 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
342 * Copyright (C) 2018 by via donau
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
343 * – Österreichische Wasserstraßen-Gesellschaft mbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
344 * Software engineering by Intevation GmbH
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
345 *
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
346 * Author(s):
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
347 * Thomas Junk <thomas.junk@intevation.de>
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
348 */
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
349 import { IMPORTTYPES, IMPORTTYPEKIND } from "@/store/imports.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
350 import { mapState } from "vuex";
1613
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
351 import { displayInfo, displayError } from "@/lib/errors.js";
f2d24dceecc7 refac: cleanup import paths
Thomas Junk <thomas.junk@intevation.de>
parents: 1598
diff changeset
352 import app from "@/main.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
353
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
354 export default {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
355 name: "importscheduledetail",
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
356 data() {
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
357 return {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
358 id: null,
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
359 importType: null,
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
360 schedule: null,
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
361 import_: null,
1587
af17c29df8f0 unattended imports: added bottlenecks as import
Thomas Junk <thomas.junk@intevation.de>
parents: 1586
diff changeset
362 importSource: null,
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
363 eMailNotification: false,
1707
74b66527ae81 feat: schedule toggle added to en-/disable scheduling for import
Thomas Junk <thomas.junk@intevation.de>
parents: 1613
diff changeset
364 scheduled: false,
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
365 easyCron: true,
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
366 cronMode: "",
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
367 minutes: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
368 month: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
369 hour: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
370 day: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
371 dayOfMonth: null,
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
372 simple: null,
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
373 url: null,
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
374 insecure: false,
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
375 triggerActive: true
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
376 };
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
377 },
1713
d4702b0ff15f use IMPORTTYPES from store
Thomas Junk <thomas.junk@intevation.de>
parents: 1712
diff changeset
378 IMPORTTYPES: IMPORTTYPES,
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
379 IMPORTSOURCES: {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
380 SOAP: "SOAP"
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
381 },
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
382 EVERY: app.$gettext("Every"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
383 MINUTESPAST: app.$gettext("minutes past"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
384 ON: app.$gettext("on"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
385 OF: app.$gettext("of"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
386 AT: app.$gettext("at"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
387 OCLOCK: app.$gettext("o' clock"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
388 CRONMODE: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
389 "15minutes": app.$gettext("15 minutes"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
390 hour: app.$gettext("hour"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
391 day: app.$gettext("day"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
392 week: app.$gettext("week"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
393 month: app.$gettext("month"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
394 year: app.$gettext("year")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
395 },
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
396 DAYSOFWEEK: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
397 1: app.$gettext("Monday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
398 2: app.$gettext("Tuesday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
399 3: app.$gettext("Wednesday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
400 4: app.$gettext("Thursday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
401 5: app.$gettext("Friday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
402 6: app.$gettext("Saturday"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
403 0: app.$gettext("Sunday")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
404 },
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
405 MONTHS: {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
406 1: app.$gettext("January"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
407 2: app.$gettext("February"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
408 3: app.$gettext("March"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
409 4: app.$gettext("April"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
410 5: app.$gettext("May"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
411 6: app.$gettext("June"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
412 7: app.$gettext("July"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
413 8: app.$gettext("August"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
414 9: app.$gettext("September"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
415 10: app.$gettext("October"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
416 11: app.$gettext("November"),
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
417 12: app.$gettext("December")
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
418 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
419 mounted() {
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
420 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
421 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
422 watch: {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
423 currentSchedule() {
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
424 this.initialize();
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
425 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
426 cronString() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
427 if (this.isWeekly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
428 this.simple = "weekly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
429 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
430 if (this.isMonthly(this.cronString)) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
431 this.simple = "monthly";
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
432 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
433 },
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
434 import_() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
435 if (this.import_ === this.$options.IMPORTTYPES.BOTTLENECK) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
436 this.importSource = this.$options.IMPORTSOURCES.SOAP;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
437 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
438 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
439 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
440 computed: {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
441 ...mapState("imports", ["importScheduleDetailVisible", "currentSchedule"]),
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
442 isURLRequired() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
443 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
444 return false;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
445 },
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
446 cronString: {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
447 get() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
448 let getValue = value => {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
449 return this[value] ? this[value] : "*";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
450 };
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
451 if (this.cronMode === "15minutes") return "*/15 * * * *";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
452 const min = getValue("minutes");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
453 const h = getValue("hour");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
454 const dm = getValue("dayOfMonth");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
455 const m = getValue("month");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
456 const wd = getValue("day");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
457 return `${min} ${h} ${dm} ${m} ${wd}`;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
458 }
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
459 },
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
460 fixedSource() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
461 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
462 return false;
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
463 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
464 },
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
465 methods: {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
466 validateBottleneckfields() {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
467 return !!this.url;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
468 },
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
469 initialize() {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
470 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
471 this.importType = this.currentSchedule.importType;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
472 this.schedule = this.currentSchedule.schedule;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
473 this.import_ = this.currentSchedule.import_;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
474 this.importSource = this.currentSchedule.importSource;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
475 this.eMailNotification = this.currentSchedule.eMailNotification;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
476 this.easyCron = this.currentSchedule.easyCron;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
477 this.cronMode = this.currentSchedule.cronMode;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
478 this.minutes = this.currentSchedule.minutes;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
479 this.month = this.currentSchedule.month;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
480 this.hour = this.currentSchedule.hour;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
481 this.day = this.currentSchedule.day;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
482 this.dayOfMonth = this.currentSchedule.dayOfMonth;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
483 this.simple = this.currentSchedule.simple;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
484 this.url = this.currentSchedule.url;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
485 this.insecure = this.currentSchedule.insecure;
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
486 },
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
487 isWeekly(cron) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
488 return /\d{1,2} \d{1,2} \* \* \d{1}/.test(cron);
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
489 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
490 isMonthly(cron) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
491 return /\d{1,2} \d{1,2} \d{1,2} \* \*/.test(cron);
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
492 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
493 clearInputs() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
494 this.minutes = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
495 this.month = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
496 this.hour = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
497 this.day = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
498 this.dayOfMonth = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
499 },
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
500 triggerManualImport() {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
501 if (!this.triggerActive) return;
1725
b24a54c684bd importschedule: UI improvements
Thomas Junk <thomas.junk@intevation.de>
parents: 1724
diff changeset
502 if (!this.import_) return;
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
503 let data = {};
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
504 if (this.import_ === this.$options.IMPORTTYPES.BOTTLENECK) {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
505 if (!this.url) return;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
506 data["url"] = this.url;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
507 data["insecure"] = this.insecure;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
508 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
509 this.triggerActive = false;
1709
8ff8d873ef6b refac: trigger manual import via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1707
diff changeset
510 this.$store
1713
d4702b0ff15f use IMPORTTYPES from store
Thomas Junk <thomas.junk@intevation.de>
parents: 1712
diff changeset
511 .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
512 .then(response => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
513 const { id } = response.data;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
514 displayInfo({
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
515 title: this.$gettext("Import"),
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
516 message: this.$gettext("Manually triggered import: #") + id
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
517 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
518 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
519 .catch(error => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
520 const { status, data } = error.response;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
521 displayError({
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
522 title: this.$gettext("Backend Error"),
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
523 message: `${status}: ${data.message || data}`
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
524 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
525 })
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
526 .finally(() => {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
527 this.triggerActive = true;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
528 });
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
529 },
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
530 save() {
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
531 let data = {};
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
532 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
533 let cron = this.cronString;
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
534 if (this.easyCron) {
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
535 if (this.simple === "weekly") cron = "0 0 * * 0";
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
536 if (this.simple === "monthly") cron = "0 0 1 * *";
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
537 }
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
538 switch (this.import_) {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
539 case this.$options.IMPORTTYPES.BOTTLENECK:
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
540 if (!this.validateBottleneckfields()) return;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
541 data["url"] = this.url;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
542 data["kind"] = IMPORTTYPEKIND[this.import_];
1726
9e1abe157e47 importschedule: fix for send-email
Thomas Junk <thomas.junk@intevation.de>
parents: 1725
diff changeset
543 data["send-email"] = this.eMailNotification;
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
544 data["attributes"] = {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
545 insecure: this.insecure + ""
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
546 };
1728
647195199dc8 importschedule: now with display of cron and delete function
Thomas Junk <thomas.junk@intevation.de>
parents: 1726
diff changeset
547 if (cron) data["cron"] = cron;
1724
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
548 break;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
549 default:
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
550 break;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
551 }
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
552 this.$store
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
553 .dispatch("imports/saveCurrentSchedule", data)
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
554 .then(response => {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
555 const { id } = response.data;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
556 displayInfo({
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
557 title: this.$gettext("Import"),
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
558 message: this.$gettext("Saved import: #") + id
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
559 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
560 this.closeDetailview();
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
561 this.$store.dispatch("imports/loadSchedules").catch(error => {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
562 const { status, data } = error.response;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
563 displayError({
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
564 title: this.gettext("Backend Error"),
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
565 message: `${status}: ${data.message || data}`
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
566 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
567 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
568 })
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
569 .catch(error => {
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
570 const { status, data } = error.response;
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
571 displayError({
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
572 title: this.$gettext("Backend Error"),
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
573 message: `${status}: ${data.message || data}`
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
574 });
79a18eb1672b import: POC import saveable
Thomas Junk <thomas.junk@intevation.de>
parents: 1714
diff changeset
575 });
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
576 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
577 closeDetailview() {
1714
1b25e7a3a92e importschedule: manage initial data from detailsview via store
Thomas Junk <thomas.junk@intevation.de>
parents: 1713
diff changeset
578 this.$store.commit("imports/clearCurrentSchedule");
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
579 this.$store.commit("imports/setImportScheduleDetailInvisible");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
580 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
581 },
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
582 imports: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
583 on: "on",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
584 off: "off",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
585 periods: {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
586 DAILY: "daily",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
587 MONTHLY: "monthly"
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
588 }
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
589 };
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
590 </script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
591
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
592 <style lang="scss" scoped>
1598
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
593 .cronfield {
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
594 width: 55px;
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
595 }
4057b366db5f unattended imports: layout
Thomas Junk <thomas.junk@intevation.de>
parents: 1593
diff changeset
596
1593
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
597 .importscheduledetailscard {
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
598 min-height: 550px;
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
599 }
bbbc27a7ec99 unattended imports: manual trigger of import
Thomas Junk <thomas.junk@intevation.de>
parents: 1587
diff changeset
600
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
601 .importscheduledetails {
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
602 width: 100%;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
603 margin-top: $offset;
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
604 margin-right: $offset;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
605 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
606
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
607 .trigger {
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
608 position: absolute;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
609 left: $large-offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
610 bottom: $offset;
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
611 }
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
612
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
613 .submit-button {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
614 position: absolute;
1586
3a30a6f4c96d unattended imports: translations added
Thomas Junk <thomas.junk@intevation.de>
parents: 1576
diff changeset
615 right: $large-offset;
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
616 bottom: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
617 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
618 </style>