invitations pour acces aux sources (suite)
[mw_sourceml] / app / out / default / views / users / source_groupes_form.php
1 <table class="admin">
2   <tr>
3     <th>groupe</th>
4     <th>accès</th>
5     <th align="center">enlever</th>
6   </tr>
7   <?php foreach($this->out["source"]["groupes"] as $id_groupe => $groupe) : ?>
8   <tr class="hl">
9     <td>
10       <?php echo $groupe["nom"]; ?>
11     </td>
12     <td>
13       <?php echo $this->out["sources_access"][$groupe["id_groupe_status"]]["intitule"]; ?>
14     </td>
15     <td class="action">
16     <a href="<?php echo $this->url("users/sources_invitations/del_groupe", array("id" => $this->out["source"]["id"], "groupe" => $id_groupe)) ?>"
17        class="admin_link"
18        title="enlever ce groupe"><img src="<?php echo $this->out_url("icons/del.gif") ?>"
19        onclick="return confirm('enlever ce groupe ?')"/></a>
20     </td>
21   </tr>
22   <?php endforeach; ?>
23 </table>
24
25 <?php if($this->out["invitations"]["total"] > 0) : ?>
26 <h3>Vous avez invité :</h3>
27 <table class="admin">
28   <tr>
29     <th>groupe</th>
30     <th>accès</th>
31     <th align="center">action</th>
32   </tr>
33   <?php foreach($this->out["invitations"]["list"] as $id_invitation => $invitation) : ?>
34   <tr class="hl">
35     <td>
36       <?php echo $invitation["author"]["nom"]; ?>
37     </td>
38     <td>
39       <?php echo $this->out["sources_access"][$invitation["id_sources_access"]]["intitule"]; ?>
40     </td>
41     <td class="action">
42     <a href="<?php echo $this->url("users/sources_invitations/annule_invitation_groupe", array("id" => $id_invitation)) ?>"
43        class="admin_link"
44        title="annuler cette invitation"
45        onclick="return confirm('annuler cette invitation ?')"/>Annuler</a>
46     </td>
47   </tr>
48   <?php endforeach; ?>
49 </table>
50 <?php endif; ?>
51
52 <?php if($this->out["groupes"]["total"] > 0) : ?>
53
54 <h3>Inviter un groupe</h3>
55
56 <form action="<?php echo $this->url("users/sources_invitations/invite_groupe", array("id" => $this->out["source"]["id"])) ?>" method="post">
57   <fieldset>
58     <ul class="form">
59       <li>
60         <label for="id_groupe">Inviter</label>
61         <div class="form_input">
62           <select name="id_groupe" id="id_groupe">
63             <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : ?>
64             <option value="<?php echo $id_groupe ?>"><?php echo $groupe["nom"] ?></option>
65             <?php endforeach; ?>
66           </select>
67         </div>
68       </li>
69       <li>
70         <label for="source_access_<?php echo $id_groupe; ?>">A particper à</label>
71         <div class="form_input">
72           <strong><?php echo $this->out["source"]["titre"]; ?></strong>
73         </div>
74       </li>
75       <li>
76         <label for="source_access_<?php echo $id_groupe; ?>">En tant que</label>
77         <div class="form_input">
78           <select name="id_sources_access" id="id_sources_access">
79           <?php foreach($this->out["sources_access"] as $id_sources_access => $sources_access) : ?>
80             <option value="<?php echo $id_sources_access ?>"><?php echo $sources_access["intitule"] ?></option>
81           <?php endforeach; ?>
82           </select>
83         </div>
84       </li>  
85       <li class="buttons">
86         <div class="form_buttons">
87           <input type="submit" value="Inviter" />
88         </div>
89       </li>  
90     </ul>
91   </fieldset>
92 </form>
93
94 <?php endif; ?>