Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
account-app
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
account-app
Commits
c72a4f4c
Commit
c72a4f4c
authored
4 years ago
by
Mitchell Moore
Browse files
Options
Downloads
Patches
Plain Diff
Change fields to inputs by default. Add form population logic
parent
1ab6b218
No related branches found
No related tags found
1 merge request
!2
Feat update ui (pre react)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/templates/auth/SignUp.html
+32
-5
32 additions, 5 deletions
app/templates/auth/SignUp.html
with
32 additions
and
5 deletions
app/templates/auth/SignUp.html
+
32
−
5
View file @
c72a4f4c
...
...
@@ -10,7 +10,31 @@
console
.
info
(
'
Room ID: {{ room_id }}
'
);
var
socket
=
io
.
connect
(
'
http://
'
+
document
.
domain
+
'
:
'
+
location
.
port
);
function
autofill_form
()
{
var
username
=
document
.
getElementById
(
"
username
"
);
let
fullname
=
document
.
getElementById
(
"
fullname
"
);
let
email
=
document
.
getElementById
(
"
email
"
);
if
((
'
{{ username }}
'
.
localeCompare
(
"
None
"
))
!==
0
)
{
username
.
value
=
"
{{ username }}
"
;
username
.
disabled
=
"
true
"
;
}
if
((
'
{{ fullname }}
'
.
localeCompare
(
"
None
"
))
!==
0
)
{
fullname
.
value
=
"
{{ fullname }}
"
;
fullname
.
disabled
=
"
true
"
;
}
if
((
'
{{ email }}
'
.
localeCompare
(
"
None
"
))
!==
0
)
{
email
.
value
=
"
{{ email }}
"
;
email
.
disabled
=
"
true
"
;
}
}
socket
.
on
(
'
connect
'
,
function
()
{
autofill_form
();
socket
.
emit
(
'
join_room
'
,
{
referrer
:
'
{{ referrer }}
'
});
...
...
@@ -93,16 +117,19 @@
<div
id=
"test"
>
<form
action=
"."
method=
"post"
onsubmit=
""
class=
".bg-light"
>
<form
id=
"signup"
action=
"."
method=
"post"
onsubmit=
""
class=
".bg-light"
>
<div
class=
"signUpContainer"
>
<label
for=
"username"
>
Blazer Id:
</label>
	
<span
id=
"username"
>
{{ username }}
</span><br>
<label
for=
"username"
>
Blazer Id:
</label>
	
<input
id=
"username"
class=
"form-control"
placeholder=
"Enter username"
required
><br>
<label
for=
"fullname"
>
Full Name:
</label>
	
<span
id=
"fullname"
>
{{ fullname }}
</span><br>
<label
for=
"fullname"
>
Full Name:
</label>
	
<input
id=
"fullname"
class=
"form-control"
placeholder=
"Enter fullname"
required
><br>
<label
for=
"email"
>
Email:
</label>
	
<span
id=
"email"
>
{{ email }}
</span><br>
<label
for=
"email"
>
Email:
</label>
	
<input
id=
"email"
class=
"form-control"
placeholder=
"Enter email"
required
><br>
<label
for=
"reason"
>
Reason for Requesting Account:
</label><br>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required
=
""
></textarea>
<textarea
class=
"form-control"
id=
"reason"
name=
"reason"
placeholder=
"Enter Reason for Account Request"
required
></textarea>
<div
class=
"row-no-gutters"
>
<div
class=
"col-lg-6"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment