Allow to disable login/password reset

This commit is contained in:
Raphael Michel
2016-06-06 22:58:17 +02:00
parent 87b7685cf9
commit a7647d8de2
4 changed files with 35 additions and 8 deletions

View File

@@ -9,19 +9,23 @@
{% bootstrap_field form.email %}
{% bootstrap_field form.password %}
<div class="form-group buttons">
<a href="{% url "control:auth.forgot" %}" class="btn btn-link">
{% trans "Lost password?" %}
</a>
{% if can_reset %}
<a href="{% url "control:auth.forgot" %}" class="btn btn-link">
{% trans "Lost password?" %}
</a>
{% endif %}
<button type="submit" class="btn btn-primary">
{% trans "Log in" %}
</button>
</div>
<div class="form-group buttons">
<a href="{% url "control:auth.register" %}" class="btn btn-link">
{% trans "Register" %}
</a>
</div>
{% if can_register %}
<div class="form-group buttons">
<a href="{% url "control:auth.register" %}" class="btn btn-link">
{% trans "Register" %}
</a>
</div>
{% endif %}
</form>
{% endblock %}