renommage de "status" en "role" (bdd et code)
[mtweb] / mw / app / out / default / views / admin / users / add.php
index 7e840df..f2fdce2 100644 (file)
         </div>
       </li>
       <li>
-        <label for="status">r&ocirc;le</label>
+        <label>r&ocirc;le</label>
         <div class="form_input">
           <ul>
-            <?php foreach($this->out["status"] as $id_status => $status) : ?>
+            <?php foreach($this->out["roles"] as $id_role => $role) : ?>
               <li>
-                <input type="checkbox" name="status_<?php echo $id_status; ?>"<?php
-                  echo in_array($id_status, $this->out["user"]["status"]) ? " checked" : "";
+                <input type="checkbox" name="role_<?php echo $id_role; ?>"<?php
+                  echo in_array($id_role, $this->out["user"]["roles"]) ? " checked" : "";
                 ?> />
-                <?php echo $status["intitule"]; ?>
+                <?php echo $role["intitule"]; ?>
               </li>
             <?php endforeach; ?>
           </ul>