diff options
author | Jef van Schendel <jefvanschendel@gmail.com> | 2011-05-28 21:10:54 +0200 |
---|---|---|
committer | Jef van Schendel <jefvanschendel@gmail.com> | 2011-05-28 21:10:54 +0200 |
commit | b0ff25c82cdf424a54b388bb084cfd6849683662 (patch) | |
tree | e2764a306e06dae64419fe4ba283169bc425a6f2 | |
parent | 716a0ac3f156459e9c6f6bcaab4769d2c64b4171 (diff) | |
download | mediagoblin-b0ff25c82cdf424a54b388bb084cfd6849683662.tar.lz mediagoblin-b0ff25c82cdf424a54b388bb084cfd6849683662.tar.xz mediagoblin-b0ff25c82cdf424a54b388bb084cfd6849683662.zip |
Changed login forms to use divs instead of tables
-rw-r--r-- | mediagoblin/templates/mediagoblin/auth/login.html | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html index 02bfb91f..27a3e52a 100644 --- a/mediagoblin/templates/mediagoblin/auth/login.html +++ b/mediagoblin/templates/mediagoblin/auth/login.html @@ -20,25 +20,21 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_content %} - <h1>Login:</h1> <form action="{{ request.urlgen('mediagoblin.auth.login') }}" method="POST" enctype="multipart/form-data"> - - {% if login_failed %} - <p><i>Login failed!</i></p> - {% endif %} - - <table> - {{ wtforms_util.render_table(login_form) }} - <tr> - <td></td> - <td><input type="submit" value="submit" class="button"/></td> - </tr> - </table> - - {% if next %} - <input type="hidden" name="next" value="{{ next }}" class="button" /> - {% endif %} + <div class="login_box form_box"> + <h1>Log in</h1> + {% if login_failed %} + <div class="form_field_error">Login failed!</div> + {% endif %} + {{ wtforms_util.render_divs(login_form) }} + <div class="form_submit_buttons"> + <input type="submit" value="submit" class="button"/> + </div> + {% if next %} + <input type="hidden" name="next" value="{{ next }}" class="button" /> + {% endif %} + </div> </form> {% endblock %} |