liebling/partials/subscribe_form.hbs

21 lines
676 B
Handlebars
Raw Normal View History

2019-04-14 18:41:25 +00:00
{{!--
This subscribe template is used to display the form where users can subscribe.
You need to enable the subscription feature first.
--}}
2019-02-23 13:53:40 +00:00
<form method="post" action="{{action}}" id="{{form_id}}" class="{{form_class}}">
{{hidden}}
2020-07-07 15:13:29 +00:00
<div class="pos-relative">
<label for="{{input_id}}" class="sr-only">{{placeholder}}</label>
2019-02-23 13:53:40 +00:00
{{input_email id=input_id class=input_class placeholder=placeholder value=email autofocus=autofocus}}
2020-07-07 15:13:29 +00:00
</div>
2019-08-15 14:40:46 +00:00
<button id="{{button_id}}" class="{{button_class}}" type="submit">{{t "Subscribe"}}</button>
2019-02-23 13:53:40 +00:00
{{script}}
{{#if error}}
2019-08-15 14:40:46 +00:00
<p class="m-small-text in-subscribe-page">{{t "Email cannot be blank."}}</p>
2019-02-23 13:53:40 +00:00
{{/if}}
</form>