mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-14 17:11:34 +01:00
Restore password, need senmail
This commit is contained in:
@@ -30,9 +30,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="col-sm-offset-2 col-sm-8">
|
||||
<button type="submit" class="btn btn-success">Submit</button>
|
||||
</div>
|
||||
<div><a class="text-info" href="{{ path('restore') }}">Restore Password</a> </div>
|
||||
</div>
|
||||
<div class="col-sm-offset-1 col-sm-12">
|
||||
<button onclick="nowRegister()" id="registerbtn" class="btn btn-primary">Don't have an account yet? Sing up</button>
|
||||
|
||||
35
Source/assets/html/restore.twig
Normal file
35
Source/assets/html/restore.twig
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends app.fronthtml~"/base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div id="register" style="">
|
||||
<form class="form-horizontal" method="post" id="restore">
|
||||
<div class="form-group">
|
||||
<label class="control-label"><strong>Restore your password</strong></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-2" for="emailre">Email:</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" required="required" name="emailre" id="emailre" placeholder="Enter email" type="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-success">Send me an email</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block js %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var options = {success: function(data){
|
||||
console.log(data);
|
||||
},
|
||||
url: '{{ path("restore")}}',
|
||||
} ;
|
||||
$("#restore").ajaxForm(options);
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user