modifications sur le template default
[mw_sourceml] / app / out / default / views / users / pistes / edit.php
index 1c46820..dda8eb3 100644 (file)
@@ -25,7 +25,7 @@ var is_reference = <?php echo $this->out["piste"]["reference"] ? "true" : "false
 
 <?php if($this->out["groupes"]["total"] > 0) : ?>
 
-<form name="piste_form" action="<?php echo $this->url("users/pistes/edit", array("id" => $_GET[$this->param("id")])) ?>" method="post">
+<form name="piste_form" action="<?php echo $this->url("users/pistes/edit", array("id" => $_GET[$this->param("id")])) ?>" method="post" enctype="multipart/form-data">
   <fieldset>
     <input type="hidden" name="date_inscription" value="<?php echo $this->out["piste"]["date_inscription"] ?>" />
 
@@ -159,7 +159,18 @@ var is_reference = <?php echo $this->out["piste"]["reference"] ? "true" : "false
           <input type="text" class="long_text" name="titre" id="titre" value="<?php echo $this->out["piste"]["titre"] ?>" />
         </div>
       </li>
-  
+
+      <li>
+        <label for="image">icone</label>
+        <div class="form_input">
+          <?php if(isset($this->out["piste"]["image"])) : ?>
+          <img class="logo" src="<?php echo $this->out["piste"]["image_uri"] ?>" /><br /><br />
+          <input type="checkbox" name="del_image" /> effacer l'icone<br /><br />
+          <?php endif; ?>
+          <input type="file" name="image" />
+        </div>
+      </li>
+
       <li>
         <label for="licence">licence</label>
         <div class="form_input">
@@ -228,7 +239,7 @@ var is_reference = <?php echo $this->out["piste"]["reference"] ? "true" : "false
         <label for="description">description</label>
       </li>
       <li>
-        <textarea class="tinymce" cols="70" rows="10" name="description" id="description"><?php echo $this->out["piste"]["description"] ?></textarea>
+        <textarea class="tinymce" cols="70" rows="10" name="description" id="description"><?php echo isset($this->out["piste"]["description"]) ? $this->out["piste"]["description"] : "" ?></textarea>
       </li>
   
     </ul>