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