Commit a0988d46 authored by EL HASSANE GARGEM's avatar EL HASSANE GARGEM
Browse files

onboarding for update not create

parent bacf9a16
......@@ -102,6 +102,8 @@ class Profile(SuccessMessageMixin, UpdateView):
page_number = self.request.GET.get('page')
context['is_paginated'] = paginator.count != 0
context['page_obj'] = paginator.get_page(page_number)
context['onboarding'] = self.request.user.onboarding
return context
class ContactUsView(SuccessMessageMixin, CreateView):
......
......@@ -170,6 +170,8 @@
<script src="{% static 'js/document_form.js' %}"></script>
<script src="{% static 'js/help.js' %}"></script>
{% if object %}
<script type="text/javascript">
const onboarding = "{{ onboarding }}";
......@@ -191,6 +193,7 @@ if (onboarding== "True" && !onboarding_document)
}
</script>
{% endif %}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment