diff options
author | Jef van Schendel <jefvanschendel@gmail.com> | 2011-06-07 16:02:16 +0200 |
---|---|---|
committer | Jef van Schendel <jefvanschendel@gmail.com> | 2011-06-07 16:02:16 +0200 |
commit | bb1f2f89e1c9c1bb50a7a31cab50f88252b0428f (patch) | |
tree | 1a450d99ab2cda9e471c082b704fb5b1e5c5c4af | |
parent | 852c7fdb8a8966fac1fff52501a2d65b8354e070 (diff) | |
download | mediagoblin-bb1f2f89e1c9c1bb50a7a31cab50f88252b0428f.tar.lz mediagoblin-bb1f2f89e1c9c1bb50a7a31cab50f88252b0428f.tar.xz mediagoblin-bb1f2f89e1c9c1bb50a7a31cab50f88252b0428f.zip |
Changed edit page: new background image, image is included in form, submit button text changed, title text changed, created new css class for edit forms
-rw-r--r-- | mediagoblin/static/css/base.css | 5 | ||||
-rw-r--r-- | mediagoblin/templates/mediagoblin/edit/edit.html | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index e9f2c4a9..a69eb1fd 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -119,6 +119,11 @@ a.mediagoblin_logo:hover { width:600px; } +.edit_box { + width:600px; + background-image:url("../images/background_edit.png"); +} + .form_box h1 { font-size:28px; } diff --git a/mediagoblin/templates/mediagoblin/edit/edit.html b/mediagoblin/templates/mediagoblin/edit/edit.html index 295d57eb..70cc17d1 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit.html +++ b/mediagoblin/templates/mediagoblin/edit/edit.html @@ -20,19 +20,20 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_content %} - <h1>Edit details for {{ media.title }}</h1> <form action="{{ request.urlgen('mediagoblin.edit.edit_media', user= media.uploader().username, media= media._id) }}" method="POST" enctype="multipart/form-data"> - <div class="submit_box form_box"> + <div class="edit_box form_box"> + <h1>Editing {{ media.title }}</h1> {{ wtforms_util.render_divs(form) }} <div class="form_submit_buttons"> - <input type="submit" value="submit" class="button" /> + <input type="submit" value="save changes" class="button" /> </div> + <img src="{{ request.app.public_store.file_url( + media['media_files']['thumb']) }}" /> </div> </form> - <img src="{{ request.app.public_store.file_url( - media['media_files']['thumb']) }}" /> + {% endblock %} |