diff --git a/lacommunaute/templates/forum/forum_detail.html b/lacommunaute/templates/forum/forum_detail.html index 8ed799320..0ac118d9b 100644 --- a/lacommunaute/templates/forum/forum_detail.html +++ b/lacommunaute/templates/forum/forum_detail.html @@ -48,10 +48,10 @@

+ class="matomo-event h3 text-decoration-none d-inline-block" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="forum"> Les autres fiches du thème
+ role="tabpanel" + aria-labelledby="topics-tab"> {% with unread_topics=unread_topics %} {% include "forum_conversation/topic_list.html" %} {% endwith %}
{% if announces %}
+ role="tabpanel" + aria-labelledby="announces-tab"> {% with topics=announces hide_if_empty=True unread_topics=unread_topics loadmoretopic_url=None %} {% include "forum_conversation/topic_list.html" %} {% endwith %} diff --git a/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html b/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html index 1f6c0128d..729ec70ad 100644 --- a/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html +++ b/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html @@ -10,12 +10,12 @@
+ hx-target="#postinfeedarea{{topic.pk}}" + hx-swap="outerHTML" + class="majorpoints matomo-event" + data-matomo-category="engagement" + data-matomo-action="contribute" + data-matomo-option="post"> {% csrf_token %} {% if post_form.non_field_errors %} diff --git a/lacommunaute/templates/forum_conversation/partials/topic_likes.html b/lacommunaute/templates/forum_conversation/partials/topic_likes.html index 1be8729c3..2ce464edd 100644 --- a/lacommunaute/templates/forum_conversation/partials/topic_likes.html +++ b/lacommunaute/templates/forum_conversation/partials/topic_likes.html @@ -5,12 +5,12 @@ {% with topic.likes as counter %} {% if user.is_authenticated %} diff --git a/lacommunaute/templates/forum_conversation/topic_list.html b/lacommunaute/templates/forum_conversation/topic_list.html index a395134b1..367246c60 100644 --- a/lacommunaute/templates/forum_conversation/topic_list.html +++ b/lacommunaute/templates/forum_conversation/topic_list.html @@ -32,10 +32,10 @@ + class="matomo-event" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="topic"> {{ topic.subject }} {% if topic.is_locked %} {% endif %}

@@ -56,13 +56,13 @@ {{ topic.first_post.content.rendered|urlizetrunc_target_blank:30|img_fluid|truncatechars_html:200 }} {% if topic.first_post.content.rendered|length > 200 %} {% trans "+ show more" %} @@ -121,13 +121,13 @@
+ id="loadmoretopics-button" + hx-target="#loadmoretopicsarea{{ loadmoretopic_suffix }}" + hx-swap="outerHTML" + class="btn btn-link btn-ico btn-block justify-content-center matomo-event" + data-matomo-category="engagement" + data-matomo-action="loadmore" + data-matomo-option="topic"> {% trans "load more topics" %} diff --git a/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html b/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html index 4bd7352ca..fbc61531c 100644 --- a/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html +++ b/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html @@ -24,10 +24,10 @@

+ class="matomo-event" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="news"> {{ topic.subject }} {% if topic.is_locked %} {% endif %}

@@ -45,13 +45,13 @@ {{ topic.first_post.content.rendered|urlizetrunc_target_blank:30|img_fluid|truncatechars_html:200 }} {% if topic.first_post.content.rendered|length > 200 %} {% trans "+ show more" %} @@ -84,13 +84,13 @@
+ id="loadmoretopics-button" + hx-target="#loadmoretopicsarea{{ loadmoretopic_suffix }}" + hx-swap="outerHTML" + class="btn btn-link btn-ico btn-block justify-content-center matomo-event" + data-matomo-category="engagement" + data-matomo-action="loadmore" + data-matomo-option="topic"> {% trans "load more topics" %} diff --git a/lacommunaute/templates/pages/home.html b/lacommunaute/templates/pages/home.html index 262af1149..4feafcb9e 100644 --- a/lacommunaute/templates/pages/home.html +++ b/lacommunaute/templates/pages/home.html @@ -64,10 +64,10 @@

{% for topic in topics_public %}
  • + class="matomo-event btn-link stretched-link" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="topic"> {{ topic.subject }}
  • @@ -89,10 +89,10 @@

    {% for forum in forums_category %}
  • + class="matomo-event btn-link stretched-link" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="forum"> [{{ forum.parent.name }}] {{ forum.name }}
  • @@ -114,10 +114,10 @@

    {% for topic in topics_newsfeed %}
  • + class="matomo-event btn-link stretched-link" + data-matomo-category="engagement" + data-matomo-action="view" + data-matomo-option="news"> {{ topic.subject }}
  • diff --git a/lacommunaute/templates/surveys/dsp_detail.html b/lacommunaute/templates/surveys/dsp_detail.html index b4ed7fdcf..063d766a8 100644 --- a/lacommunaute/templates/surveys/dsp_detail.html +++ b/lacommunaute/templates/surveys/dsp_detail.html @@ -1,4 +1,4 @@ -{% extends 'board_base.html' %} +{% extends "layouts/base.html" %} {% load i18n %} {% block title %}Diagnostic Socio Professionnel{{ block.super }}{% endblock %} @@ -6,22 +6,32 @@ {% block content %} -

    Les recommandations suite à votre diagnostic

    - - {% for label, recommendation in object.recommendations.items %} -
    -
    -
    -
    -

    {{label}}

    -
    -
    - {{ recommendation }} -
    +
    +
    +
    +
    +

    Les recommandations suite à votre diagnostic

    - {% endfor %} +
    +
    +
    +
    +
    + {% for label, recommendation in object.recommendations.items %} +
    +

    {{label}}

    +
    + {{ recommendation }} +
    +
    +
    + {% endfor %} +
    +
    +
    +
    {% endblock content %} diff --git a/lacommunaute/templates/surveys/dsp_form.html b/lacommunaute/templates/surveys/dsp_form.html index 153a7268c..3f944d1ef 100644 --- a/lacommunaute/templates/surveys/dsp_form.html +++ b/lacommunaute/templates/surveys/dsp_form.html @@ -1,31 +1,58 @@ -{% extends 'board_base.html' %} +{% extends "layouts/base.html" %} {% load i18n %} {% block title %}Diagnostic Socio Professionnel{{ block.super }}{% endblock %} -{% block meta_description %}DSP{% endblock meta_description %}" +{% block meta_description %}DSP{% endblock meta_description %} -{% block content %} -

    Diagnostic socio-professionnel

    +{% block content %} - - {% csrf_token %} +
    +
    +
    +
    +

    Diagnostic socio-professionnel

    +
    +
    +
    +
    - {% for field in form %} -
    -
    -
    -
    -

    {{ field.label_tag }}

    -
    -
    - {{ field }} -
    +
    +
    +
    +
    +
    + + {% csrf_token %} + {% for field in form %} +
    +
    +
    + {{ field.label_tag }} +
    {{ field }}
    +
    +
    +
    +
    +
    +
    +
    +
    + {% endfor %} +
    +
    +
    +
    + +
    +
    +
    +
    +
    - {% endfor %} - - +
    +
    {% endblock content %}