From d07be8119de3b2e10ca37d43dfecd4239dc09aba Mon Sep 17 00:00:00 2001 From: Caleb Forbes Davis V Date: Thu, 11 Aug 2011 10:15:30 -0500 Subject: [PATCH] eliminates textarea handling since rows cols not required in HTML5 --- .../templates/mediagoblin/utils/wtforms.html | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html index 3b6cff15..2639522a 100644 --- a/mediagoblin/templates/mediagoblin/utils/wtforms.html +++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html @@ -23,30 +23,7 @@ {% if field.description -%}
{{ _(field.description) }}
{%- endif %} - {% if field.type == "TextAreaField" %} -
{{ field(rows=8, cols=20) }}
- {% else %} -
{{ field }}
- {% endif %} - {%- if field.errors -%} - {% for error in field.errors %} -
- {{ error }} -
- {% endfor %} - {%- endif %} - -{%- endmacro %} - -{# Generically render a textarea - # ... mostly the same thing except it includes rows and cols #} -{% macro render_textarea_div(field, rows=8, cols=20) %} -
-
{{ _(field.label.text) }}
- {% if field.description -%} -
{{ _(field.description) }}
- {%- endif %} -
{{ field(rows=rows, cols=cols) }}
+
{{ field }}
{%- if field.errors -%} {% for error in field.errors %}
-- 2.25.1