Add POD image support to product view page.
This commit is contained in:
parent
087342b09c
commit
389bb5dcc6
3 changed files with 40 additions and 1 deletions
|
@ -1,6 +1,27 @@
|
|||
<%inherit file="/products/crud.mako" />
|
||||
|
||||
${parent.body()}
|
||||
<%def name="head_tags()">
|
||||
${parent.head_tags()}
|
||||
<style type="text/css">
|
||||
#product-image {
|
||||
float: left;
|
||||
margin-left: 250px;
|
||||
margin-top: 40px;
|
||||
}
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
<div class="form-wrapper">
|
||||
<ul class="context-menu">
|
||||
${self.context_menu_items()}
|
||||
</ul>
|
||||
|
||||
${form.render()|n}
|
||||
|
||||
% if image:
|
||||
${h.image(image_url, u"Product Image", id='product-image', path=image_path, use_pil=True)}
|
||||
% endif
|
||||
</div>
|
||||
|
||||
<% product = form.fieldset.model %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue