From 353f927e9f4343e56503b3144e25095dcbbe7cfa Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 24 Jun 2011 23:49:37 -0500 Subject: [PATCH] Adjust the width of the fields on the form submission Did several things, including: - Call the individual form field rendering macros instead of the auto whole-form renderer so we get better control over the TextArea - Use the textarea specific form field rendering macro - Adds textarea styling to the css - Sets the input, textarea styling to be 460 px wide (the width of the form section, not including padding) --- mediagoblin/static/css/base.css | 4 ++-- mediagoblin/templates/mediagoblin/submit/start.html | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 31f14680..36c8fca8 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -146,8 +146,8 @@ a.mediagoblin_logo:hover { font-size:28px; } -.form_field_input input { - width:300px; +.form_field_input input, .form_field_input textarea { + width:460px; font-size:18px; } diff --git a/mediagoblin/templates/mediagoblin/submit/start.html b/mediagoblin/templates/mediagoblin/submit/start.html index 00577fa1..f34bf2af 100644 --- a/mediagoblin/templates/mediagoblin/submit/start.html +++ b/mediagoblin/templates/mediagoblin/submit/start.html @@ -25,7 +25,9 @@ method="POST" enctype="multipart/form-data">

Submit yer media

- {{ wtforms_util.render_divs(submit_form) }} + {{ wtforms_util.render_field_div(submit_form.title) }} + {{ wtforms_util.render_textarea_div(submit_form.description) }} + {{ wtforms_util.render_field_div(submit_form.file) }}
-- 2.25.1