
	<div class="row-fluid sortable">
       	<div class="box-header well" data-original-title>
						<h2><i class="icon-edit"></i> Form promotion</h2>
						
					</div>
					<div class="box-content">
					
					<?php if(isset($promotion[0]["id"])) { ?>
						<form enctype="multipart/form-data" class="form-horizontal" method="post" action="modifierpromotion">
						<!-- MAX_FILE_SIZE doit précéder le champ input de type file -->
                         <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
				
						  <fieldset>
							<legend>Ajouter une promotion</legend>
							
							<div class="control-group">
							  <label class="control-label" for="libelle">ID </label>
							  <div class="controls">
								<input type="text" class="span6 typeahead" id="id"  name="id" data-provide="typeahead" data-items="4" value="<?php echo $promotion[0]["id"]; ?>" readonly>
							  </div>
							</div>
							
							<div class="control-group">
							  <label class="control-label" for="libelle">Libelle </label>
							  <div class="controls">
								<input type="text" class="span6 typeahead" id="libelle"  name="libelle" data-provide="typeahead" data-items="4" value="<?php echo $promotion[0]["libelle"]; ?>" >
							  </div>
							</div>
							
							<div class="control-group">
							  <label class="control-label" for="date_debut">Date de début </label>
							  <div class="controls">
								<input type="date" class="span6 typeahead" id="date_debut"  name="date_debut" data-provide="typeahead" data-items="4" value="<?php echo $promotion[0]["date_debut"]; ?>">
							  </div>
							</div>
							
							<div class="control-group">
							  <label class="control-label" for="date_fin">Date de fin </label>
							  <div class="controls">
								<input type="date" class="span6 typeahead" id="date_fin"  name="date_fin" data-provide="typeahead" data-items="4" value="<?php echo $promotion[0]["date_fin"]; ?>">
							  </div>
							</div>
		
							
		   
							
							<div class="form-actions">
							  <button type="submit" class="btn btn-primary">Enregistrer</button>
							  <a href="<?php echo URL::site('admin/listepromotions'); ?>" class="btn">Annuler</a>
							</div>
						  </fieldset>
						  
						</form>   
                         <?php } else {echo "Cet element n'existe pas ! "; } ?>
					</div>
				</div><!--/span-->
	</div>