Skip to content

Commit

Permalink
fix(freelists): replace deprecated subscription form with button
Browse files Browse the repository at this point in the history
Fixes deprecation reported in #412
  • Loading branch information
ashwinvis authored and talha131 committed Jul 26, 2019
1 parent 199af9d commit 9bfe3c1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions templates/_includes/freelists.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,9 @@
{% from '_includes/_defaults.html' import SUBSCRIBE_BUTTON_TITLE with context %}
<div id="mc-embed-signup">
<!-- BEGIN FreeLists WEB FORM -->
<form action="https://www.freelists.org/cgi-bin/subscription.cgi" method="post">
<form action="https://www.freelists.org/list/{{ FREELISTS_NAME }}">
<h4>{{ EMAIL_SUBSCRIPTION_LABEL }}</h4>
<input type="text" name="email" placeholder="{{ EMAIL_FIELD_PLACEHOLDER }}" required>
<input type=hidden name="list" value="{{ FREELISTS_NAME }}">
<input type=hidden name="url_or_message" value="">
<select name="action" class="form-control">
<option value="subscribe">{{ SUBSCRIBE_BUTTON_TITLE }}</option>
<option value="unsubscribe">Unsubscribe</option>
<option value="set digest">Turn Digest mode on</option>
<option value="unset digest">Turn Digest mode off</option>
<option value="set vacation">Turn Vacation mode on</option>
<option value="unset vacation">Turn Vacation mode off</option>
<option value="help">Get Help</option>
</select>
<input type=submit value={{SUBSCRIBE_BUTTON_TITLE}} class="button">
<input type="submit" value="{{SUBSCRIBE_BUTTON_TITLE}}" class="button">
</form>
<!-- END FreeLists WEB FORM -->
</div>
Expand Down

0 comments on commit 9bfe3c1

Please sign in to comment.