projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allows admins to modify unregisterd users' ref birthdate (Closes #1554).
[platal.git]
/
templates
/
profile
/
general.tpl
diff --git
a/templates/profile/general.tpl
b/templates/profile/general.tpl
index
22fb653
..
8a04c66
100644
(file)
--- a/
templates/profile/general.tpl
+++ b/
templates/profile/general.tpl
@@
-152,7
+152,7
@@
<span class="titre">Date de naissance de référence</span>
</td>
<td>
<span class="titre">Date de naissance de référence</span>
</td>
<td>
- {if
$birthdate_ref eq 0
}
+ {if
hasPerm('admin') && !$is_registered
}
<input type="text" {if $errors.birthdate_ref}class="error"{/if} name="birthdate_ref" value="{$birthdate_ref}" />
{else}
{$birthdate_ref}
<input type="text" {if $errors.birthdate_ref}class="error"{/if} name="birthdate_ref" value="{$birthdate_ref}" />
{else}
{$birthdate_ref}
@@
-209,7
+209,7
@@
</tr>
<tr class="{$class}">
<td><span class="titre">Promotion :</span></td>
</tr>
<tr class="{$class}">
<td><span class="titre">Promotion :</span></td>
- <td>{
$main_edu.promo_year
}</td>
+ <td>{
if t($main_edu.promo_year)}{$main_edu.promo_year}{/if
}</td>
</tr>
<tr class="{$class}">
<td><span class="titre">Domaine de formation :</span></td>
</tr>
<tr class="{$class}">
<td><span class="titre">Domaine de formation :</span></td>