projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improves education edition display.
[platal.git]
/
templates
/
profile
/
nomusage.tpl
diff --git
a/templates/profile/nomusage.tpl
b/templates/profile/nomusage.tpl
index
c6afccd
..
e8bf0cb
100644
(file)
--- a/
templates/profile/nomusage.tpl
+++ b/
templates/profile/nomusage.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
7
Polytechnique.org *}
+{* Copyright (C) 2003-200
8
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 *}
@@
-23,15
+23,8
@@
<h1>Nom d'usage</h1>
{if $same}
<h1>Nom d'usage</h1>
{if $same}
- <p class="erreur">
- Si ton nom d'usage est identique à ton nom à l'X, il n'est pas
- nécessaire de le saisir ici!
- </p>
- <p>
- Pour supprimer ton nom d'usage, fais une demande avec un nom vide et en précisant la raison.
- </p>
<p>
<p>
- [<a href='profile/usage'>Refaire une demande</a>] - [<a href='profile/edit'>Retour au profil</a>]
+ Tu peux soit <a href='profile/usage'>refaire une demande de nom d'usage</a>, soit <a href='profile/edit'>retourner à l'édition de ton profil</a>.
</p>
{else}
{if $myusage}
</p>
{else}
{if $myusage}
@@
-53,8
+46,8
@@
{/if}
<p>
{/if}
<p>
- Tu recevras un mail dès que les changements demandés auront été effectués.
- Encore merci de nous faire confiance pour tes e
-
mails !
+ Tu recevras un
e
mail dès que les changements demandés auront été effectués.
+ Encore merci de nous faire confiance pour tes emails !
</p>
{else}
</p>
{else}
@@
-68,7
+61,7
@@
exceptionnellement sur changement de l'état civil, ...).
<p>
Les surnoms sont <strong>systématiquement refusés</strong>. Pour
utiliser une adresse personnalisée, il faut se tourner vers
<p>
Les surnoms sont <strong>systématiquement refusés</strong>. Pour
utiliser une adresse personnalisée, il faut se tourner vers
-<a href="emails/alias">l'alias @
melix.net
</a>.
+<a href="emails/alias">l'alias @
{#globals.mail.alias_dom#}
</a>.
</p>
<p>
</p>
<p>
@@
-82,8
+75,9
@@
utiliser une adresse personnalisée, il faut se tourner vers
{literal}
<form action="profile/usage" method="post" onsubmit="
{literal}
<form action="profile/usage" method="post" onsubmit="
- for (var i=this.reason.length-1; i--; i>=0) {
- if (this.reason[i].checked) {
+ for (var i=this.reason.length-1; i>=0; i--) {
+ if (this.reason[i].checked &&
+ (this.reason[i].value != 'other' || this.other_reason.value != '')) {
return true;
}
}
return true;
}
}
@@
-91,6
+85,7
@@
utiliser une adresse personnalisée, il faut se tourner vers
return false;
">
{/literal}
return false;
">
{/literal}
+ {xsrf_token_field}
<table class="bicol" cellpadding="4" summary="Nom d'usage">
<tr>
<th>Nom d'usage</th>
<table class="bicol" cellpadding="4" summary="Nom d'usage">
<tr>
<th>Nom d'usage</th>
@@
-113,7
+108,7
@@
utiliser une adresse personnalisée, il faut se tourner vers
<input type="radio" name="reason" value="divorce" id="reason_div" onclick="this.form.other_reason.value=''" /><label for="reason_div">Divorce</label><br />
{/if}
<input type="radio" name="reason" value="raccourci" id="reason_rac" onclick="this.form.other_reason.value=''" /><label for="reason_rac">Nom d'état civil simplifié, le nom officiel étant trop long</label><br />
<input type="radio" name="reason" value="divorce" id="reason_div" onclick="this.form.other_reason.value=''" /><label for="reason_div">Divorce</label><br />
{/if}
<input type="radio" name="reason" value="raccourci" id="reason_rac" onclick="this.form.other_reason.value=''" /><label for="reason_rac">Nom d'état civil simplifié, le nom officiel étant trop long</label><br />
- <input type="radio" name="reason" value="other" id="reason_oth" /><label for="reason_oth">Autre
:</label><br />
+ <input type="radio" name="reason" value="other" id="reason_oth" /><label for="reason_oth">Autre
:</label><br />
<input type="text" name="other_reason" onfocus="document.getElementById('reason_oth').checked='checked'" size="60" />
</td>
</tr>
<input type="text" name="other_reason" onfocus="document.getElementById('reason_oth').checked='checked'" size="60" />
</td>
</tr>