Skip to content

Commit

Permalink
Add a label in the popup widget for the image preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitakas committed Feb 27, 2015
1 parent 8c27efe commit e768e0f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/archetypes/referencebrowserwidget/browser/popup.pt
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@
</td>

<td tal:condition="image_portal_types">
<img tal:condition="python: item.Type in image_portal_types"
tal:attributes="src string:${item/getURL}/$image_method"
/>
<label tal:condition="referenceable"
tal:attributes="for uid;">
<img tal:condition="python: item.Type in image_portal_types"
tal:attributes="src string:${item/getURL}/$image_method"
/>
</label>
</td>
<td tal:attributes="class python:'contenttype-' + normalizeString(item.portal_type)">
<img tal:define="icon item/getIcon"
Expand Down

0 comments on commit e768e0f

Please sign in to comment.