summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-09-04 13:32:22 +0200
committerXavier Morel <xmo@openerp.com>2013-09-04 13:32:22 +0200
commit4932521377aa38891617c3bd4add15473b996a0c (patch)
treecdb57dc93537e73b52e98376f003b785cb98e574 /addons/website/static/src/xml/website.editor.xml
parent3e1302ee731908f920d8cbdb0f8599c75d8c33d5 (diff)
[ADD] selection of existing image in image dialog
bzr revid: xmo@openerp.com-20130904113222-xync5o48nwngvtj4
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml19
1 files changed, 18 insertions, 1 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index 4dd6a958949..927ad3df66e 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -88,15 +88,32 @@
Upload an image from your computer
</button>
</div>
+ <p class="text-center">— or —</p>
+ <div class="well">
+ <h3 class="list-group-item-heading">Pick an existing attachment</h3>
+ <div class="existing-attachments"/>
+ </div>
<input type="hidden" name="func"/>
</form>
<div class="col-sm-4">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAC0lEQVQIHWP4zwAAAgEBAMVfG14AAAAASUVORK5CYII%3D"
- class="pull-right img-rounded"
+ class="pull-right img-rounded image-preview"
width="100%"/>
</div>
</div>
<iframe src="about:blank" name="fileframe" class="hidden"/>
</t>
</t>
+ <t t-name="website.editor.dialog.image.existing">
+ <div class="existing-attachments">
+ <div class="row" t-foreach="rows" t-as="row">
+ <div class="col-md-4" t-foreach="row" t-as="attachment">
+ <t t-set="url">/website/attachment/<t t-esc="attachment.id"/></t>
+ <a t-att-href="url" class="thumbnail">
+ <img t-att-src="url" t-att-alt="attachment.name"/>
+ </a>
+ </div>
+ </div>
+ </div>
+ </t>
</templates>