{% extends 'layout.twig' %}

{% block body %}
	<div class="contenu clearfix"  id="typeDeMarche">
    	<h1>
        	{{ 'Types de marchés'|trad }}

        </h1>
		
		{{ ariane() }}

   	<div class="clearfix padding-Vert15" id="genetableau">
   		<div class="clearfix padding15" id="ajout_shortlist">
        
           	<form method="post" name="form_ajout_shortList" id="form_ajout_shortList" class="box-form clearfix">
				<div class="colonne2">
					<div class="row">
                        {{ inputText('Code' | trad, 'CODE_TYMA', post.CODE_TYMA, '', path('Ajax.validator.isStringSansEspace'), "{'sizeMin' : '1', 'sizeMax' : '10'}", '', '', (mode=='modification'?'readonly':''), '', '', '', '', true ) }}
					</div>
				</div>
				<div class="colonne2 last">
					<div class="row">
                        {{ inputText('Libellé' | trad, 'LIBELLE', post.LIBELLE, '', path('Ajax.validator.isStringAvecEspace'), "{'sizeMin' : '1', 'sizeMax' : '60'}", '', '', '', '', '', '', '', true ) }}
					</div>
				</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('Contrat.TypeDeMarchee.index') }}">{{'Annuler' | trad}}</a>
                </div>

           	</form>
    </div>
    </div>
    
            <script>
        	{% if post.ErreurValid or ErreurValid != '' %}
                activePopupErreur("{{ path('Ajax.Erreur.popupErreurValid') }}", "{{'Erreur lors de la validation !' | trad }} ", "{{ErreurValid | raw}}");
            {% endif %} 
        </script>
{% endblock %}