mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 14:45:42 +00:00 
			
		
		
		
	crispy tag for password reset
This commit is contained in:
		
							
								
								
									
										21
									
								
								InvenTree/templates/account/password_reset.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								InvenTree/templates/account/password_reset.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
{% extends "account/base.html" %}
 | 
			
		||||
 | 
			
		||||
{% load i18n account crispy_forms_tags %}
 | 
			
		||||
 | 
			
		||||
{% block head_title %}{% trans "Password Reset" %}{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
    <h1>{% trans "Password Reset" %}</h1>
 | 
			
		||||
    {% if user.is_authenticated %}
 | 
			
		||||
    {% include "account/snippets/already_logged_in.html" %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>
 | 
			
		||||
 | 
			
		||||
    <form method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
 | 
			
		||||
        {% csrf_token %}
 | 
			
		||||
        {{ form|crispy }}
 | 
			
		||||
        <input type="submit" class="btn btn-primary btn-block" value="{% trans 'Reset My Password' %}" />
 | 
			
		||||
    </form>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user