Add can SMS question, fix error handling of client ID
This commit is contained in:
parent
84db38c985
commit
5527731e83
6 changed files with 68 additions and 45 deletions
|
|
@ -125,6 +125,24 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-3 form-check">
|
||||
<input
|
||||
v-model="formData.can_sms"
|
||||
class="form-check-input"
|
||||
id="can_sms"
|
||||
type="checkbox"
|
||||
/>
|
||||
<label class="form-check-label" for="can_sms">
|
||||
This phone number can receive text messages
|
||||
<i
|
||||
class="bi bi-info-circle-fill text-primary ms-1"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="top"
|
||||
title="By 'text messages' we specifically mean SMS/MMS messages. If it's a mobile or cellular phone, it should work. If it's a home or office phone, it may not."
|
||||
></i>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-3 form-check">
|
||||
<input
|
||||
v-model="formData.consent"
|
||||
|
|
@ -262,10 +280,11 @@ import { useStorePublicReport } from "@/store/publicreport";
|
|||
import type { District, PublicReport } from "@/type/api";
|
||||
|
||||
interface FormData {
|
||||
name: string;
|
||||
can_sms: boolean;
|
||||
consent: boolean;
|
||||
email: string;
|
||||
phone: string;
|
||||
consent: boolean;
|
||||
name: string;
|
||||
notification: boolean;
|
||||
subscribe: boolean;
|
||||
}
|
||||
|
|
@ -277,10 +296,11 @@ interface Props {
|
|||
const props = defineProps<Props>();
|
||||
|
||||
const formData = ref<FormData>({
|
||||
name: "",
|
||||
can_sms: true,
|
||||
consent: true,
|
||||
email: "",
|
||||
phone: "",
|
||||
consent: true,
|
||||
name: "",
|
||||
notification: false,
|
||||
subscribe: false,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue