Register - reactive address checkbox

This commit is contained in:
Philipp Dormann 2021-02-26 19:50:19 +01:00
parent 9effcb4575
commit 2b3f4abe1a
1 changed files with 5 additions and 5 deletions

View File

@ -59,6 +59,7 @@
<div class="flex items-start col-span-6">
<div class="flex items-center h-5">
<input
v-model="provide_address"
id="address_activated"
name="address_activated"
type="checkbox"
@ -69,7 +70,7 @@
<label for="address_activated" class="font-medium text-gray-400">Adresse angeben?</label>
</div>
</div>
<div class="col-span-6">
<div v-if="provide_address===true" class="col-span-6">
<div class="col-span-6">
<label for="street" class="block font-medium">Straße</label>
<input
@ -104,8 +105,7 @@
</div>
</div>
</div>
<!-- -->
<div class="flex items-start mt-12">
<div class="flex items-start mt-6">
<div class="flex items-center h-5">
<input
v-model="agb_accepted"
@ -156,8 +156,8 @@ import { ref } from "vue";
import axios from "redaxios";
import Toastify from "toastify-js";
let mail = ref("");
let agb_accepted = ref(true);
let provide_address = ref(false);
let agb_accepted = ref(false);
function login() {
// console.log(agb_accepted.value);
// alert("AGB was " + (agb_accepted.value === true ? "accepted" : "not accepted"));