Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dashboard: add Tally popup for prescribers and employers
Browse files Browse the repository at this point in the history
leo-naeka committed Jan 24, 2025

Verified

This commit was signed with the committer’s verified signature.
1 parent 5647265 commit 075bd5e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions itou/templates/dashboard/dashboard.html
Original file line number Diff line number Diff line change
@@ -258,4 +258,25 @@ <h2>Événements à venir</h2>
{% block script %}
{{ block.super }}
<script src="{% static 'js/sliding_tabs.js'%}"></script>

{% if user.is_employer or user.is_prescriber_with_authorized_org %}
<script async src="https://tally.so/widgets/embed.js"></script>
<script nonce="{{ CSP_NONCE }}">
window.TallyConfig = {
"formId": "{{ user.is_employer|yesno:'mKvOeK,mZvQpy' }}",
"popup": {
"emoji": {
"text": "👋",
"animation": "wave"
},
"autoClose": 0,
"showOnce": true,
"hideTitle": true,
"hiddenFields": {
"user_id": "{{ user.public_id }}",
},
}
};
</script>
{% endif %}
{% endblock %}

0 comments on commit 075bd5e

Please sign in to comment.