Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
c752bbac
Commit
c752bbac
authored
Oct 04, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] login checkbox (BUG-28)
parent
229cbf7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
login.html
templates/pages/main/login.html
+18
-8
No files found.
templates/pages/main/login.html
View file @
c752bbac
...
@@ -56,15 +56,15 @@
...
@@ -56,15 +56,15 @@
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
</div>
</div>
<div
class=
"center"
>
<div
class=
"center"
>
<button
type=
"submit"
class=
"btn btn-primary btn-rounded"
>
Login
</button>
<div
class=
"checkbox"
>
</div>
<label>
<div>
<input
id=
"terms-accept"
type=
"checkbox"
value=
""
onclick=
"enableAuth(this)"
>
<p>
I accept the terms of uses [DOC1] [DOC2].
<center>
</input>
By submitting I accept the terms of uses [DOC1] [DOC2].
</label>
</center>
</p>
</div>
</div>
<button
id=
"login-button"
type=
"submit"
class=
"btn btn-primary btn-rounded"
disabled
>
Login
</button>
</div>
</form>
</form>
</div>
</div>
</div>
</div>
...
@@ -79,6 +79,16 @@
...
@@ -79,6 +79,16 @@
<!-- Bootstrap -->
<!-- Bootstrap -->
<script
src=
"{% static "
lib
/
bootstrap
/
3
.
2
.
0
/
bootstrap
.
min
.
js
"
%}"
></script>
<script
src=
"{% static "
lib
/
bootstrap
/
3
.
2
.
0
/
bootstrap
.
min
.
js
"
%}"
></script>
<!-- checkbox => submit -->
<script
type=
"text/javascript"
>
var
okButton
=
document
.
getElementById
(
'login-button'
)
function
enableAuth
(
box
)
{
okButton
.
disabled
=
!
box
.
checked
}
</script>
</body>
</body>
...
...
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