Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
d8233859
Commit
d8233859
authored
Feb 22, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugfixes for registration of return users
parent
2600b277
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
user.py
services/user.py
+1
-1
comex_page_claim_profile_controllers.js
static/js/comex_page_claim_profile_controllers.js
+6
-0
claim_profile.html
templates/claim_profile.html
+9
-6
No files found.
services/user.py
View file @
d8233859
...
...
@@ -276,6 +276,6 @@ def doors_register(email, password, name, config=REALCONFIG):
# eg doors_response.content = b'{"status":"registration email sent",
# "email":"john@locke.com"}''
answer
=
loads
(
doors_response
.
content
.
decode
())
return
answer
return
answer
[
'userID'
]
else
:
return
None
static/js/comex_page_claim_profile_controllers.js
View file @
d8233859
...
...
@@ -116,6 +116,12 @@ function miniregValidate(self) {
self
.
elSubmitBtn
.
disabled
=
!
self
.
passStatus
}
function
showMessageAndSubmit
()
{
returnForm
.
elMainMessage
.
style
.
display
=
"block"
returnForm
.
elMainMessage
.
innerHTML
=
"Registering with ISCPIF Doors and sending validation email..."
returnForm
.
elForm
.
submit
()
}
// trigger auth changes (email always autocompleted for return_user)
returnForm
.
elEmail
.
dispatchEvent
(
new
CustomEvent
(
'change'
))
...
...
templates/claim_profile.html
View file @
d8233859
...
...
@@ -26,8 +26,10 @@
Welcome to your
<b>
archived profile
</b>
page,
<strong>
{{ return_user.info.hon_title or '' }}
{{ return_user.info.first_name }}
{{ return_user.info.middle_name or '' }}
{{ return_user.info.last_name }}
</strong>
!
</strong>
</span>
</p>
</div>
...
...
@@ -61,8 +63,9 @@
<div
class=
"uform-white readonly"
id=
"profile_uform"
>
<form
id=
"comex_claim_profile_form"
enctype=
"multipart/form-data"
method=
"post"
onsubmit=
"console.info('submitted')"
>
<!-- this form is only used for styling
(no submit mechanism necessary) -->
<form
id=
"comex_claim_profile_form"
>
<!-- basic name infos -->
...
...
@@ -477,7 +480,7 @@
<img
src=
"{{ (return_user.pic_src | safe) if return_user.pic_src else ''}}"
class=
"our-vcard-img"
>
<ul>
<li
class=
bigger
>
<b>
{{ return_user.info.hon_title }}
<b>
{{ return_user.info.hon_title
or ''
}}
{{ return_user.info.first_name }}
<!-- TODO mid initials -->
{{ return_user.info.last_name }}
</b>
...
...
@@ -563,9 +566,9 @@
<!-- == S U B M I T == -->
<button
class=
"btn btn-lg btn-success"
style=
"float:
right
"
<button
class=
"btn btn-lg btn-success"
style=
"float:
left;margin: 0 2em
"
id=
"form_submit"
type=
button
disabled
onclick=
"
returnForm.elForm.s
ubmit()"
>
onclick=
"
showMessageAndS
ubmit()"
>
Submit your account renewal
</button>
...
...
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