Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
django-panik-newsletter
Commits
4a66ad13
Commit
4a66ad13
authored
Jan 31, 2021
by
fred
Browse files
unify subscriber forms
parent
805a9a9a
Changes
3
Show whitespace changes
Inline
Side-by-side
newsletter/templates/newsletter/subscriber_form.html
View file @
4a66ad13
...
...
@@ -5,14 +5,7 @@
{% block main %}
<div
class=
"padded"
>
<form
method=
"post"
class=
"big center"
id=
"subscribe-form"
>
<p>
Tous les lundis, l’actualité de Radio Panik.
</p>
{% csrf_token %}
{{ form.as_table }}
<div
style=
"display: none"
><label><input
type=
"checkbox"
name=
"validation"
>
Cocher empêchera la création.
</input></label></div>
<button>
S’abonner
</button>
{% include "newsletter/subscriber_form_content.html" %}
</form>
</div>
{% endblock %}
newsletter/templates/newsletter/subscriber_form_content.html
0 → 100644
View file @
4a66ad13
{% load i18n %}
{% csrf_token %}
<p>
{% trans 'Every Monday, the news of the Panik week:' %}
</p>
<input
required
name=
"email"
type=
"email"
placeholder=
"votre adresse email"
>
<div
style=
"display: none"
><label><input
type=
"checkbox"
name=
"validation"
>
Cocher empêchera la création.
</input></label>
</div>
<button>
{% trans 'Subscribe' %}
</button>
newsletter/templates/newsletter/subscriber_form_embed.html
View file @
4a66ad13
{% load i18n %}
<form
method=
"post"
action=
"{% url 'newsletter-subscribe' %}"
class=
"marged"
id=
"subscribe-form"
>
{% csrf_token %}
<p>
{% trans 'Every Monday, the news of the Panik week:' %}
</p>
<input
required
name=
"email"
type=
"email"
placeholder=
"votre adresse email"
>
<div
style=
"display: none"
><label><input
type=
"checkbox"
name=
"validation"
>
Cocher empêchera la création.
</input></label>
</div>
<button>
{% trans 'Subscribe' %}
</button>
{% include "newsletter/subscriber_form_content.html" %}
</form>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment