Skip to content

Commit

Permalink
Update Register.vue (#1127)
Browse files Browse the repository at this point in the history
* Update Register.vue

Add 'required' to JetCheckbox 'terms'.

* Update to include JetInputError also.
  • Loading branch information
JoshSalway authored Aug 21, 2022
1 parent 04a68c0 commit 2371d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/inertia/resources/js/Pages/Auth/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ const submit = () => {
<div v-if="$page.props.jetstream.hasTermsAndPrivacyPolicyFeature" class="mt-4">
<JetLabel for="terms">
<div class="flex items-center">
<JetCheckbox id="terms" v-model:checked="form.terms" name="terms" />
<JetCheckbox id="terms" v-model:checked="form.terms" name="terms" required />

<div class="ml-2">
I agree to the <a target="_blank" :href="route('terms.show')" class="underline text-sm text-gray-600 hover:text-gray-900">Terms of Service</a> and <a target="_blank" :href="route('policy.show')" class="underline text-sm text-gray-600 hover:text-gray-900">Privacy Policy</a>
</div>
</div>
<JetInputError class="mt-2" :message="form.errors.terms" />
</JetLabel>
</div>

Expand Down

0 comments on commit 2371d01

Please sign in to comment.