forked from CGM_Public/pretix_original
Basic password recovery (#5)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{% load i18n %}{% blocktrans with event=event.name url=url %}Hello,
|
||||
|
||||
you requested a new password. Please go to the following page to reset your password:
|
||||
|
||||
{{ url }}
|
||||
|
||||
Best regards,
|
||||
Your {{ event }} team
|
||||
{% endblocktrans %}
|
||||
20
src/pretix/presale/templates/pretixpresale/event/forgot.html
Normal file
20
src/pretix/presale/templates/pretixpresale/event/forgot.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "pretixpresale/event/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
{% block title %}{% trans "Password recovery" %}{% endblock %}
|
||||
{% block content %}
|
||||
<h2>{% trans "Password recovery" %}</h2>
|
||||
<form class="form-horizontal" method="post">
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form_errors form type='all' layout='inline' %}
|
||||
{% bootstrap_field form.username layout="horizontal" %}
|
||||
<input type="hidden" name="form" value="login" />
|
||||
<div class="form-group">
|
||||
<div class="submit-group col-md-offset-2 col-md-4 text-right">
|
||||
<button type="submit" class="btn btn-primary btn-save">
|
||||
{% trans "Send recovery information" %}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -24,6 +24,9 @@
|
||||
<input type="hidden" name="form" value="login" />
|
||||
<div class="form-group">
|
||||
<div class="submit-group col-md-offset-2 col-md-4 text-right">
|
||||
<a href="{% url "presale:event.forgot" event=request.event.slug organizer=request.event.organizer.slug %}" class="btn btn-link">
|
||||
{% trans "Lost password?" %}
|
||||
</a>
|
||||
<button type="submit" class="btn btn-primary btn-save">
|
||||
{% trans "Login" %}
|
||||
</button>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{% extends "pretixpresale/event/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
{% block title %}{% trans "Password recovery" %}{% endblock %}
|
||||
{% block content %}
|
||||
<h2>{% trans "Password recovery" %}</h2>
|
||||
<form class="form-horizontal" method="post">
|
||||
{% csrf_token %}
|
||||
{% bootstrap_form_errors form type='all' layout='inline' %}
|
||||
{% bootstrap_field form.password layout="horizontal" %}
|
||||
{% bootstrap_field form.password_repeat layout="horizontal" %}
|
||||
<input type="hidden" name="form" value="login" />
|
||||
<div class="form-group">
|
||||
<div class="submit-group col-md-offset-2 col-md-4 text-right">
|
||||
<button type="submit" class="btn btn-primary btn-save">
|
||||
{% trans "Set new password" %}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user