Fix admin/logger when the user has no entry in the aliases table.
[platal.git] / templates / xnetgrp / edit.tpl
index 0363add..ffd10e6 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
       </td>
       <td>
         <select name="cat">
-          <option value="groupesx" {if $asso->cat eq GroupesX}selected="selected"{/if}>Groupes X</option>
-          <option value="binets" {if $asso->cat eq Binets}selected="selected"{/if}>Binets</option>
-          <option value="promotions" {if $asso->cat eq Promotions}selected="selected"{/if}>Promotions</option>
-          <option value="institutions" {if $asso->cat eq Institutions}selected="selected"{/if}>Institutions</option>
+          <option value="groupesx" {if $asso->cat eq 'GroupesX'}selected="selected"{/if}>Groupes X</option>
+          <option value="binets" {if $asso->cat eq 'Binets'}selected="selected"{/if}>Binets</option>
+          <option value="promotions" {if $asso->cat eq 'Promotions'}selected="selected"{/if}>Promotions</option>
+          <option value="institutions" {if $asso->cat eq 'Institutions'}selected="selected"{/if}>Institutions</option>
         </select>
       </td>
     </tr>
@@ -69,7 +69,7 @@
       </td>
       <td>
         <select name="dom">
-          <option value=""></option>
+          <option value="">&nbsp;</option>
           {iterate from=$dom item=d}
           <option value="{$d.id}" {if $d.id eq $asso->dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
           {/iterate}
@@ -78,7 +78,7 @@
     </tr>
     <tr>
       <td class="titre center" colspan="2">
-        <label><input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
+        <label><input type="checkbox" value="1" name="ax" {if $asso->ax}checked="checked"{/if} />
         groupe agréé par l'AX</label>
       </td>
     </tr>