annotate client/src/components/importschedule/Importscheduledetail.vue @ 1570:424793472f28

nice advanced schedule selection
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 12 Dec 2018 17:17:53 +0100
parents faa045ebdf0c
children b3f2d43f43e4
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">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
32 <div class="flex-column w-100 mr-2">
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 class="flex-column w-100 ml-2">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
47 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
48 <small class="text-muted">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
49 <translate>Schedule</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
50 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
51 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
52 <select v-model="schedule" class="custom-select" id="period">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
53 <option v-for="option in this.$options.periods" :key="option">{{
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
54 option
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
55 }}</option>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
56 </select>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
57 </div>
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">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
86 <select class="form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
87 ><option> Weekly </option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
88 <option>Monthly</option>
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">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
93 <h4 class="mt-auto mb-auto mr-2">Every</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
94 <select
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
95 style="width: 100px;"
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"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
98 >
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
99 <option value="minute">minute</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
100 <option value="hour">hour</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
101 <option value="day">day</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
102 <option value="week">week</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
103 <option value="month">month</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
104 <option value="year">year</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
105 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
106 <div v-if="cronMode == 'hour'" class="ml-2 d-flex flex-row">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
107 <h4 class="mt-auto mb-auto">at</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
108 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
109 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
110 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
111 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
112 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
113 <h4 class="mt-auto mb-auto">minutes past</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
114 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
115 <div v-if="cronMode == 'day'" class="ml-2 d-flex flex-row">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
116 <h4 class="mt-auto mb-auto">at</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
117 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
118 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
119 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
120 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
121 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
122 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
123 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
124 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
125 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
126 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
127 <h4 class="mt-auto mb-auto">o' clock</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
128 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
129 <div v-if="cronMode == 'week'" class="ml-2 d-flex flex-row">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
130 <h4 class="ml-2 mr-3 mt-auto mb-auto">on</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
131 <select class="form-control">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
132 <option>Monday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
133 <option>Tuesday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
134 <option>Wednesday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
135 <option>Thursday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
136 <option>Friday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
137 <option>Saturday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
138 <option>Sunday</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
139 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
140 <h4 class="ml-2 mt-auto mb-auto">at</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
141 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
142 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
143 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
144 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
145 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
146 <input
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 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
152 <div v-if="cronMode == 'month'" class="ml-2 d-flex flex-row">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
153 <h4 class="ml-2 mt-auto mb-auto">on</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
154 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
155 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
156 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
157 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
158 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
159 <h4 class="mt-auto mb-auto">at</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
160 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
161 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
162 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
163 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
164 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
165 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
166 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
167 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
168 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
169 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
170 <h4 class="mt-auto mb-auto">o' clock</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
171 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
172 <div v-if="cronMode == 'year'" class="ml-2 d-flex flex-row">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
173 <h4 class="ml-2 mt-auto mb-auto">on</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
174 <input
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 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
179 <h4 class="mt-auto mb-auto">of</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
180 <select class="ml-2 mr-2 form-control">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
181 <option>January</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
182 <option>February</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
183 <option>March</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
184 <option>April</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
185 <option>May</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
186 <option>June</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
187 <option>July</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
188 <option>August</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
189 <option>September</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
190 <option>October</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
191 <option>November</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
192 <option>December</option>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
193 </select>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
194 <h4 class="mt-auto mb-auto">at</h4>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
195 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
196 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
197 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
198 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
199 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
200 <input
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
201 style="width:50px"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
202 class="ml-2 mr-2 form-control"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
203 type="text"
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
204 />
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
205 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
206 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
207 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
208 </div>
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
209 <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
210 <div class="flex-row text-left">
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
211 <small class="text-muted">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
212 <translate>Email Notification</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
213 </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
214 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
215 <div class="flex-flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
216 <toggle-button
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
217 v-model="eMailNotification"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
218 class="mt-2"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
219 :speed="100"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
220 :labels="{
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
221 checked: this.$options.on,
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
222 unchecked: this.$options.off
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
223 }"
1542
31c6c7bd6190 layout issues
Thomas Junk <thomas.junk@intevation.de>
parents: 1532
diff changeset
224 :width="50"
31c6c7bd6190 layout issues
Thomas Junk <thomas.junk@intevation.de>
parents: 1532
diff changeset
225 :height="20"
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
226 />
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
227 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
228 </div>
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
229 <div class="flex-column w-100 mr-2">
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
230 <div class="flex-row text-left">
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
231 <small class="text-muted"> <translate>Email</translate> </small>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
232 </div>
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
233 <input
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
234 :disabled="!eMailNotification"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
235 class="form-control"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
236 type="text"
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
237 />
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
238 </div>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
239 <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
240 <translate>Submit</translate>
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
241 </button>
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
242 </form>
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
243 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
244 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
245 </div>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
246 </template>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
247
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
248 <script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
249 import { mapState } from "vuex";
1558
0ded4c56978e refac: component filestructure. remove admin/map hierarchy
Thomas Junk <thomas.junk@intevation.de>
parents: 1542
diff changeset
250 import { displayInfo } from "../../lib/errors.js";
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
251
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
252 export default {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
253 name: "importscheduledetail",
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
254 data() {
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
255 return {
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
256 importType: null,
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
257 schedule: null,
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
258 import_: null,
1565
faa045ebdf0c select first surveydate after identification of bottleneck
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
259 eMailNotification: false,
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
260 easyCron: true,
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
261 cronMode: ""
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
262 };
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
263 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
264 computed: {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
265 ...mapState("imports", ["importScheduleDetailVisible"])
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
266 },
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
267 methods: {
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
268 save() {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
269 displayInfo({
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
270 title: "Import",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
271 message: "under construction"
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
272 });
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
273 },
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
274 closeDetailview() {
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
275 this.$store.commit("imports/clearImportScheduleDetail");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
276 this.$store.commit("imports/setImportScheduleDetailInvisible");
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
277 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
278 },
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
279 imports: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
280 importtype: [],
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
281 on: "on",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
282 off: "off",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
283 periods: {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
284 DAILY: "daily",
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
285 MONTHLY: "monthly"
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
286 }
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
287 };
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
288 </script>
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
289
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
290 <style lang="scss" scoped>
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
291 .importscheduledetails {
1570
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
292 height: 620px;
424793472f28 nice advanced schedule selection
Thomas Junk <thomas.junk@intevation.de>
parents: 1565
diff changeset
293 width: 100%;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
294 margin-top: $offset;
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
295 margin-right: $offset;
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1430
diff changeset
296 }
1532
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
297
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
298 .submit-button {
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
299 position: absolute;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
300 right: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
301 bottom: $offset;
44e094330272 automatic imports: fields added
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
302 }
1430
4e24c2db0bf5 automatic imports: added missing components
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
303 </style>