summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2014-03-12 16:29:42 +0100
committerFabien Meghazi <fme@openerp.com>2014-03-12 16:29:42 +0100
commita8f513f4f24ad257dac8b6cad3c27cde2c537cb7 (patch)
treea77376eb789ab455a1eb9cdf00bdf8b314549417 /addons/website/static/src/xml/website.editor.xml
parent2ed053642abfbf20678c02955b8b0bb575cf8d30 (diff)
parent5bf16082786c647dfd322a3157305f750c070136 (diff)
[MERGE] upstream
bzr revid: fme@openerp.com-20140312152942-egbzui0drs85wt7i
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index 6c1e387c958..1010ec05127 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -140,8 +140,9 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title">Select a Picture</h3>
</div>
- <div class="modal-body">
+ <div class="modal-body has-error">
<div class="existing-attachments"/>
+ <div class="help-block"/>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" aria-hidden="true">Discard</a>
@@ -157,12 +158,27 @@
<li class="next disabled"><a href="#">Next →</a></li>
</ul>
<div class="row mt16" t-foreach="rows" t-as="row">
- <div class="col-sm-2" t-foreach="row" t-as="attachment">
+ <div class="col-sm-2 existing-attachment-cell"
+ t-foreach="row" t-as="attachment">
+ <i class="fa fa-times existing-attachment-remove" t-att-data-id="attachment.id"/>
<img t-att-src="attachment.website_url" t-att-alt="attachment.name" class="img img-responsive"/>
</div>
</div>
</div>
</t>
+ <t t-name="website.editor.dialog.image.existing.error">
+ <div class="help-block">
+ <p>The image could not be deleted because it is used in the
+ following pages or views:</p>
+ <ul t-foreach="views" t-as="view">
+ <li>
+ <a t-attf-href="/web#model=ir.ui.view&amp;id=#{view.id}">
+ <t t-esc="view.name"/>
+ </a> (id <t t-esc="view.id"/>)
+ </li>
+ </ul>
+ </div>
+ </t>
<t t-name="website.editor.table.panel">
<table class="editorbar-panel">
<tr t-foreach="rows"><td t-foreach="cols">&#8203;</td></tr>