changeset 2708:5092edd82058

bug fix for non css browsers like w3m: for input fields set size of textarea and text to cols="80"
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 22 Aug 2007 10:41:04 +0200
parents 2d93b9a28ea3
children d7cad3d048b9 24bc1ad80e80
files MoinMoin/PageEditor.py MoinMoin/PageGraphicalEditor.py MoinMoin/action/AttachFile.py MoinMoin/action/CopyPage.py MoinMoin/action/DeletePage.py MoinMoin/action/PackagePages.py MoinMoin/action/RenamePage.py
diffstat 7 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/PageEditor.py	Wed Aug 22 10:41:04 2007 +0200
@@ -405,7 +405,7 @@
 
         request.write(
             u'''\
-<textarea id="editor-textarea" name="savetext" lang="%(lang)s" dir="%(dir)s" rows="%(rows)d"
+<textarea id="editor-textarea" name="savetext" lang="%(lang)s" dir="%(dir)s" rows="%(rows)d" cols="80"
           onChange="flgChange = true;" onKeyPress="flgChange = true;">\
 %(text)s\
 </textarea>''' % {
@@ -417,7 +417,7 @@
 
         request.write("<p>")
         request.write(_("Comment:"),
-            ' <input id="editor-comment" type="text" name="comment" value="%s" maxlength="200"'
+            ' <input id="editor-comment" type="text" name="comment" value="%s" size="80" maxlength="200"'
             ' onChange="flgChange = true;" onKeyPress="flgChange = true;">' % (
                 wikiutil.escape(kw.get('comment', ''), 1), ))
         request.write("</p>")
--- a/MoinMoin/PageGraphicalEditor.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/PageGraphicalEditor.py	Wed Aug 22 10:41:04 2007 +0200
@@ -339,7 +339,7 @@
 """)
         request.write("<p>")
         request.write(_("Comment:"),
-            ' <input id="editor-comment" type="text" name="comment" value="%s" maxlength="200">' % (
+            ' <input id="editor-comment" type="text" name="comment" value="%s" size="80" maxlength="200">' % (
                 wikiutil.escape(kw.get('comment', ''), 1), ))
         request.write("</p>")
 
--- a/MoinMoin/action/AttachFile.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/action/AttachFile.py	Wed Aug 22 10:41:04 2007 +0200
@@ -824,13 +824,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="newpagename" value="%(pagename)s">
+            <input type="text" name="newpagename" value="%(pagename)s" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(attachment_label)s</label></td>
         <td class="content">
-            <input type="text" name="newattachmentname" value="%(attachment_name)s">
+            <input type="text" name="newattachmentname" value="%(attachment_name)s" size="80">
         </td>
     </tr>
     <tr>
--- a/MoinMoin/action/CopyPage.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/action/CopyPage.py	Wed Aug 22 10:41:04 2007 +0200
@@ -116,13 +116,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="newpagename" value="%(pagename)s">
+            <input type="text" name="newpagename" value="%(pagename)s" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>
@@ -146,13 +146,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="newpagename" value="%(pagename)s">
+            <input type="text" name="newpagename" value="%(pagename)s" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>
--- a/MoinMoin/action/DeletePage.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/action/DeletePage.py	Wed Aug 22 10:41:04 2007 +0200
@@ -101,7 +101,7 @@
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>
@@ -127,7 +127,7 @@
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>
--- a/MoinMoin/action/PackagePages.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/action/PackagePages.py	Wed Aug 22 10:41:04 2007 +0200
@@ -153,13 +153,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="packagename" value="package.zip">
+            <input type="text" name="packagename" value="package.zip" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(list_label)s</label></td>
         <td class="content">
-            <input type="text" name="pagelist" maxlength="200" value=%(pagename)s>
+            <input type="text" name="pagelist" size="80" maxlength="200" value=%(pagename)s>
         </td>
     </tr>
     <tr>
--- a/MoinMoin/action/RenamePage.py	Tue Aug 21 21:18:23 2007 +0200
+++ b/MoinMoin/action/RenamePage.py	Wed Aug 22 10:41:04 2007 +0200
@@ -115,13 +115,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="newpagename" value="%(pagename)s">
+            <input type="text" name="newpagename" value="%(pagename)s" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>
@@ -145,13 +145,13 @@
     <tr>
         <td class="label"><label>%(newname_label)s</label></td>
         <td class="content">
-            <input type="text" name="newpagename" value="%(pagename)s">
+            <input type="text" name="newpagename" value="%(pagename)s" size="80">
         </td>
     </tr>
     <tr>
         <td class="label"><label>%(comment_label)s</label></td>
         <td class="content">
-            <input type="text" name="comment" maxlength="200">
+            <input type="text" name="comment" size="80" maxlength="200">
         </td>
     </tr>
     <tr>