change base data (de-)commission date
This commit is contained in:
parent
147e52b0e7
commit
4212e243ac
6 changed files with 41 additions and 16 deletions
|
@ -18,12 +18,17 @@
|
||||||
<input type="text" id="type" />
|
<input type="text" id="type" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" />
|
<input
|
||||||
|
type="date"
|
||||||
|
id="commissioned"
|
||||||
|
required
|
||||||
|
@change="(e) => (($refs.decommissioned as HTMLInputElement).min = (e.target as HTMLInputElement)?.value)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" />
|
<input ref="decommissioned" type="date" id="decommissioned" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
||||||
|
|
|
@ -20,12 +20,17 @@
|
||||||
<input type="text" id="type" v-model="equipment.type" />
|
<input type="text" id="type" v-model="equipment.type" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" v-model="equipment.commissioned" />
|
<input type="date" id="commissioned" v-model="equipment.commissioned" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" v-model="equipment.decommissioned" />
|
<input
|
||||||
|
type="date"
|
||||||
|
id="decommissioned"
|
||||||
|
v-model="equipment.decommissioned"
|
||||||
|
:min="equipment.commissioned.toString()"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
||||||
|
|
|
@ -22,12 +22,17 @@
|
||||||
<input type="text" id="nameaffix" />
|
<input type="text" id="nameaffix" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" />
|
<input
|
||||||
|
type="date"
|
||||||
|
id="commissioned"
|
||||||
|
required
|
||||||
|
@change="(e) => (($refs.decommissioned as HTMLInputElement).min = (e.target as HTMLInputElement)?.value)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" />
|
<input ref="decommissioned" type="date" id="decommissioned" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
<input type="text" id="nameaffix" v-model="force.nameaffix" />
|
<input type="text" id="nameaffix" v-model="force.nameaffix" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" v-model="force.commissioned" />
|
<input type="date" id="commissioned" v-model="force.commissioned" required />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" v-model="force.decommissioned" />
|
<input type="date" id="decommissioned" v-model="force.decommissioned" :min="force.commissioned.toString()" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
||||||
|
|
|
@ -18,12 +18,17 @@
|
||||||
<input type="text" id="type" />
|
<input type="text" id="type" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" />
|
<input
|
||||||
|
type="date"
|
||||||
|
id="commissioned"
|
||||||
|
required
|
||||||
|
@change="(e) => (($refs.decommissioned as HTMLInputElement).min = (e.target as HTMLInputElement)?.value)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" />
|
<input ref="decommissioned" type="date" id="decommissioned" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
<button primary type="submit" :disabled="status == 'loading' || status?.status == 'success'">erstellen</button>
|
||||||
|
|
|
@ -20,12 +20,17 @@
|
||||||
<input type="text" id="type" v-model="vehicle.type" />
|
<input type="text" id="type" v-model="vehicle.type" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="commissioned">verfügbar ab (optional)</label>
|
<label for="commissioned">verfügbar ab</label>
|
||||||
<input type="date" id="commissioned" v-model="vehicle.commissioned" />
|
<input type="date" id="commissioned" v-model="vehicle.commissioned" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="decommissioned">verfügbar bis (optional)</label>
|
<label for="decommissioned">verfügbar bis (optional)</label>
|
||||||
<input type="date" id="decommissioned" v-model="vehicle.decommissioned" />
|
<input
|
||||||
|
type="date"
|
||||||
|
id="decommissioned"
|
||||||
|
v-model="vehicle.decommissioned"
|
||||||
|
:min="vehicle.commissioned.toString()"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
<button primary-outline type="reset" :disabled="canSaveOrReset" @click="resetForm">verwerfen</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue