{% extends 'layout.twig' %}

{% block body %}
	<div class="contenu clearfix"  id="shortList">
    	<h1>
        	{{ 'Short List' | trad }}
        </h1>
        {{ ariane() }}
    
   		<div class="clearfix padding15" id="ajout_shortlist">
        
           	<form method="post" name="form_ajout_shortList" id="form_ajout_shortList" class="box-form clearfix">
				<div class="clearfix">
					<div class="single row">
                        {{ inputText('Libellé' | trad, 'LIBELLE', shortList.LIBELLE, '', path('Ajax.validator.isStringAvecEspace'), "{'sizeMin' : '1', 'sizeMax' : '60'}" ) }}
					</div>
					<div class="colonne2">
    					<div class="row">
    						{{ inputDate('Date de début' | trad, 'DTE_DEB', shortList.DTE_DEB | dateTrad, '' , path('Ajax.validator.date'), '{}') }}
    					</div>
					</div>
					<div class="colonne2 last">
						<div class="row">
    						{{ inputDate('Date de fin' | trad, 'DTE_FIN', shortList.DTE_FIN | dateTrad, '' , path('Ajax.validator.date'), '{}') }}
						</div>
					</div>			
					<div class="row single clearfix">
						{{ inputTextarea('Commentaires' | trad, 'COMM', shortList.COMM , path('Ajax.validator.isStringAvecEspace'), "{'sizeMin' : '0', 'sizeMax' : '3000'}") }}
					</div>		
					<div class="button_right full validation_modal">
                    	<button type="submit" class="button principal button_right" >{{ 'Enregistrer' | trad }}</button>
                        <a type="button" class="button secondaire button_right" href="{{ path('Fournisseur.GestionShortList.gestionShortList') }}">{{ 'Annuler' | trad }}</a>
                    </div>
				</form>
			</div>	
		</div>
        <script>
        	{% if post.ErreurValid or ErreurValid != '' %}
                activePopupErreur("{{ path('Ajax.Erreur.popupErreurValid') }}", "{{'Erreur lors de la validation !' | trad | raw }} ", "{{ErreurValid | raw}}");
            {% endif %} 
        </script>
							

{% endblock %}