2019-12-05 06:46:19 -05:00
|
|
|
<template>
|
2020-03-15 04:01:23 -04:00
|
|
|
<form method="post"
|
|
|
|
:action="Admin.subscribe_form && Admin.subscribe_form.form.action || '/subscribe/'"
|
|
|
|
:id="Admin.subscribe_form && Admin.subscribe_form.form.id"
|
|
|
|
:class="Admin.subscribe_form && Admin.subscribe_form.form.class"
|
|
|
|
>
|
2019-12-05 06:46:19 -05:00
|
|
|
<div class="form-group">
|
2020-03-15 04:01:23 -04:00
|
|
|
<input
|
|
|
|
:class="Admin.subscribe_form && Admin.subscribe_form.email_input.class || 'subscribe-email'"
|
|
|
|
type="email"
|
|
|
|
:name="Admin.subscribe_form && Admin.subscribe_form.email_input.name || 'email'"
|
|
|
|
:placeholder=placeholder
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
v-if="Admin.subscribe_form && Admin.subscribe_form.honeypot"
|
|
|
|
style="position:absolute; left: -200vw;"
|
|
|
|
aria-hidden="true"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
:name="Admin.subscribe_form && Admin.subscribe_form.honeypot.name || 'nothing'"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-06-07 06:06:29 -04:00
|
|
|
<div v-if="Admin.subscribe_form && Admin.subscribe_form.hidden_toggles">
|
|
|
|
<input
|
|
|
|
v-for="field in Admin.subscribe_form.hidden_toggles"
|
|
|
|
type="hidden"
|
|
|
|
:name="field.name"
|
|
|
|
:value="field.value || 'true'"
|
|
|
|
:id="field.id || null"
|
|
|
|
/>
|
|
|
|
</div>
|
2019-12-05 06:46:19 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<button id="" class="" type="submit">
|
|
|
|
<span>Subscribe</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-03-15 04:01:23 -04:00
|
|
|
import Admin from "../../data/admin.yml";
|
|
|
|
|
2019-12-05 06:46:19 -05:00
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
placeholder: {
|
|
|
|
type: String,
|
|
|
|
default: "youremail@example.com"
|
|
|
|
}
|
2020-03-15 04:01:23 -04:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
Admin() {
|
|
|
|
return Admin;
|
|
|
|
}
|
2019-12-05 06:46:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|