Merge branch 'xorg/maint' into xorg/master
[platal.git] / templates / lists / create.tpl
index 144d34b..d50c603 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -62,7 +62,8 @@ liste :
     <tr class='promo'>
       <td class='titre'>Promotion&nbsp;:</td>
       <td><input type='text' name='promo' size='4' maxlength='4'
-        {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} /></td>
+        {assign var="profile" value=$smarty.session.user->profile()}
+        {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$profile->yearpromo()}'{/if} /></td>
       <td class='smaller' colspan='3'>Par exemple&nbsp;: 2004</td>
     </tr>
     <tr class='groupex'>
@@ -85,7 +86,7 @@ liste&nbsp;:
         <input type='text' name='desc' size='50' value='{$smarty.post.desc}' />
       </td>
     </tr>
-    <tr>
+    <tr style="white-space: nowrap">
       <td class='titre'>Propriétés&nbsp;:</td>
       <td>visibilité&nbsp;:</td>
       <td><label><input type='radio' name='advertise' value='0'