mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	enrich login template with login buttons
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| {% load static %} | ||||
| {% load i18n %} | ||||
| {% load inventree_extras %} | ||||
| {% load socialaccount %} | ||||
|  | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| @@ -84,9 +85,21 @@ | ||||
|                         </div> | ||||
|                         {% endif %} | ||||
|  | ||||
|                         <button class='pull-right btn btn-primary login-button' type="submit">{% trans "Login" %}</button> | ||||
|  | ||||
|                         <hr> | ||||
|  | ||||
|                         <button class='pull-right btn btn-primary login-button' type="submit">{% trans "Login" %}</button> | ||||
|                         {% get_providers as socialaccount_providers %} | ||||
|  | ||||
|                         {% if socialaccount_providers %} | ||||
|                         <h4>{% trans 'Login with provider' %}</h4> | ||||
|                         {% for provider in socialaccount_providers %} | ||||
|                             {{ provider.name }} | ||||
|                             <a class="btn btn-primary" href="{% provider_login_url 'github' %}"> | ||||
|                                 {% blocktrans with name=provider.name %}Login with {{name}}{% endblocktrans%} | ||||
|                             </a> | ||||
|                         {% endfor %} | ||||
|                         {% endif %} | ||||
|  | ||||
|                     </form> | ||||
|  | ||||
| @@ -101,5 +114,7 @@ | ||||
|  | ||||
| </div> | ||||
|  | ||||
| {% providers_media_js %} | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user