Commits

ezio.melotti  committed 182a537

Fix a few validation errors.

  • Participants
  • Parent commits c5288b8

Comments (0)

Files changed (3)

File extensions/openid_login.py

     for prov, icon, url in providers.values():
         res.append({'href':request.env['PATH_INFO']+'?@action=openid_login&provider='+prov,
                     'src':icon,
-                    'title':prov})
+                    'title':prov,
+                    'alt':prov})
     return res
 
 def init(instance):

File html/issue.item.html

   replace="context/id" i18n:name="id" /> Editing</span>
 </tal:block>
 
-<td class="content" metal:fill-slot="content">
+<tal:block metal:fill-slot="content">
 
 <p tal:condition="python:not (context.is_view_ok()
  or request.user.hasRole('Anonymous'))" i18n:translate="">
 
 <div tal:condition="context/is_view_ok">
 
-<form method="POST" name="itemSynopsis"
+<form method="post" name="itemSynopsis"
       onSubmit="return submit_once()" enctype="multipart/form-data"
       tal:attributes="action context/designator">
 
 </tr>
 <tr tal:condition="context/is_edit_ok">
  <th><tal:block i18n:translate="">File Description</tal:block>:</th>
- <td colspan="3"><input type="edit" name="file-1@description" size="50"></td>
+ <td colspan="3"><input type="text" name="file-1@description" size="50"></td>
 </tr>
 
 <tr tal:condition="context/is_edit_ok">
        i18n:name="author" /> (<tal:x replace="msg/author"/>)
        <tal:if condition="msg/author/contrib_form"><span title="Contributor form received">*</span></tal:if>
        <tal:if condition="msg/author/iscommitter">
-         <span title="Python committer"><img src="@@file/committer.png"/></span>
+         <img src="@@file/committer.png" title="Python committer" alt="(Python committer)"/>
        </tal:if>
    </th>
    <th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%Y-%m-%d %H:%M')"
 
 </div>
 
-</td>
+</tal:block>
 
 </tal:block>

File html/page.html

             <li>
                 <tal:span i18n:translate="">Login</tal:span>&nbsp;(OpenID&nbsp;possible)<br />
                 <a style="display:inline;width:0;margin:0" tal:repeat="prov python:utils.openid_links(request)" tal:attributes="href prov/href">
-                  <img hspace="0" vspace="0" width="16" height="16" tal:attributes="src prov/src;title prov/title"/></a>
+                  <img hspace="0" vspace="0" width="16" height="16" tal:attributes="src prov/src;title prov/title;alt prov/alt"/></a>
                 <input size="10" name="openid_identifier" style="background:url(http://wiki.openid.net/f/openid-16x16.gif)
                   center left no-repeat;padding-left:16px"/><br/>
                 <input size="10" type="password" name="__login_password"/><br/>