diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-11 10:15:30 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-11 10:15:30 -0500 |
commit | d07be8119de3b2e10ca37d43dfecd4239dc09aba (patch) | |
tree | 13225bae46a53e1643c55b18862e394fef6ced26 | |
parent | f6bf68cae5f2907924e126a3a2f3a2f015292323 (diff) | |
download | mediagoblin-d07be8119de3b2e10ca37d43dfecd4239dc09aba.tar.lz mediagoblin-d07be8119de3b2e10ca37d43dfecd4239dc09aba.tar.xz mediagoblin-d07be8119de3b2e10ca37d43dfecd4239dc09aba.zip |
eliminates textarea handling since rows cols not required in HTML5
-rw-r--r-- | mediagoblin/templates/mediagoblin/utils/wtforms.html | 25 |
1 files changed, 1 insertions, 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 -%} <div class="form_field_description">{{ _(field.description) }}</div> {%- endif %} - {% if field.type == "TextAreaField" %} - <div class="form_field_input">{{ field(rows=8, cols=20) }}</div> - {% else %} - <div class="form_field_input">{{ field }}</div> - {% endif %} - {%- if field.errors -%} - {% for error in field.errors %} - <div class="form_field_error"> - {{ error }} - </div> - {% endfor %} - {%- endif %} - </div> -{%- endmacro %} - -{# Generically render a textarea - # ... mostly the same thing except it includes rows and cols #} -{% macro render_textarea_div(field, rows=8, cols=20) %} - <div class="form_field_box"> - <div class="form_field_label">{{ _(field.label.text) }}</div> - {% if field.description -%} - <div class="form_field_description">{{ _(field.description) }}</div> - {%- endif %} - <div class="form_field_input">{{ field(rows=rows, cols=cols) }}</div> + <div class="form_field_input">{{ field }}</div> {%- if field.errors -%} {% for error in field.errors %} <div class="form_field_error"> |