Mercurial > personas_backend
changeset 146:612212345759
Persona thumbnails are now displayed on the edit persona form.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 04 Apr 2008 11:34:44 -0700 |
parents | f07025da528b |
children | bc6161ef735f |
files | personasbackend/personas/templates/personas/edit.html personasbackend/personas/views.py |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/personasbackend/personas/templates/personas/edit.html Fri Apr 04 10:41:50 2008 -0700 +++ b/personasbackend/personas/templates/personas/edit.html Fri Apr 04 11:34:44 2008 -0700 @@ -2,6 +2,13 @@ {% block content %} <form enctype="multipart/form-data" method="post" action="."> + {% if persona %} + <p>This persona's preview image currently looks like this:</p> + <p><img src="{{ persona.thumbnail_url }}" /></p> + <p>You can change this by submitting new images for the header and + footer images below. However, if you leave them blank, the preview + image will remain as-is.</p> + {% endif %} <table class="persona-form corner-box"> {{ form }} </table>
--- a/personasbackend/personas/views.py Fri Apr 04 10:41:50 2008 -0700 +++ b/personasbackend/personas/views.py Fri Apr 04 11:34:44 2008 -0700 @@ -148,6 +148,7 @@ return render_to_response( "personas/edit.html", { "form" : form, - "title" : pageTitle }, + "title" : pageTitle, + "persona" : persona }, context_instance = RequestContext(request) )