parent
							
								
									5f6a97ca5a
								
							
						
					
					
						commit
						bb93151832
					
				@ -1,37 +0,0 @@ | 
				
			||||
{% autoescape false %} | 
				
			||||
{% if _u.logged  == 0 %} | 
				
			||||
    {% if login_form %} | 
				
			||||
        <div id="login_block" class="panel panel-default"> | 
				
			||||
            <div class="panel-body"> | 
				
			||||
            {{ login_language_form }} | 
				
			||||
            {% if plugin_login_top is not null %} | 
				
			||||
                <div id="plugin_login_top"> | 
				
			||||
                    {{ plugin_login_top }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
 | 
				
			||||
            {{ login_failed }} | 
				
			||||
            {{ login_form }} | 
				
			||||
 | 
				
			||||
            {% if "allow_lostpassword" | api_get_setting == 'true' or "allow_registration" | api_get_setting == 'true' %} | 
				
			||||
                <ul class="nav-bar"> | 
				
			||||
                    {% if "allow_registration" | api_get_setting != 'false' %} | 
				
			||||
                        <li><a href="{{ _p.web_main }}auth/inscription.php"> {{ 'SignUp' | get_lang }} </a></li> | 
				
			||||
                    {% endif %} | 
				
			||||
 | 
				
			||||
                    {% if "allow_lostpassword" | api_get_setting == 'true' %} | 
				
			||||
                        <li><a href="{{ _p.web_main }}auth/lostPassword.php"> {{ 'LostPassword' | get_lang }} </a></li> | 
				
			||||
                    {% endif %} | 
				
			||||
                </ul> | 
				
			||||
            {% endif %} | 
				
			||||
 | 
				
			||||
            {% if plugin_login_bottom is not null %} | 
				
			||||
                <div id="plugin_login_bottom"> | 
				
			||||
                    {{ plugin_login_bottom }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    {% endif %} | 
				
			||||
{% endif %} | 
				
			||||
{% endautoescape %} | 
				
			||||
@ -1,41 +0,0 @@ | 
				
			||||
{% import '@ChamiloCore/Macros/box.html.twig' as macro %} | 
				
			||||
 | 
				
			||||
<!DOCTYPE html> | 
				
			||||
<!--[if lt IE 7 ]><html lang="{{ app.request.getLocale() }}" class="no-js ie6"> <![endif]--> | 
				
			||||
<!--[if IE 7 ]><html lang="{{ app.request.getLocale() }}" class="no-js ie7"> <![endif]--> | 
				
			||||
<!--[if IE 8 ]><html lang="{{ app.request.getLocale() }}" class="no-js ie8"> <![endif]--> | 
				
			||||
<!--[if IE 9 ]><html lang="{{ app.request.getLocale() }}" class="no-js ie9"> <![endif]--> | 
				
			||||
<!--[if (gt IE 9)|!(IE)]><!--><html lang="{{ app.request.getLocale() }}" class="no-js"> <!--<![endif]--> | 
				
			||||
<head> | 
				
			||||
    <meta charset="utf-8"> | 
				
			||||
    <meta name="author" content=""> | 
				
			||||
    <meta name="keywords" content=""> | 
				
			||||
    <meta name="viewport" content="width=device-width,initial-scale=1"> | 
				
			||||
    <title> | 
				
			||||
    {% block title %} | 
				
			||||
    {{ chamilo_settings_get('platform.institution') }} - {{ chamilo_settings_get('platform.site_name') }} | 
				
			||||
    {% endblock %} | 
				
			||||
        {% set theme = 'chamilo' %} | 
				
			||||
    </title> | 
				
			||||
    {% block stylesheets %} | 
				
			||||
        {# for stylesheet in sonata_admin.adminPool.getOption('stylesheets', []) | 
				
			||||
            <link rel="stylesheet" href="{{ asset(stylesheet) }}"> | 
				
			||||
        endfor #} | 
				
			||||
    {% endblock %} | 
				
			||||
    {# Files app.css is generated from "assets/css/app.scss" file using the file webpack.config.js #} | 
				
			||||
    <link rel="stylesheet" href="{{ url('home') ~ 'build/css/app.css' }}"/> | 
				
			||||
</head> | 
				
			||||
<body class="bg-chamilo"> | 
				
			||||
<div class="login-box"> | 
				
			||||
    <div class="login-logo"> | 
				
			||||
        <img width="250px" src="{{ url('home') ~ 'build/css/themes/'~ theme ~'/images/header-logo.png' }}"/> | 
				
			||||
    </div> | 
				
			||||
    {# To see login layout check #} | 
				
			||||
    {# src/Chamilo/UserBundle/Resources/views/Security/base_login.html.twig #} | 
				
			||||
    {# src/Chamilo/UserBundle/Resources/views/Security/login.html.twig #} | 
				
			||||
    {% block page_content %} | 
				
			||||
 | 
				
			||||
    {% endblock %} | 
				
			||||
</div> | 
				
			||||
</body> | 
				
			||||
</html> | 
				
			||||
@ -1,4 +0,0 @@ | 
				
			||||
{#{% include '@ChamiloCore/Admin/switcher_links.html.twig' %}#} | 
				
			||||
 | 
				
			||||
{#{{ render(controller('ChamiloCoreBundle:Security:loginSideBar')) }}#} | 
				
			||||
{#{{ mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:loginMenu', {'automenu': 'pills', 'stacked':true}) }}#} | 
				
			||||
@ -1,6 +0,0 @@ | 
				
			||||
{% extends '@ChamiloCore/Layout/login-layout.html.twig' %} | 
				
			||||
 | 
				
			||||
{% block page_content %} | 
				
			||||
    {% block fos_user_content %} | 
				
			||||
    {% endblock %} | 
				
			||||
{% endblock %} | 
				
			||||
@ -1,53 +0,0 @@ | 
				
			||||
{% extends "@ChamiloCore/layout.html.twig" %} | 
				
			||||
 | 
				
			||||
{% block fos_user_content %} | 
				
			||||
    {% block sonata_user_login %} | 
				
			||||
        {% block sonata_user_login_error %} | 
				
			||||
            {% if error %} | 
				
			||||
                <div class="alert alert-danger alert-danger"> | 
				
			||||
                    {{ error.messageKey|trans(error.messageData, 'security') }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
        {% endblock %} | 
				
			||||
 | 
				
			||||
        <div class="login-box-body"> | 
				
			||||
            {% block sonata_user_login_form %} | 
				
			||||
                <form id="form-login-user" action="{{ path("login") }}" method="post" role="form"> | 
				
			||||
                    <div class="wrap-input validate-input m-b-23" data-validate = "{{ 'Username is required' | trans }}"> | 
				
			||||
                        <label for="inputUsername">Username</label> | 
				
			||||
                        <input type="text" value="{{ last_username }}" name="username" id="inputUsername" class="form-control" required autofocus> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="wrap-input validate-input" data-validate="Password is required"> | 
				
			||||
                        <label for="inputPassword">Password</label> | 
				
			||||
                        <input type="password" name="password" id="inputPassword" class="form-control" required> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <input type="hidden" name="csrf_token" value="{{ csrf_token('authenticate') }}"/> | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        <div class="checkbox control-group"> | 
				
			||||
                            <label for="remember_me"> | 
				
			||||
                                <input type="checkbox" id="remember_me" | 
				
			||||
                                       name="_remember_me" value="on"/> | 
				
			||||
                                {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }} | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        <a href="{{ path('legacy_main', { 'name' : 'auth/lostPassword.php'}) }}"> | 
				
			||||
                            {{ 'forgotten_password'|trans({}, 'SonataUserBundle') }} | 
				
			||||
                        </a> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <input type="submit" id="_submit" name="_submit" | 
				
			||||
                                   class="btn btn-lg btn-primary btn-block" | 
				
			||||
                                   value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}"/> | 
				
			||||
                    </div> | 
				
			||||
                </form> | 
				
			||||
            {% endblock %} | 
				
			||||
        </div> | 
				
			||||
    {% endblock %} | 
				
			||||
 | 
				
			||||
{% endblock fos_user_content %} | 
				
			||||
@ -1,46 +0,0 @@ | 
				
			||||
<form action="{{ path("login") }}" method="post" role="form"> | 
				
			||||
    {{ form_widget(form) }} | 
				
			||||
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/> | 
				
			||||
 | 
				
			||||
    {#<div class="form-group has-feedback">#} | 
				
			||||
        {#<label for="username"#} | 
				
			||||
               {#class="col-sm-4 control-label">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>#} | 
				
			||||
 | 
				
			||||
        {#<input type="text" class="form-control" id="username"#} | 
				
			||||
               {#name="_username" value="{{ last_username }}"#} | 
				
			||||
               {#required="required"/>#} | 
				
			||||
    {#</div>#} | 
				
			||||
 | 
				
			||||
    {#<div class="form-group has-feedback">#} | 
				
			||||
        {#<label for="password"#} | 
				
			||||
               {#class="col-sm-4 control-label">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>#} | 
				
			||||
 | 
				
			||||
        {#<input type="password" class="form-control"#} | 
				
			||||
               {#id="password"#} | 
				
			||||
               {#name="_password" required="required"/>#} | 
				
			||||
    {#</div>#} | 
				
			||||
 | 
				
			||||
    <div class="form-group has-feedback"> | 
				
			||||
        <div class="checkbox control-group"> | 
				
			||||
            <label for="remember_me"> | 
				
			||||
                <input type="checkbox" id="remember_me" | 
				
			||||
                       name="_remember_me" value="on"/> | 
				
			||||
                {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }} | 
				
			||||
            </label> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
 | 
				
			||||
    <div class="form-group has-feedback"> | 
				
			||||
        {#<a href="{{ path('fos_user_resetting_request') }}">#} | 
				
			||||
        <a href="{{ path('legacy_main', { 'name' : 'auth/lostPassword.php'}) }}"> | 
				
			||||
            {{ 'forgotten_password'|trans({}, 'SonataUserBundle') }} | 
				
			||||
        </a> | 
				
			||||
    </div> | 
				
			||||
    <div class="form-group"> | 
				
			||||
        <div class="col-sm-offset-4 col-sm-8"> | 
				
			||||
            <input type="submit" id="_submit" name="_submit" | 
				
			||||
                   class="btn btn-primary" | 
				
			||||
                   value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}"/> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
</form> | 
				
			||||
@ -1,69 +0,0 @@ | 
				
			||||
{% extends "@ChamiloCore/layout.html.twig" %} | 
				
			||||
 | 
				
			||||
{% block fos_user_content %} | 
				
			||||
    {% block sonata_user_login %} | 
				
			||||
        {% block sonata_user_login_error %} | 
				
			||||
            {% if error %} | 
				
			||||
                <div class="alert alert-danger alert-danger"> | 
				
			||||
                    {{ error.messageKey|trans(error.messageData, 'FOSUserBundle') }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
        {% endblock %} | 
				
			||||
        <div class="login-box-body"> | 
				
			||||
            {% block sonata_user_login_form %} | 
				
			||||
                <form id="123" action="{{ path("fos_user_security_check") }}" | 
				
			||||
                      method="post" role="form"> | 
				
			||||
                    <input type="hidden" name="_csrf_token" | 
				
			||||
                           value="{{ csrf_token('authenticate') }}"/> | 
				
			||||
 | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        <label for="username" | 
				
			||||
                               class="col-sm-4 control-label">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label> | 
				
			||||
 | 
				
			||||
                        <input type="text" class="form-control" id="username" | 
				
			||||
                               name="_username" value="{{ last_username }}" | 
				
			||||
                               required="required"/> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        <label for="password" | 
				
			||||
                               class="col-sm-4 control-label">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label> | 
				
			||||
 | 
				
			||||
                        <input type="password" class="form-control" | 
				
			||||
                               id="password" | 
				
			||||
                               name="_password" required="required"/> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        <div class="checkbox control-group"> | 
				
			||||
                            <label for="remember_me"> | 
				
			||||
                                <input type="checkbox" id="remember_me" | 
				
			||||
                                       name="_remember_me" value="on"/> | 
				
			||||
                                {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }} | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
 | 
				
			||||
 | 
				
			||||
                    <div class="form-group has-feedback"> | 
				
			||||
                        {#<a href="{{ path('fos_user_resetting_request') }}">#} | 
				
			||||
                        <a href="{{ path('legacy_main', { 'name' : 'auth/lostPassword.php'}) }}"> | 
				
			||||
 | 
				
			||||
                            {{ 'forgotten_password'|trans({}, 'SonataUserBundle') }} | 
				
			||||
                        </a> | 
				
			||||
                    </div> | 
				
			||||
 | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <div class="col-sm-offset-4 col-sm-8"> | 
				
			||||
                            <input type="submit" id="_submit" name="_submit" | 
				
			||||
                                   class="btn btn-primary" | 
				
			||||
                                   value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}"/> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </form> | 
				
			||||
            {% endblock %} | 
				
			||||
        </div> | 
				
			||||
    {% endblock %} | 
				
			||||
 | 
				
			||||
{% endblock fos_user_content %} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue