Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripta
eScriptorium
Commits
a0988d46
Commit
a0988d46
authored
Oct 12, 2020
by
EL HASSANE GARGEM
Browse files
onboarding for update not create
parent
bacf9a16
Changes
2
Show whitespace changes
Inline
Side-by-side
app/apps/users/views.py
View file @
a0988d46
...
...
@@ -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
):
...
...
app/escriptorium/templates/core/document_form.html
View file @
a0988d46
...
...
@@ -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 %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment