changeset 1330:cae27a401354

fix issue #165 +modify fails html5 validation
author Roger Haase <crosseyedpenguin@yahoo.com>
date Sun, 15 Apr 2012 12:57:55 -0700
parents 6ad1a77656ca
children 3c55f01432a5
files MoinMoin/templates/modify_applet.html MoinMoin/templates/modify_text.html
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/modify_applet.html	Sun Apr 15 12:48:17 2012 -0700
+++ b/MoinMoin/templates/modify_applet.html	Sun Apr 15 12:57:55 2012 -0700
@@ -6,7 +6,7 @@
 {% block content %}
 <h1>{{ title }}</h1>
 <div class="moin-form">
-    {{ gen.form.open(form, method='post', action='', enctype='multipart/form-data') }}
+    {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
     {{ forms.render_errors(form) }}
     {% block extra_form %}{% endblock %}
     {% block data_editor %}{% endblock %}
--- a/MoinMoin/templates/modify_text.html	Sun Apr 15 12:48:17 2012 -0700
+++ b/MoinMoin/templates/modify_text.html	Sun Apr 15 12:57:55 2012 -0700
@@ -7,13 +7,17 @@
             {% set fullname = fullname|json_dumps %}
             <button class="link-action" onclick='linkSubitem({{ shortname }}, {{ fullname }})'
                 title="{{ _('Link to Subitem') }}">{{ _('Link') }}</button>
-            <button class="transclude-action" 
+            <button class="transclude-action"
                 onclick='transcludeSubitem({{ shortname }}, {{ fullname }})'
                 title="{{ _('Transclude Subitem') }}">{{ _('Transclude') }}</button>
         {% endcall %}
 {% endblock %}
 
 {% block data_editor %}
-{{ gen.textarea(form['data_text'], lang=lang, dir=direction, rows=rows_data, cols=cols) }}
+{% if direction %}
+    {{ gen.textarea(form['data_text'], lang=lang, dir=direction, rows=rows_data, cols=cols) }}
+{% else %}
+    {{ gen.textarea(form['data_text'], lang=lang, rows=rows_data, cols=cols) }}
+{% endif %}
 <br />
 {% endblock %}