Browse Source

Fix for W3C

tr4ck3ur 2 years ago
parent
commit
816257d1ef

+ 1 - 1
jm2l/templates/Public/Programme.mako

@@ -99,7 +99,7 @@ if Counter==0:
99 99
 ##        <div id="collapseEvent${num}" class="accordion-body collapse">
100 100
 ##            <div class="accordion-inner">
101 101
 
102
-    <table width="100%" class="table table-striped table-bordered table-hover">
102
+    <table class="table table-striped table-bordered table-hover">
103 103
       <thead>
104 104
         <tr>
105 105
             <th style="width:7em;text-align:center;">Date</th>

+ 2 - 2
jm2l/templates/edit_event.mako

@@ -80,9 +80,9 @@ DicForm = {
80 80
 
81 81
     ${helpers.DisplayForm(form, DicForm)}
82 82
     <br>
83
-    <center>
83
+    <div class="center">
84 84
         <button class="btn btn-large btn-primary" type="submit">Proposer</button>
85
-    </center>
85
+    </div>
86 86
     </form>
87 87
     
88 88
 </fieldset>

+ 2 - 2
jm2l/templates/edit_tiers.mako

@@ -201,7 +201,7 @@ DicForm = {
201 201
 % endif
202 202
 
203 203
 <br>
204
-<center>
204
+  <div class="center">
205 205
     <button type="submit" class="btn btn-large btn-primary" />
206 206
 % if 'uid' in form._fields:
207 207
         <i class="icon-ok icon-white"></i> Mettre &agrave; jour
@@ -209,7 +209,7 @@ DicForm = {
209 209
         <i class="icon-ok icon-white"></i> Proposer
210 210
     </button>
211 211
 % endif
212
-</center>
212
+  </div>
213 213
 
214 214
 </form>
215 215
     % if 'uid' in form._fields:

+ 14 - 14
jm2l/templates/helpers.mako

@@ -207,7 +207,7 @@ TabJs = {'select':[], 'desc':[]}
207 207
     <li class="span2">
208 208
         <div class="media">
209 209
             <a class="pull-left" href="${filelink}">
210
-                <img class="media-object" src="${thumb}" />
210
+                <img class="media-object" src="${thumb}" alt="Fichier media" />
211 211
             </a>
212 212
         </div>
213 213
     </li>
@@ -291,7 +291,7 @@ TabJs = {'select':[], 'desc':[]}
291 291
         <td style="width: 80px;">
292 292
             <span class="preview">
293 293
                 {% if (file.thumbnailUrl) { %}
294
-                    <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
294
+                    <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}" alt="{%=file.name%}"></a>
295 295
                 {% } %}
296 296
             </span>
297 297
         </td>
@@ -345,7 +345,7 @@ TabJs = {'select':[], 'desc':[]}
345 345
 % if len(ListEvent)==0:
346 346
     <tr>
347 347
         <td style="text-align:center;" colspan="2">
348
-            % if NotFoundTitle:
348
+            % if NotFoundTitle: 
349 349
                 <i>${NotFoundTitle}</i>
350 350
             % else:
351 351
                 <i>Désolé, Il n'y a rien dans l'historique.</i>
@@ -415,9 +415,9 @@ TabJs = {'select':[], 'desc':[]}
415 415
         <div class="media">
416 416
             <a class="pull-left" href="/entity/${Entity.entity_type}/${tiers.slug}">
417 417
                 % if tiers.ThumbLinks:
418
-                    <img class="media-object" src="${tiers.ThumbLinks.pop()}" />
418
+                    <img class="media-object" src="${tiers.ThumbLinks.pop()}" alt="${tiers.slug}" />
419 419
                 % else:
420
-                    <img class="media-object" src="/img/no-image-thumb.jpg"  />
420
+                    <img class="media-object" src="/img/no-image-thumb.jpg" alt="no-image" />
421 421
                 % endif
422 422
             </a>
423 423
             <div class="media-body">
@@ -539,10 +539,8 @@ TabJs = {'select':[], 'desc':[]}
539 539
             % endfor
540 540
         % else:
541 541
             <div class="active item" id="UserPic0">
542
-                <div style="margin:auto;width:170px;">
543
-                    <center>
542
+                <div class="center" style="margin:auto;width:170px;">
544 543
                         <img src="/img/no-image.jpg" class="img-polaroid" alt="Photo ${SallePhy.name}" style="max-height:130px;"  />
545
-                    <center>
546 544
                 </div>
547 545
             </div>
548 546
         % endif
@@ -655,13 +653,14 @@ TabJs = {'select':[], 'desc':[]}
655 653
           <th colspan="3">Sponsors ${Year}</th>
656 654
         </tr>
657 655
       </thead>
658
-        <tr>
659 656
         <% num = -1 %>
660 657
         % for entity in request.sponsors(Year):
661 658
             % for thumb in entity.ThumbLinks:
662 659
                 <% num+=1 %>
663
-                % if (num%3==0):
664
-                    </tr><tr>
660
+                % if (num==0):
661
+        <tr>
662
+                % elif (num%3==0):
663
+        </tr><tr>
665 664
                 % endif
666 665
                 <td>
667 666
                     <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">
@@ -679,13 +678,14 @@ TabJs = {'select':[], 'desc':[]}
679 678
           <th colspan="3">Exposants ${Year}</th>
680 679
         </tr>
681 680
       </thead>
682
-        <tr>
683 681
         <% num = -1 %>
684 682
         % for entity in request.exposants(Year):
685 683
             % for thumb in entity.ThumbLinks:
686 684
                 <% num+=1 %>
687
-                % if (num%3==0):
688
-                    </tr><tr>
685
+                % if (num==0):
686
+        <tr>
687
+                % elif (num%3==0):
688
+        </tr><tr>
689 689
                 % endif
690 690
                 <td>
691 691
                     <a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">