Skip to content

Commit

Permalink
now it is working
Browse files Browse the repository at this point in the history
  • Loading branch information
ramibch committed Jan 7, 2024
1 parent 074ca50 commit 6350251
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
1 change: 1 addition & 0 deletions cms/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .setttings import Banner
from .setttings import Brand
from .setttings import Links
from .setttings import Legal
from .snippets import FrequentAskedQuestion
from .snippets import Person
from .text import TextPage
Expand Down
10 changes: 1 addition & 9 deletions templates/account/signup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "base.html" %}
{% load i18n crispy_forms_tags wagtailsettings_tags %}
{% get_settings %}
{% block head_title %}
{% translate "Signup" %}
{% endblock head_title %}
Expand All @@ -21,14 +20,7 @@ <h1 class="mt-10 mb-10 text-center text-2xl font-bold leading-9 tracking-tight t
name="{{ redirect_field_name }}"
value="{{ redirect_field_value }}" />
{% endif %}
<p class="mt-1 text-sm text-gray-500">
{% blocktrans %}By signing up, you agree to our
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href="{{ settings.cms.Legal.privacy_policy_page.url }}">Privacy Policy</a>
and
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href="{{ settings.cms.Legal.terms_page.url }}">Terms of Service</a>

{% endblocktrans %}
</p>
<p class="mt-1 text-sm text-gray-500">{% include "cms/legal/signup_agreement.html" %}</p>
<button type="submit"
class="mt-5 flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
{% translate "Sign Up" %}
Expand Down
10 changes: 10 additions & 0 deletions templates/cms/legal/signup_agreement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% load i18n wagtailsettings_tags %}
{% get_settings %}
{% with privacy_url=settings.cms.Legal.privacy_policy_page.url terms_url=settings.cms.Legal.terms_page.url %}
{% blocktrans %}By signing up, you agree to our
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href="{{ privacy_url }}">Privacy Policy</a>
and
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href={{ terms_url }}>Terms of Service</a>

{% endblocktrans %}
{% endwith %}
10 changes: 2 additions & 8 deletions templates/socialaccount/signup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "base.html" %}
{% load i18n crispy_forms_tags wagtailsettings_tags %}
{% get_settings %}
{% load i18n crispy_forms_tags %}
{% block head_title %}
{% translate "Signup" %}
{% endblock head_title %}
Expand All @@ -27,12 +26,7 @@ <h1 class="mt-10 mb-10 text-center text-2xl font-bold leading-9 tracking-tight t
name="{{ redirect_field_name }}"
value="{{ redirect_field_value }}" />
{% endif %}
{% blocktrans %}By signing up, you agree to our
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href="{{ settings.cms.Legal.privacy_policy_page.url }}">Privacy Policy</a>
and
<a class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500 ml-1" href="{{ settings.cms.Legal.terms_page.url }}">Terms of Service</a>

{% endblocktrans %}
<p class="mt-1 text-sm text-gray-500">{% include "cms/legal/signup_agreement.html" %}</p>
<button type="submit"
class="mt-5 flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
{% translate "Sign Up" %}
Expand Down

0 comments on commit 6350251

Please sign in to comment.