more HTML validation fixes
authorPascal Corpet <pascal.corpet@m4x.org>
Sun, 30 May 2010 08:24:32 +0000 (10:24 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Sun, 30 May 2010 12:09:16 +0000 (14:09 +0200)
templates/admin/ipwatcher.tpl
templates/admin/wiki.tpl
templates/emails/broken_addr.tpl
templates/emails/lost.tpl
templates/googleapps/admin.tpl
templates/include/field.promo.tpl
templates/payment/index.tpl
templates/profile/referent.tpl
templates/reminder/base.tpl
templates/survey/edit_root.tpl
templates/survey/show_radiotable.tpl

index d091ef8..da614ba 100644 (file)
@@ -42,7 +42,7 @@
   <tr class="{cycle values="pair,impair"}">
     <td>
       <strong>{$ip.ip}/{$ip.mask}</strong><br />
-      <small>{$ip.host}</small><br />
+      {if $ip.host}<small>{$ip.host}</small><br />{/if}
       Ajoutée le {$ip.detection|date_format}
     </td>
     <td>
index 09fb763..abe4194 100644 (file)
@@ -68,7 +68,7 @@
 {/literal}
 
 <p class="center">
-   <a href="Site/AllRecentChanges?action=rss&user={$smarty.session.hruid}&hash={$smarty.session.token}" style="display:block;float:right" title="Changements">{icon name=feed title='fil rss'}</a>
+   <a href="Site/AllRecentChanges?action=rss&amp;user={$smarty.session.hruid}&amp;hash={$smarty.session.token}" style="display:block;float:right" title="Changements">{icon name=feed title='fil rss'}</a>
    {icon name=magnifier} <a href="Site/AllRecentChanges">Voir les changements récents</a>
 </p>
 
index 74191f3..5de81b6 100644 (file)
@@ -24,6 +24,7 @@
 
 <form method="post" action="{$platal->ns}admin/emails/broken" enctype="multipart/form-data">
   {xsrf_token_field}
+  <div>
   <textarea name="list" cols="60" rows="30">{if $valid_emails || $invalid_emails}{foreach from=$valid_emails item=email}{$email}
 {/foreach}
 
@@ -33,6 +34,7 @@
          value="Trie et supprime les doublons de la liste d'adresses" /><br />
   <input type="submit" name="process_broken"
          value="Traite les adresses en panne et met à jour la BDD" />
+  </div>
 </form>
 
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
index d458e9f..cdf4d1e 100644 (file)
@@ -33,5 +33,6 @@
       <td>
         <a href="profile/{$looser.hruid}" class="popup2">{$looser.hruid}</a>
       </td>
+    </tr>
   {/iterate}
 </table>
index 7d22aac..b221242 100644 (file)
 <h1>Statistiques d'utilisation de Google Apps</h1>
 
 <div style="text-align: center">
-  <img src="images/googleapps/activity-monthly.png" alt="Activité Google Apps - 1 mois" width="500 height="250" />
+  <img src="images/googleapps/activity-monthly.png" alt="Activité Google Apps - 1 mois" width="500" height="250" />
   <br /><em>Utilisation des comptes Google Apps sur les 31 derniers jours</em>.
 </div>
 
 <div style="text-align: center">
-  <img src="images/googleapps/activity-yearly.png" alt="Activité Google Apps - 1 an" width="500 height="250" />
+  <img src="images/googleapps/activity-yearly.png" alt="Activité Google Apps - 1 an" width="500" height="250" />
   <br /><em>Utilisation disque des comptes sur les 12 derniers mois</em>.
 </div>
 
 <div style="text-align: center">
-  <img src="images/googleapps/usage-monthly.png" alt="Utilisation disque - 1 mois" width="500 height="250" />
+  <img src="images/googleapps/usage-monthly.png" alt="Utilisation disque - 1 mois" width="500" height="250" />
   <br /><em>Utilisation des comptes Google Apps sur les 31 derniers jours</em>.
 </div>
 
 <div style="text-align: center">
-  <img src="images/googleapps/usage-yearly.png" alt="Utilisation disque - 1 an" width="500 height="250" />
+  <img src="images/googleapps/usage-yearly.png" alt="Utilisation disque - 1 an" width="500" height="250" />
   <br /><em>Utilisation disque des comptes sur les 12 derniers mois</em>.
 </div>
 
index dcc2c8c..ac5d69d 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-<script type="text/javascript">//<![CDATA[
+{if $full}
+<table class="bicol">
+{/if}
+  <tr id="{$prefix}promo_min_tr" class="impair">
+    <td class="titre">Promotion la plus ancienne</td>
+    <td>
+    <script type="text/javascript">//<![CDATA[
     var prefix = "{$prefix}";
     {literal}
     function updateRange()
       min = document.getElementById(prefix + 'promo_min').value;
       max = document.getElementById(prefix + 'promo_max').value;
       if (isNaN(min) || (min != 0 && (min < 1900 || min > 2020))) {
-        range.innerHTML = '<span class="erreur">La promotion minimum n\'est pas valide.</span>';
+        range.innerHTML = '<span class="erreur">La promotion minimum n\'est pas valide.<\/span>';
         return false;
       } else if (isNaN(max) || (max != 0 && (max < 1900  || max > 2020))) {
-        range.innerHTML = '<span class="erreur">La promotion maximum n\'est pas valide.</span>';
+        range.innerHTML = '<span class="erreur">La promotion maximum n\'est pas valide.<\/span>';
         return false;
       } else if (max != 0 && min != 0 && max < min) {
-        range.innerHTML = '<span class="erreur">L\'intervalle de promotion est inversé.</span>';
+        range.innerHTML = '<span class="erreur">L\'intervalle de promotion est inversé.<\/span>';
         return false;
       } else if (max == 0 && min == 0) {
         range.innerHTML = 'L\'annonce est destinée à toutes les promotions.';
     } 
     {/literal}
 //]]></script>
-
-{if $full}
-<table class="bicol">
-{/if}
-  <tr id="{$prefix}promo_min_tr" class="impair">
-    <td class="titre">Promotion la plus ancienne</td>
-    <td>
       <input type="text" name="{$min_field_name|default:"promo_min"}" id="{$prefix}promo_min"
              size="4" maxlength="4" value="{$promo_min|default:0}"
              onkeyup="return updateRange();" onchange="return updateRange();" /> incluse
index c9dc2ef..9f0bad6 100644 (file)
@@ -102,7 +102,6 @@ function payment_submit(form)
 </script>
 
 <form method="post" action="{$platal->pl_self()}">
-  </p>
   <table class="bicol">
     <tr>
       <th colspan="2">Effectuer un télépaiement</th>
index a44c87a..a299529 100644 (file)
@@ -27,7 +27,7 @@
 {include wiki=Docs.Emploi}
 {/if}
 
-<a name="mentors"></a>
+<a id="mentors"></a>
 
 <p>
 Actuellement, {$mentors_number} mentors et référents se sont déclarés sur {#globals.core.sitename#}.
index efbf648..a7a5277 100644 (file)
         {$reminder->text()}
       </div>
       <div class="center">
-        <a href="reminde/yes" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/yes'); return false" style="text-decoration: none">
+        <a href="reminder/yes" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/yes'); return false" style="text-decoration: none">
           {icon name=add} M'inscrire
         </a> -
-        <a href="reminde/no" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
+        <a href="reminder/no" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/no'); return false" style="text-decoration: none">
           {icon name=delete} Ne pas m'inscrire
         </a> -
         <a href="reminder/later" onclick="Ajax.update_html('reminder', '{$reminder->baseurl()}/dismiss'); return false" style="text-decoration: none">
index fe6b8a3..b57f4ae 100644 (file)
@@ -40,8 +40,6 @@
       <td class="titre">Date de fin</td>
       <td>
         {valid_date name="survey_question[end]" value=$survey_current.end to=90}
-      </td>
-    </tr>
     <script type="text/javascript">//<![CDATA[
       {literal}
       $(document).ready(function() {
@@ -59,6 +57,8 @@
       });
       {/literal}
     //]]></script>
+      </td>
+    </tr>
     <tr>
       <td class="titre">Type de sondage</td>
       <td>
index 938d47c..8b6d648 100644 (file)
@@ -45,6 +45,7 @@
     </td>
     {/foreach}
   {/if}
+  </tr>
 {/foreach}
 </table>