<commit_before>{% block title %}{% endblock %}

{% block content %}
    {% block fos_user_content %}{% endblock %}
{% endblock %}<commit_msg>essai d'adaptation du formulaire de connexion<commit_after>{% extends "::base.html.twig" %}
{% block body %}
	<!-- Page Content -->
	<div class="container">

	<!-- Marketing Icons Section -->
	<div class="clear"></div>
	<!-- /.row -->

	<!-- =========== -->
	<!-- Ads Section -->
	<!-- =========== -->

	<!-- First section -->
	<div class="row">
		<h2>{{ 'connexion_welcome' | trans }}</h2>
	    <p>{{ 'fil_ariane_text' | trans }}<a title="Accueil_title" href="{{ path('pa_general_accueil') }}">{{ 'Accueil_title' | trans }}</a> >> <a href="{{ path('pa_general_mes_annonces') }}">{{ 'Mon_compte_disconnected_title' | trans }}</a></p>
		<!-- /.row -->

		<div class="clear"></div>
		<!-- Display Content just if the user is connected -->
		{% if is_granted('ROLE_USER') %}
			<p>{{ 'connexion_already_connected' | trans }}</p>
			<ul>
				<li><a href="{{ path('pa_general_offres') }}">{{ 'Offres_title' | trans }}</a></li>
				<li><a href="{{ path('pa_general_demandes') }}">{{ 'Demandes_title' | trans }}</a></li>
				<li><a href="{{ path('pa_general_mes_annonces') }}">{{ 'Mes_annonces_title' | trans }}</a></li>
				<li><a href="{{ path('pa_general_deconnexion') }}">{{ 'deconnexion_title' | trans }}</a></li>
			</ul>
		<!-- If the user is not connnected -->
		{% else %}
			<!-- <div class="col-md-4 col-sm-6"> -->
			<div class="page-header">
				<p>{{ 'connexion_please_connect_or_suscribe' | trans }}</p>
				<div class="clear"></div>
				<div class="container">					
					<div class="row">
						   <div class="main">
							   	{% for type, messages in app.session.flashBag.all %}
	           						{% for message in messages %}
						                <div class="{{ type }}">
						                    {{ message|trans({}, 'FOSUserBundle') }}
						                </div>
	            					{% endfor %}
	        					{% endfor %}
						        <div class="col-xs-12 col-sm-6 col-sm-offset-1">
						        	<fieldset>
						        		<legend>{{ 'connexion_title' | trans }}</legend>
							            <form action="{{ path('fos_user_security_login') }}" name="login" role="form" class="form-horizontal" method="post" accept-charset="utf-8">
							                <div class="form-group">
							                	<div class="col-md-8">
							                		<label for="username">{{ 'connexion_form_id' | trans }} :</label>
							                		<input name="_username" placeholder="Idenfiant" class="form-control" type="text" id="username"/>
							                	</div>
							                </div>
							                <div class="form-group">
							                	<div class="col-md-8">
							                		<label for="password">{{ 'connexion_form_pw' | trans }} :</label>
							                		<input name="_password" placeholder="<PASSWORD>" class="form-control" type="password" id="password"/>
							                	</div>
							                </div>
							                <div class="form-group">
							                	<div class="col-md-offset-0 col-md-8">
							                		<input type="submit" id="_submit" name="_submit" value="Connexion" lass="btn btn-success btn btn-success">
							                	</div>
							                </div>
							                <input type="hidden" id="remember_me" name="_remember_me" value="on">
							            </form>
						        	</fieldset>
						        	{% block fos_user_content %}
            						{% endblock fos_user_content %}
						        </div>
						        <div class="col-md-4 col-sm-6">
						        	<fieldset style="margin-bottom: -15px;">
						        		<legend>{{ 'suscribe_title' | trans }}</legend>
							        	<p>{{ 'suscribe_on_connexion_page' | trans }}</p>
							        	<a href="{{ path('pa_general_inscription') }}">{{ 'suscribe_go' | trans }}</a>
						        	</fieldset>
						        </div>
						    </div>
						</div>
					</div>
				</div>
			</div>
		{% endif %}
		</div>
	</div>
	<!-- /.container -->
	<script>
	/*$().ready(function() {
		$("#form_creer_annonce").addClass("form-horizontal");
		$("#form_creer_annonce").children().addClass( "form-group" );
		$("label").addClass( "col-sm-2 control-label");
		$("#form_creer_annonce :input").addClass( "form-control");
		$("#pa_annoncebundle_annonce_an_titre").wrap('<div class="col-xs-3"></div>');*/
	</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.20774569062010298, 'fraction_numerical': 0.004253413924334005, 'mean_word_length': 2.03326544467074, 'pattern_counts': {'":': 1, '<': 110, '<?xml version=': 0, '>': 112, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2362307', 'n_tokens_mistral': 1799, 'n_tokens_neox': 1391, 'n_words': 265}