changeset 2582:ab819b1b748b

Fix indentation to make linter happy again
author Tom Gottfried <tom@intevation.de>
date Mon, 11 Mar 2019 16:36:04 +0100
parents 5466800da970
children 5c6a7e69b02d
files client/src/components/importschedule/Importscheduledetail.vue
diffstat 1 files changed, 187 insertions(+), 185 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Mon Mar 11 16:35:07 2019 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Mon Mar 11 16:36:04 2019 +0100
@@ -173,215 +173,217 @@
           ></Waterwayaxis>
 
           <template v-if="!directImport || !directImportAvailable">
-          <div class="d-flex flex-row">
-            <div class="flex-column mt-3 mr-4">
+            <div class="d-flex flex-row">
+              <div class="flex-column mt-3 mr-4">
+                <div class="flex-row text-left">
+                  <small class="text-muted">
+                    <translate>Scheduled</translate>?
+                  </small>
+                </div>
+                <div class="flex-flex-row text-left">
+                  <toggle-button
+                    v-model="scheduled"
+                    class="mt-2"
+                    :speed="100"
+                    :labels="{
+                      checked: this.$options.on,
+                      unchecked: this.$options.off
+                    }"
+                    :width="60"
+                    :height="30"
+                  />
+                </div>
+              </div>
+              <div class="flex-column mt-3 mr-2">
+                <div class="flex-row text-left">
+                  <small class="text-muted">
+                    <translate>Simple schedule</translate>
+                  </small>
+                </div>
+                <div class="flex-flex-row text-left">
+                  <toggle-button
+                    :disabled="!scheduled"
+                    v-model="easyCron"
+                    class="mt-2"
+                    :speed="100"
+                    :labels="{
+                      checked: this.$options.on,
+                      unchecked: this.$options.off
+                    }"
+                    :width="60"
+                    :height="30"
+                  />
+                </div>
+              </div>
+            </div>
+            <div class="flex-column w-100 mr-2">
               <div class="flex-row text-left">
                 <small class="text-muted">
-                  <translate>Scheduled</translate>?
-                </small>
-              </div>
-              <div class="flex-flex-row text-left">
-                <toggle-button
-                  v-model="scheduled"
-                  class="mt-2"
-                  :speed="100"
-                  :labels="{
-                    checked: this.$options.on,
-                    unchecked: this.$options.off
-                  }"
-                  :width="60"
-                  :height="30"
-                />
-              </div>
-            </div>
-            <div class="flex-column mt-3 mr-2">
-              <div class="flex-row text-left">
-                <small class="text-muted">
-                  <translate>Simple schedule</translate>
+                  <translate>Schedule</translate>
                 </small>
               </div>
-              <div class="flex-flex-row text-left">
-                <toggle-button
-                  :disabled="!scheduled"
-                  v-model="easyCron"
-                  class="mt-2"
-                  :speed="100"
-                  :labels="{
-                    checked: this.$options.on,
-                    unchecked: this.$options.off
-                  }"
-                  :width="60"
-                  :height="30"
-                />
-              </div>
-            </div>
-          </div>
-          <div class="flex-column w-100 mr-2">
-            <div class="flex-row text-left">
-              <small class="text-muted">
-                <translate>Schedule</translate>
-              </small>
-            </div>
-            <div v-if="easyCron" class="text-left w-50">
-              <select
-                :disabled="!scheduled"
-                v-model="simple"
-                class="form-control"
-                ><option value="weekly"><translate>Weekly</translate></option>
-                <option value="monthly"><translate>Monthly</translate></option>
-              </select>
-            </div>
-            <div v-if="!easyCron" class="text-left w-100">
-              <div class="d-flex flex-row">
-                <h4 class="mt-auto mb-auto mr-2">{{ $options.EVERY }}</h4>
+              <div v-if="easyCron" class="text-left w-50">
                 <select
                   :disabled="!scheduled"
-                  style="width: 130px;"
-                  v-model="cronMode"
+                  v-model="simple"
                   class="form-control"
-                  @change="clearInputs"
-                >
-                  <option :value="null"></option>
-                  <option
-                    v-for="(option, key) in $options.CRONMODE"
-                    :value="key"
-                    :key="key"
-                    >{{ option }}</option
-                  >
+                  ><option value="weekly"><translate>Weekly</translate></option>
+                  <option value="monthly"
+                    ><translate>Monthly</translate>
+                  </option>
                 </select>
-                <div v-if="cronMode == 'hour'" class="ml-1 d-flex flex-row">
-                  <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="minutes"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <h4 class="mt-auto mb-auto">{{ $options.MINUTESPAST }}</h4>
-                </div>
-                <div v-if="cronMode == 'day'" class="ml-1 d-flex flex-row">
-                  <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="hour"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <input
-                    :disabled="!scheduled"
-                    v-model="minutes"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
-                </div>
-                <div v-if="cronMode == 'week'" class="ml-1 d-flex flex-row">
-                  <h4 class="ml-1 mr-1 mt-auto mb-auto">{{ $options.ON }}</h4>
+              </div>
+              <div v-if="!easyCron" class="text-left w-100">
+                <div class="d-flex flex-row">
+                  <h4 class="mt-auto mb-auto mr-2">{{ $options.EVERY }}</h4>
                   <select
                     :disabled="!scheduled"
-                    v-model="day"
+                    style="width: 130px;"
+                    v-model="cronMode"
                     class="form-control"
+                    @change="clearInputs"
                   >
+                    <option :value="null"></option>
                     <option
-                      v-for="(option, key) in $options.DAYSOFWEEK"
-                      :key="key"
-                      :value="key"
-                      >{{ option }}</option
-                    >
-                  </select>
-                  <h4 class="ml-1 mt-auto mb-auto">{{ $options.AT }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="hour"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <input
-                    :disabled="!scheduled"
-                    v-model="minutes"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                </div>
-                <div v-if="cronMode == 'month'" class="ml-1 d-flex flex-row">
-                  <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="dayOfMonth"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="hour"
-                    class="cronfield ml-1 mr-2 form-control"
-                    type="number"
-                  />
-                  <input
-                    :disabled="!scheduled"
-                    v-model="minutes"
-                    class="cronfield ml-1 mr-2 form-control"
-                    type="number"
-                  />
-                  <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
-                </div>
-                <div v-if="cronMode == 'year'" class="ml-1 d-flex flex-row">
-                  <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
-                  <input
-                    :disabled="!scheduled"
-                    v-model="dayOfMonth"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <h4 class="mt-auto mb-auto">{{ $options.OF }}</h4>
-                  <select
-                    :disabled="!scheduled"
-                    v-model="month"
-                    class="ml-1 mr-1 form-control"
-                  >
-                    <option
-                      v-for="(option, key) in $options.MONTHS"
+                      v-for="(option, key) in $options.CRONMODE"
                       :value="key"
                       :key="key"
                       >{{ option }}</option
                     >
                   </select>
-                  <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
+                  <div v-if="cronMode == 'hour'" class="ml-1 d-flex flex-row">
+                    <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="minutes"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <h4 class="mt-auto mb-auto">{{ $options.MINUTESPAST }}</h4>
+                  </div>
+                  <div v-if="cronMode == 'day'" class="ml-1 d-flex flex-row">
+                    <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="hour"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <input
+                      :disabled="!scheduled"
+                      v-model="minutes"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
+                  </div>
+                  <div v-if="cronMode == 'week'" class="ml-1 d-flex flex-row">
+                    <h4 class="ml-1 mr-1 mt-auto mb-auto">{{ $options.ON }}</h4>
+                    <select
+                      :disabled="!scheduled"
+                      v-model="day"
+                      class="form-control"
+                    >
+                      <option
+                        v-for="(option, key) in $options.DAYSOFWEEK"
+                        :key="key"
+                        :value="key"
+                        >{{ option }}</option
+                      >
+                    </select>
+                    <h4 class="ml-1 mt-auto mb-auto">{{ $options.AT }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="hour"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <input
+                      :disabled="!scheduled"
+                      v-model="minutes"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                  </div>
+                  <div v-if="cronMode == 'month'" class="ml-1 d-flex flex-row">
+                    <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="dayOfMonth"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="hour"
+                      class="cronfield ml-1 mr-2 form-control"
+                      type="number"
+                    />
+                    <input
+                      :disabled="!scheduled"
+                      v-model="minutes"
+                      class="cronfield ml-1 mr-2 form-control"
+                      type="number"
+                    />
+                    <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
+                  </div>
+                  <div v-if="cronMode == 'year'" class="ml-1 d-flex flex-row">
+                    <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="dayOfMonth"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <h4 class="mt-auto mb-auto">{{ $options.OF }}</h4>
+                    <select
+                      :disabled="!scheduled"
+                      v-model="month"
+                      class="ml-1 mr-1 form-control"
+                    >
+                      <option
+                        v-for="(option, key) in $options.MONTHS"
+                        :value="key"
+                        :key="key"
+                        >{{ option }}</option
+                      >
+                    </select>
+                    <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
+                    <input
+                      :disabled="!scheduled"
+                      v-model="hour"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                    <input
+                      :disabled="!scheduled"
+                      v-model="minutes"
+                      class="cronfield ml-1 mr-1 form-control"
+                      type="number"
+                    />
+                  </div>
+                </div>
+                <div class="mt-3 w-50 d-flex flex-row">
+                  <h5 class="mt-auto mb-auto mr-2">
+                    <translate>Cronstring</translate>
+                  </h5>
                   <input
                     :disabled="!scheduled"
-                    v-model="hour"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
-                  />
-                  <input
-                    :disabled="!scheduled"
-                    v-model="minutes"
-                    class="cronfield ml-1 mr-1 form-control"
-                    type="number"
+                    class="form-control"
+                    v-model="cronString"
+                    type="text"
                   />
                 </div>
               </div>
-              <div class="mt-3 w-50 d-flex flex-row">
-                <h5 class="mt-auto mb-auto mr-2">
-                  <translate>Cronstring</translate>
-                </h5>
-                <input
-                  :disabled="!scheduled"
-                  class="form-control"
-                  v-model="cronString"
-                  type="text"
-                />
-              </div>
             </div>
-          </div>
-          <button
-            :disabled="!isValid"
-            type="submit"
-            class="shadow-sm btn btn-info submit-button"
-          >
-            <translate>Save</translate>
-          </button>
+            <button
+              :disabled="!isValid"
+              type="submit"
+              class="shadow-sm btn btn-info submit-button"
+            >
+              <translate>Save</translate>
+            </button>
           </template>
           <div v-else class="d-flex flex-row text-left">
             <div class="mt-3 mb-3 flex-column w-100">