Skip to content
Permalink
Browse files

add custom subscribe form to translate subscribe button

  • Loading branch information...
zutrinken committed Jul 11, 2019
1 parent 942db73 commit 1878ba45bd66b7498dbb37d2694e126889062bdf
Showing with 21 additions and 6 deletions.
  1. +15 −0 partials/subscribe_form.hbs
  2. +6 −6 post.hbs
@@ -0,0 +1,15 @@
<form method="post" action="{{action}}" class="{{form_class}}">
{{! This is required for the form to work correctly }}
{{hidden}}

<div class="form-group{{#if error}} error{{/if}}">
{{input_email class=input_class placeholder=placeholder value=email autofocus=autofocus}}
</div>
<button class="{{button_class}}" type="submit"><span>{{t "Subscribe"}}</span></button>
{{! This is used to get extra info about where this subscriber came from }}
{{script}}
</form>

{{#if error}}
<p class="main-error">{{{error.message}}}</p>
{{/if}}
@@ -113,12 +113,12 @@
<div id="disqus_thread"></div>
</section>

{{#if @labs.subscribers}}
<section class="post-subscribe">
{{subscribe_form placeholder=(t "Your email address") form_class="post-subscribe-form" input_class="post-subscribe-input" button_class="post-subscribe-button"}}
<p>{{t "Get the latest posts delivered right to your inbox."}}</p>
</section>
{{/if}}
{{#if @labs.subscribers}}
<section class="post-subscribe">
{{subscribe_form placeholder=(t "Your email address") form_class="post-subscribe-form" input_class="post-subscribe-input" button_class="post-subscribe-button"}}
<p>{{t "Get the latest posts delivered right to your inbox."}}</p>
</section>
{{/if}}

<aside class="post-nav">
{{#next_post}}

0 comments on commit 1878ba4

Please sign in to comment.
You can’t perform that action at this time.