mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Moved templates from deprecated to correct path
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{% extends "@FOSUser/layout.html.twig" %}
|
||||
{% block title %}
|
||||
{% trans %}login{% endtrans %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>
|
||||
{% trans %}login{% endtrans %}
|
||||
</h1>
|
||||
{{ include('@FOSUser/Security/login_content.html.twig') }}
|
||||
{% endblock %}
|
@@ -0,0 +1,27 @@
|
||||
{% trans_default_domain 'FOSUserBundle' %}
|
||||
{% if error %}
|
||||
{% include "frames/structure/message/message.html.twig" with {'message':error.messageKey|trans(error.messageData, 'security'),'label':'danger'} %}
|
||||
{% endif %}
|
||||
|
||||
<form action="{{ path("fos_user_security_check") }}" method="post">
|
||||
{% if csrf_token %}
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
|
||||
{% endif %}
|
||||
<div class="form-group">
|
||||
<label for="username">{{ 'security.login.username'|trans }}</label> <input
|
||||
type="text" id="username" name="_username"
|
||||
value="{{ last_username }}" required="required" class="form-control"
|
||||
autocomplete="username" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">{{ 'security.login.password'|trans }}</label> <input
|
||||
type="password" id="password" name="_password" class="form-control" required="required"
|
||||
autocomplete="current-password" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="checkbox" id="remember_me" name="_remember_me" value="on" />
|
||||
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
|
||||
</div>
|
||||
<input type="submit" id="_submit" name="_submit"
|
||||
value="{{ 'security.login.submit'|trans }}" class="btn btn-primary"/>
|
||||
</form>
|
Reference in New Issue
Block a user