mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Implemented FOS bundle
This commit is contained in:
		| @@ -1,8 +1,5 @@ | ||||
| {% set icons = {'success':'fas fa-check-circle','danger':'fas fa-times','warning':'fas fa-exclamation-triangle','info':'fas fa-info'} %} | ||||
| {% for label,messages in app.flashes %} | ||||
| {% for message in messages %} | ||||
| <div class="alert alert-{{ label }}"> | ||||
| 	<i class="{{ icons[label] }}"></i> {{ message }} | ||||
| </div> | ||||
| {% include "frames/structure/message/message.html.twig" with {'message':message,'label':label} %} | ||||
| {% endfor %} | ||||
| {% endfor %} | ||||
| @@ -0,0 +1,4 @@ | ||||
| {% set icons = {'success':'fas fa-check-circle','danger':'fas fa-times','warning':'fas fa-exclamation-triangle','info':'fas fa-info'} %} | ||||
| <div class="alert alert-{{ label }}"> | ||||
| 	<i class="{{ icons[label] }}"></i> {{ message }} | ||||
| </div> | ||||
| @@ -1,25 +0,0 @@ | ||||
| {% extends "frames/default.html.twig" %} | ||||
| {% block title %} | ||||
| {% trans %}login{% endtrans %} | ||||
| {% endblock %} | ||||
| {% block content %} | ||||
| <h1> | ||||
| 	{% trans %}login{% endtrans %} | ||||
| </h1> | ||||
| <form action={{ path('login') }} method="post"> | ||||
| 	<div class="form-group"> | ||||
| 		<label for="username">{% trans %}Username{% endtrans %}</label> <input | ||||
| 			type="username" name="_username" class="form-control" id="username" | ||||
| 			aria-describedby="usernameHelp" | ||||
| 			placeholder="{% trans %}Enter username{% endtrans %}'"> | ||||
| 	</div> | ||||
| 	<div class="form-group"> | ||||
| 		<label for="password">{% trans %}Password{% endtrans %}</label> <input | ||||
| 			type="password" name="_password" class="form-control" id="password" | ||||
| 			placeholder="{% trans %}Password{% endtrans %}"> | ||||
| 	</div> | ||||
| 	<button type="submit" class="btn btn-primary"> | ||||
| 		{% trans %}Submit{% endtrans %} | ||||
| 	</button> | ||||
| </form> | ||||
| {% endblock %} | ||||
		Reference in New Issue
	
	Block a user