projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git]
/
templates
/
lists
/
create.tpl
diff --git
a/templates/lists/create.tpl
b/templates/lists/create.tpl
index
144d34b
..
2eae636
100644
(file)
--- a/
templates/lists/create.tpl
+++ b/
templates/lists/create.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-201
0
Polytechnique.org *}
+{* Copyright (C) 2003-201
1
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* 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 :</td>
<td><input type='text' name='promo' size='4' maxlength='4'
<tr class='promo'>
<td class='titre'>Promotion :</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 : 2004</td>
</tr>
<tr class='groupex'>
<td class='smaller' colspan='3'>Par exemple : 2004</td>
</tr>
<tr class='groupex'>