Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
wendelin
Commits
a298d0b6
Commit
a298d0b6
authored
Jul 18, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow user to select desired username / password.
parent
e386fa1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
15 deletions
+19
-15
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_html.html
...teItem/web_page_module/fif_gadget_erp5_register_html.html
+4
-0
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_html.xml
...ateItem/web_page_module/fif_gadget_erp5_register_html.xml
+2
-2
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_js.rst
...plateItem/web_page_module/fif_gadget_erp5_register_js.rst
+11
-11
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_js.xml
...plateItem/web_page_module/fif_gadget_erp5_register_js.xml
+2
-2
No files found.
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_html.html
View file @
a298d0b6
...
...
@@ -27,6 +27,10 @@
First Name:
<input
name=
"your_first_name"
id=
"first_name"
/>
Last Name:
<input
name=
"your_last_name"
id=
"last_name"
/>
Email:
<input
name=
"your_email"
id=
"email"
/>
Username:
<input
name=
"your_reference"
id=
"reference"
/>
Password:
<input
name=
"your_password"
id=
"password"
type=
"password"
/>
Confirmation Password:
<input
name=
"your_confirm_password"
id=
"confirm_password"
type=
"password"
/>
<input
data-theme=
"b"
data-inline=
"true"
type=
"submit"
data-i18n=
"[value]Register"
value=
"Register"
data-icon=
"check"
/>
</form>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_html.xml
View file @
a298d0b6
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
6.54150.62060.20974
</string>
</value>
<value>
<string>
97
7.10261.58373.1809
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
1563
275707.24
</float>
<float>
1563
449676.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_js.rst
View file @
a298d0b6
...
...
@@ -26,23 +26,23 @@
.onEvent('submit', function (evt) {
var gadget = this,
first_name = document.getElementById("first_name").value,
last_name = document.getElementById("last_name").value,
email = document.getElementById("email").value;
first_name = document.getElementById("first_name").value,
last_name = document.getElementById("last_name").value,
email = document.getElementById("email").value,
reference = document.getElementById("reference").value,
password = document.getElementById("password").value,
confirm_password = document.getElementById("confirm_password").value;
function showMessage(msg) {
document.getElementById("status-message").innerHTML = msg;
}
if ((validateEmail(email)) && (first_name) && (last_name)) {
if ((validateEmail(email)) && (first_name) && (last_name)
&& (reference) && (password) && (confirm_password) && (password === confirm_password)
) {
/* send to server */
var url = "ERP5Site_newCredentialRequest?batch_mode=1&reference=" +
email + "&default_email_text=" + email + "&first_name=" + first_name + "&last_name=" + last_name
;
var url = "ERP5Site_newCredentialRequest?batch_mode=1&reference=" +
reference + "&default_email_text=" + email + "&first_name=" + first_name + "&last_name=" + last_name + "&password=" + password
;
return RSVP.Queue()
.push(function () {
return jIO.util.ajax({"type": "POST",
"url": url,
"xhrFields": {withCredentials: true}});
"url": url,
"xhrFields": {withCredentials: true}});
})
.push(function (server_response) {
var response = server_response.target.response;
...
...
@@ -68,7 +68,7 @@
});
})*/;
} else {
return gadget.notifySubmitted({message: '
bad fields
', status: 'error'});
return gadget.notifySubmitted({message: '
Misformatted email and / or passwords not matching. Please note that all fields are required!
', status: 'error'});
}
});
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_register_js.xml
View file @
a298d0b6
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
977.
8898.22031.4078
</string>
</value>
<value>
<string>
977.
10272.46563.23142
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
1563
367884.02
</float>
<float>
1563
450686.29
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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