Commits

Roger Haase committed cae27a4

fix issue #165 +modify fails html5 validation

Comments (0)

Files changed (2)

MoinMoin/templates/modify_applet.html

 {% 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 %}

MoinMoin/templates/modify_text.html

             {% 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 %}