Commit c752bbac authored by Romain Loth's avatar Romain Loth

[fix] login checkbox (BUG-28)

parent 229cbf7b
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment