mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-19 19:41:32 +01:00
\#5, TODO: Add codes and add sources and versions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "base.twig" %}
|
||||
{% extends app.fronthtml~"/base.twig" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@@ -11,7 +11,7 @@
|
||||
{% if page.state == 1 %}
|
||||
<p class="text-danger">Bad credentials</p>
|
||||
{% elseif page.state == 2 %}
|
||||
<p class="text-danger">Email already exits</p>
|
||||
<p class="text-danger">Error during sign-up, check your data</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,8 +32,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-success g-recaptcha" data-sitekey="6Lc7gXAUAAAAAJRaFo99vIkOUWckuGW8IOLtUxwZ"
|
||||
data-callback="YourOnSubmitFn">Submit</button>
|
||||
<button type="submit" class="btn btn-success">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-12">
|
||||
@@ -74,16 +73,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-3" for="tos">You agree to our <a href="?page=tos">Terms of service</a></label>
|
||||
<label class="control-label col-sm-3" for="tos">You agree to our <a href="{{path('tos')}}">Terms of service</a></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="checkbox" required="required" name="tos" id="tos">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-success g-recaptcha"
|
||||
data-sitekey="6Lc7gXAUAAAAAJRaFo99vIkOUWckuGW8IOLtUxwZ"
|
||||
data-callback="YourOnSubmitFn">Submit</button>
|
||||
<button type="submit" class="btn btn-success">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-12">
|
||||
@@ -128,7 +125,7 @@
|
||||
document.getElementById("emailre").onchange = checkEmail;
|
||||
document.getElementById("emailre-re").onchange = checkEmail;
|
||||
|
||||
{% if page.page == "register" or page.state == 2 %}
|
||||
{% if page.page == "sign-up" or page.state == 2 %}
|
||||
nowRegister();
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user