maj header
[mtweb] / mw / app / out / default / views / users / infos / edit.php
1 <h2>Informations du compte</h2>
2
3 <form name="user_form" action="<?php echo $this->url("users/infos/edit"); ?>" method="post">
4   <fieldset>
5     <ul>
6       <li>
7         <label for="login">login</label>
8         <div class="form_input">
9           <input type="text" name="login" id="login" value="<?php echo $this->out["user"]["login"]; ?>" disabled="disabled" />
10         </div>
11       </li>
12       <li>
13         <label>r&ocirc;le</label>
14         <div class="form_input">
15           <?php
16             $role = "";
17             foreach($this->out["user"]["roles"] as $id_role){
18               $role .= ($role ? ", " : "").$this->out["roles"][$id_role]["intitule"];
19             }
20             echo $role;
21           ?>
22         </div>
23       </li>
24       <li>
25         <label for="email">email</label>
26         <div class="form_input">
27           <input type="text" name="email" id="email" value="<?php echo $this->out["user"]["email"]; ?>" />
28         </div>
29       </li>
30       <li>
31         <label for="change_password">changer le mot de passe</label>
32         <div class="form_input">
33           <input type="checkbox" name="change_password" id="change_password" <?php echo isset($_POST["change_password"]) && $_POST["change_password"] ? "checked=\"checked\"" : ""; ?>/>
34         </div>
35       </li>
36       <li>
37         <label for="password">mot de passe</label>
38         <div class="form_input">
39           <input type="password" name="password" id="password" />
40         </div>
41       </li>
42       <li>
43         <label for="password_confirm">mot de passe (confirmer)</label>
44         <div class="form_input">
45           <input type="password" name="password_confirm" id="password_confirm" />
46         </div>
47       </li>
48       <li>
49         <div class="form_buttons">
50           <input type="submit" value="Enregistrer" />
51         </div>
52       </li>
53     </ul>
54   </fieldset>
55 </form>