Revert "Initial work on the rewriting of the profile/edit page"
[platal.git] / templates / profile / nomusage.tpl
index c6afccd..92960d2 100644 (file)
@@ -68,7 +68,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
-<a href="emails/alias">l'alias @melix.net</a>.
+<a href="emails/alias">l'alias @{#globals.mail.alias_dom#}</a>.
 </p>
 
   <p>
@@ -82,8 +82,9 @@ utiliser une adresse personnalisée, il faut se tourner vers
 
 {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;
     }
   }