diff --git a/components/form/button-group.html b/components/form/button-group.html index 2ec74c0..55908a0 100644 --- a/components/form/button-group.html +++ b/components/form/button-group.html @@ -1,5 +1,5 @@ {% load component_tags %} -
+
{% slot "buttons" default %}{% endslot %}
diff --git a/components/timeline/section.py b/components/timeline/section.py index 1a2d008..24960c8 100644 --- a/components/timeline/section.py +++ b/components/timeline/section.py @@ -17,8 +17,10 @@ def get_template_name(self, context): def get_context_data(self, alternate, *args, **kwargs): step = kwargs.pop('step', '') bg = kwargs.pop('bg', 'bg-white') + prose = kwargs.pop('prose', True) context = super().get_context_data(*args, **kwargs) context['alternate'] = alternate context['step'] = step context['bg'] = bg + context['prose'] = prose return context diff --git a/components/timeline/section_even.html b/components/timeline/section_even.html index deb90ee..ae07772 100644 --- a/components/timeline/section_even.html +++ b/components/timeline/section_even.html @@ -50,7 +50,13 @@ {{ step }}
-
+
{% slot 'content' default %}{% endslot %}
diff --git a/components/timeline/section_odd.html b/components/timeline/section_odd.html index 68adb4b..f86a936 100644 --- a/components/timeline/section_odd.html +++ b/components/timeline/section_odd.html @@ -48,7 +48,13 @@ {{ step }} -
+
{% slot 'content' default %}{% endslot %}
diff --git a/templates/custom/recommend-us-choose-article.html b/templates/custom/recommend-us-choose-article.html index 8378367..d7db606 100644 --- a/templates/custom/recommend-us-choose-article.html +++ b/templates/custom/recommend-us-choose-article.html @@ -3,10 +3,12 @@ {% load uuid %} {% get_uuid4 as aria_controls %} -{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" %} -
- {% component_block "form" form_method="POST" notify_required=False default_button=False %} - +{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" prose=False %} + {% component_block "form" form_method="POST" notify_required=False default_button=False %} + + + +
{% if articles %} {% with article_count=articles.count %}

Article{{ article_count|pluralize }} with “{{ query }}”.

@@ -14,8 +16,8 @@

Article{{ article_count|pluralize }} with “{{ query }}
    {% for article in articles %} -
  • -
    {{ article.how_to_cite|safe }}
    +
  • +
    {{ article.how_to_cite|safe }}
    {% component_block "button_group" %} {% url 'recommend_us_generate_email' as hx_post %} {% component_block "button" name="article_pk" value=article.pk hx_post=hx_post aria_controls=aria_controls %} @@ -32,13 +34,13 @@

    No matches for “{{ query }}”.

    We couldn't find an article with that title. Please try modifying your query or generate a generic template.

    {% endif %} - {% component_block "button_group" %} - {% url 'recommend_us_generate_email' as hx_post %} - {% component_block "button" name="general" hx_post=hx_post aria_controls=aria_controls %} - Get a general email - {% endcomponent_block %} +
+ {% component_block "button_group" %} + {% url 'recommend_us_generate_email' as hx_post %} + {% component_block "button" hx_post=hx_post aria_controls=aria_controls %} + Get a general email {% endcomponent_block %} {% endcomponent_block %} -

+ {% endcomponent_block %} {% endcomponent_block %}
diff --git a/templates/custom/recommend-us-choose-journal.html b/templates/custom/recommend-us-choose-journal.html index 557c7b9..9a4745a 100644 --- a/templates/custom/recommend-us-choose-journal.html +++ b/templates/custom/recommend-us-choose-journal.html @@ -3,10 +3,12 @@ {% load uuid %} {% get_uuid4 as aria_controls %} -{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" %} -
- {% component_block "form" form_method="POST" notify_required=False default_button=False %} - +{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" prose=False %} + {% component_block "form" form_method="POST" notify_required=False default_button=False %} + + + +
{% if journal_names %} {% with journal_count=journal_names.count %}

@@ -16,8 +18,8 @@

    {% for setting in journal_names %} -
  • -
    {{ setting.value }}
    +
  • +
    {{ setting.value }}
    {% component_block "button_group" %} {% url 'recommend_us_generate_email' as hx_post %} {% component_block "button" name="journal_pk" value=setting.journal.pk hx_post=hx_post aria_controls=aria_controls %} @@ -36,11 +38,11 @@

    No matches for “{{ query }}”.

    {% endif %} {% component_block "button_group" %} {% url 'recommend_us_generate_email' as hx_post %} - {% component_block "button" name="general" hx_post=hx_post aria_controls=aria_controls %} + {% component_block "button" hx_post=hx_post aria_controls=aria_controls %} Get a general email {% endcomponent_block %} {% endcomponent_block %} - {% endcomponent_block %} -
+

+ {% endcomponent_block %} {% endcomponent_block %}
diff --git a/templates/custom/recommend-us-choose-role.html b/templates/custom/recommend-us-choose-role.html index ee10b1c..147e244 100644 --- a/templates/custom/recommend-us-choose-role.html +++ b/templates/custom/recommend-us-choose-role.html @@ -2,40 +2,43 @@ {% load uuid %} {% get_uuid4 as aria_controls %} -{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" %} -

How do you know about the OLH?

+{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" prose=False %} {% component_block "form" form_method="POST" notify_required=False default_button=False %} - {% csrf_token %} -

Are you an...

+ + +

+

How do you know about the OLH?

+

Are you an...

{% url 'recommend_us_search_article' as hx_post %} - {% component_block "button" name="author" hx_post=hx_post aria_controls=aria_controls %} + {% component_block "button" name="role" value="author" hx_post=hx_post aria_controls=aria_controls %} Author {% endcomponent_block %}
of a paper in an OLH journal
{% url 'recommend_us_search_journal' as hx_post %} - {% component_block "button" name="editor" hx_post=hx_post aria_controls=aria_controls %} + {% component_block "button" name="role" value="editor" hx_post=hx_post aria_controls=aria_controls %} Editor {% endcomponent_block %}
of an OLH journal
{% url 'recommend_us_search_article' as hx_post %} - {% component_block "button" name="reader" hx_post=hx_post aria_controls=aria_controls %} + {% component_block "button" name="role" value="reader" hx_post=hx_post aria_controls=aria_controls %} Reader {% endcomponent_block %}
of one of your journal articles
{% url 'recommend_us_generate_email' as hx_post %} - {% component_block "button" name="other" hx_post=hx_post aria_controls=aria_controls %} + {% component_block "button" name="role" value="general" hx_post=hx_post aria_controls=aria_controls %} Other {% endcomponent_block %}
I just want to help!
+
{% endcomponent_block %} {% endcomponent_block %} diff --git a/templates/custom/recommend-us-confirm-sent.html b/templates/custom/recommend-us-confirm-sent.html index b23f81a..09f38ae 100644 --- a/templates/custom/recommend-us-confirm-sent.html +++ b/templates/custom/recommend-us-confirm-sent.html @@ -3,24 +3,24 @@ {% load uuid %} {% get_uuid4 as copy_pid %} -{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" %} -
- {% component_block "form" form_method="POST" notify_required=False default_button=False %} +{% component_block "timeline_section" alternate="odd" step=step bg="bg-blue" prose=False %} + {% component_block "form" form_method="POST" notify_required=False default_button=False %} +

Thank you for supporting open access.

Library support has helped us to make over {{ request.press.published_articles.count|intcomma }} articles diamond open access so far, saving university libraries an estimated £33.9 million since 2015. By recommending us to your librarian, you are helping to keep knowledge free. Thank you.

-

One more thing... Please share this page on social media so others - recommend us.

- {% component_block "button_group" %} - {% component_block "button" name="general" id=copy_pid type="button" %} - Copy link to this page - {% endcomponent_block %} +

One more thing... Please share this page on social media to help us + keep knowledge free.

+
+ {% component_block "button_group" %} + {% component_block "button" name="general" id=copy_pid type="button" %} + Copy link to this page {% endcomponent_block %} {% endcomponent_block %} -
+ {% endcomponent_block %}