annotate client/src/components/importschedule/Importscheduledetail.vue @ 1575:51f924cbac23

Feat: Importscheduler renamed to "unattended imports" We have now a prototypical user interface where the user is able to select whether or not he wishes an scheduling. If he chooses to, he is able to select simple/advanced scheduling and gets a wizward to help with setting up the cron string.
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 13 Dec 2018 13:30:02 +0100
parents b3f2d43f43e4
children b5d7770fe632
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 >
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
6 <div class="card h-100 shadow-xs">
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">
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
16 <form @submit.prevent="save" class="ml-3">
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">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
18 <div class="flex-column w-100">
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>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
24 <select v-model="import_" class="custom-select" id="import_">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
25 <option v-for="option in this.$options.imports" :key="option">{{
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
26 option
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
27 }}</option>
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>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
30 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
31 <div class="d-flex flex-row mt-3 w-100 justify-content-between">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
32 <div class="flex-column w-100">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
33 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
34 <small class="text-muted">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
35 <translate>Importtype</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
36 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
37 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
38 <select v-model="import_" class="custom-select" id="importtype">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
39 <option
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
40 v-for="option in this.$options.importtype"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
41 :key="option"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
42 >{{ option }}</option
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
43 >
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
44 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
45 </div>
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 class="flex-column mt-3 w-100 mr-2">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
48 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
49 <small class="text-muted">
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
50 <translate>Simple Schedule</translate>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
51 </small>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
52 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
53 <div class="flex-flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
54 <toggle-button
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
55 v-model="easyCron"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
56 class="mt-2"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
57 :speed="100"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
58 :labels="{
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
59 checked: this.$options.on,
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
60 unchecked: this.$options.off
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
61 }"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
62 :width="50"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
63 :height="20"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
64 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
65 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
66 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
67 <div class="flex-column w-100 mr-2">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
68 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
69 <small class="text-muted">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
70 <translate>Schedule</translate>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
71 </small>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
72 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
73 <div v-if="easyCron" class="text-left w-50">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
74 <select v-model="simple" class="form-control"
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
75 ><option value=""><translate>No Schedule</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
76 <option value="weekly"><translate>Weekly</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
77 <option value="monthly"><translate>Monthly</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
78 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
79 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
80 <div v-if="!easyCron" class="text-left w-100">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
81 <div class="d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
82 <h4 class="mt-auto mb-auto mr-2">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
83 <translate>Every</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
84 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
85 <select
1571
b3f2d43f43e4 added 15minutes as custom value
Thomas Junk <thomas.junk@intevation.de>
parents: 1570
diff changeset
86 style="width: 130px;"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
87 v-model="cronMode"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
88 class="form-control"
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
89 @change="clearInputs"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
90 >
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
91 <option value="15minutes"
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
92 ><translate>15 minutes</translate></option
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
93 >
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
94 <option value="hour"><translate>hour</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
95 <option value="day"><translate>day</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
96 <option value="week"><translate>week</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
97 <option value="month"><translate>month</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
98 <option value="year"><translate>year</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
99 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
100 <div v-if="cronMode == 'hour'" class="ml-2 d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
101 <h4 class="mt-auto mb-auto"><translate>at</translate></h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
102 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
103 v-model="minutes"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
104 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
105 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
106 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
107 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
108 <h4 class="mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
109 <translate>minutes past</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
110 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
111 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
112 <div v-if="cronMode == 'day'" class="ml-2 d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
113 <h4 class="mt-auto mb-auto"><translate>at</translate></h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
114 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
115 v-model="hour"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
116 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
117 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
118 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
119 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
120 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
121 v-model="minutes"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
122 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
123 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
124 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
125 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
126 <h4 class="mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
127 <translate>o' clock</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
128 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
129 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
130 <div v-if="cronMode == 'week'" class="ml-2 d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
131 <h4 class="ml-2 mr-3 mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
132 <translate>on</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
133 </h4>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
134 <select v-model="day" class="form-control">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
135 <option value="1"><translate>Monday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
136 <option value="2"><translate>Tuesday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
137 <option value="3"><translate>Wednesday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
138 <option value="4"><translate>Thursday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
139 <option value="5"><translate>Friday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
140 <option value="6"><translate>Saturday</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
141 <option value="0"><translate>Sunday</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
142 </select>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
143 <h4 class="ml-2 mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
144 <translate>at</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
145 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
146 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
147 v-model="hour"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
148 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
149 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
150 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
151 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
152 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
153 v-model="minutes"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
154 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
155 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
156 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
157 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
158 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
159 <div v-if="cronMode == 'month'" class="ml-2 d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
160 <h4 class="ml-2 mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
161 <translate>on</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
162 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
163 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
164 v-model="dayOfMonth"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
165 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
166 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
167 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
168 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
169 <h4 class="mt-auto mb-auto"><translate>at</translate></h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
170 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
171 v-model="hour"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
172 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
173 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
174 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
175 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
176 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
177 v-model="minutes"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
178 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
179 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
180 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
181 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
182 <h4 class="mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
183 <translate>o' clock</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
184 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
185 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
186 <div v-if="cronMode == 'year'" class="ml-2 d-flex flex-row">
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
187 <h4 class="ml-2 mt-auto mb-auto">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
188 <translate>on</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
189 </h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
190 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
191 v-model="dayOfMonth"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
192 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
193 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
194 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
195 />
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
196 <h4 class="mt-auto mb-auto"><translate>of</translate></h4>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
197 <select v-model="month" class="ml-2 mr-2 form-control">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
198 <option value="1"><translate>January</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
199 <option value="2"><translate>February</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
200 <option value="3"><translate>March</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
201 <option value="4"><translate>April</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
202 <option value="5"><translate>May</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
203 <option value="6"><translate>June</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
204 <option value="7"><translate>July</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
205 <option value="8"><translate>August</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
206 <option value="9"><translate>September</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
207 <option value="10"><translate>October</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
208 <option value="11"><translate>November</translate></option>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
209 <option value="12"><translate>December</translate></option>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
210 </select>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
211 <h4 class="mt-auto mb-auto"><translate>at</translate></h4>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
212 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
213 v-model="hour"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
214 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
215 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
216 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
217 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
218 <input
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
219 v-model="minutes"
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
220 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
221 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
222 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
223 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
224 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
225 </div>
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
226 <div class="mt-3 w-50 d-flex flex-row">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
227 <h5 class="mt-auto mb-auto mr-2">
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
228 <translate>Cronstring</translate>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
229 </h5>
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
230 <input class="form-control" :value="cronString" type="text" />
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
231 </div>
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
232 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
233 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
234 <div class="flex-column mt-3 w-100 mr-2">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
235 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
236 <small class="text-muted">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
237 <translate>Email Notification</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
238 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
239 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
240 <div class="flex-flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
241 <toggle-button
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
242 v-model="eMailNotification"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
243 class="mt-2"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
244 :speed="100"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
245 :labels="{
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
246 checked: this.$options.on,
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
247 unchecked: this.$options.off
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
248 }"
1542
31c6c7bd6190 layout issues
Thomas Junk <thomas.junk@intevation.de>
parents: 1532
diff changeset
249 :width="50"
31c6c7bd6190 layout issues
Thomas Junk <thomas.junk@intevation.de>
parents: 1532
diff changeset
250 :height="20"
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
251 />
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
252 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
253 </div>
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
254 <div class="flex-column w-100 mr-2">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
255 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
256 <small class="text-muted"> <translate>Email</translate> </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
257 </div>
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
258 <input
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
259 :disabled="!eMailNotification"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
260 class="form-control"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
261 type="text"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
262 />
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
263 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
264 <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
265 <translate>Submit</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
266 </button>
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
267 </form>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
268 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
269 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
270 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
271 </template>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
272
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
273 <script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
274 import { mapState } from "vuex";
1558
0ded4c56978e refac: component filestructure. remove admin/map hierarchy
Thomas Junk <thomas.junk@intevation.de>
parents: 1542
diff changeset
275 import { displayInfo } from "../../lib/errors.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
276
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
277 export default {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
278 name: "importscheduledetail",
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
279 data() {
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
280 return {
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
281 importType: null,
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
282 schedule: null,
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
283 import_: null,
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
284 eMailNotification: false,
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
285 easyCron: true,
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
286 cronMode: "",
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
287 minutes: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
288 month: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
289 hour: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
290 day: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
291 dayOfMonth: null,
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
292 simple: null
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
293 };
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
294 },
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
295 watch: {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
296 cronString() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
297 if (this.isWeekly(this.cronString)) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
298 this.simple = "weekly";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
299 }
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
300 if (this.isMonthly(this.cronString)) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
301 this.simple = "monthly";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
302 }
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
303 }
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
304 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
305 computed: {
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
306 ...mapState("imports", ["importScheduleDetailVisible"]),
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
307 cronString: {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
308 get() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
309 let getValue = value => {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
310 return this[value] ? this[value] : "*";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
311 };
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
312 if (this.cronMode === "15minutes") return "*/15 * * * *";
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
313 const min = getValue("minutes");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
314 const h = getValue("hour");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
315 const dm = getValue("dayOfMonth");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
316 const m = getValue("month");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
317 const wd = getValue("day");
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
318 return `${min} ${h} ${dm} ${m} ${wd}`;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
319 }
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
320 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
321 },
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
322 methods: {
1575
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
323 isWeekly(cron) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
324 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
325 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
326 isMonthly(cron) {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
327 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
328 },
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
329 clearInputs() {
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
330 this.minutes = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
331 this.month = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
332 this.hour = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
333 this.day = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
334 this.dayOfMonth = null;
51f924cbac23 Feat: Importscheduler renamed to "unattended imports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1571
diff changeset
335 },
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
336 save() {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
337 displayInfo({
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
338 title: "Import",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
339 message: "under construction"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
340 });
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
341 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
342 closeDetailview() {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
343 this.$store.commit("imports/clearImportScheduleDetail");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
344 this.$store.commit("imports/setImportScheduleDetailInvisible");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
345 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
346 },
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
347 imports: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
348 importtype: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
349 on: "on",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
350 off: "off",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
351 periods: {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
352 DAILY: "daily",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
353 MONTHLY: "monthly"
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
354 }
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
355 };
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
356 </script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
357
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
358 <style lang="scss" scoped>
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
359 .importscheduledetails {
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
360 height: 620px;
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
361 width: 100%;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
362 margin-top: $offset;
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
363 margin-right: $offset;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
364 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
365
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
366 .submit-button {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
367 position: absolute;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
368 right: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
369 bottom: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
370 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
371 </style>