Skip to content
Snippets Groups Projects
Commit d6d992e2 authored by Carlos Vega's avatar Carlos Vega
Browse files

use the whole study object instead of the properties

parent 446ddc77
No related branches found
No related tags found
1 merge request!174Bug/hide vouchers if not set in study
Pipeline #7072 passed
......@@ -66,7 +66,7 @@
</a>
</li>
{% if has_vouchers %}
{% if study.has_vouchers %}
<li data-desc="vouchers">
<a href="{% url 'web.views.vouchers' %}">
<i class="fa fa-user-md"></i>
......@@ -85,10 +85,10 @@
<ul class="treeview-menu">
<li><a href="{% url 'web.views.configuration' %}">General</a></li>
<li><a href="{% url 'web.views.languages' %}">Languages</a></li>
{% if has_voucher_types %}
{% if study.has_voucher_types %}
<li><a href="{% url 'web.views.voucher_types' %}">Voucher types</a></li>
{% endif %}
{% if has_vouchers %}
{% if study.has_vouchers %}
<li><a href="{% url 'web.views.workers' 'VOUCHER_PARTNER' %}">Voucher partners</a></li>
{% endif %}
<li><a href="{% url 'web.views.workers' 'HEALTH_PARTNER' %}">Health partners</a></li>
......
......@@ -60,8 +60,7 @@ def extend_context(params, request):
'role': role,
'notifications': notifications,
'study_id': GLOBAL_STUDY_ID,
'has_vouchers' : study.has_vouchers,
'has_voucher_types' : study.has_voucher_types
'study' : study
})
return final_params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment