diff options
| author | chm@openerp.com <> | 2014-03-07 11:42:33 +0100 |
|---|---|---|
| committer | chm@openerp.com <> | 2014-03-07 11:42:33 +0100 |
| commit | 23eca80556af5cd4c1de0bf3f63da249b90a1fbc (patch) | |
| tree | fef1285da3227467537eae01ae85d2c7d1fd2e97 /addons/website/static/src/xml | |
| parent | c18d3504689228807d6703b920b43d6c4e6e6721 (diff) | |
| parent | 0b92d30081c6abe5d42869ddf037a7eb1ff9cab4 (diff) | |
[MERGE] from trunk
bzr revid: chm@openerp.com-20140307104233-fqz4jwzf5yj6jtm2
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.editor.xml | 25 | ||||
| -rw-r--r-- | addons/website/static/src/xml/website.snippets.xml | 47 | ||||
| -rw-r--r-- | addons/website/static/src/xml/website.tour.xml | 2 | ||||
| -rw-r--r-- | addons/website/static/src/xml/website.xml | 4 |
4 files changed, 31 insertions, 47 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 448c615bb07..1010ec05127 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -101,6 +101,7 @@ <button type="button" class="btn btn-primary btn-lg filepicker"> Upload an image from your computer </button> + <button type="button" class="btn btn-lg hidden wait" disabled="disabled"/> <p class="text-muted mt16">— or —</p> </div> <div class="well"> @@ -110,11 +111,15 @@ placeholder="http://openerp.com"/> </div> <input type="hidden" name="func"/> + <div class="help-block"/> </form> <div class="col-sm-4 image-preview-container"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAC0lEQVQIHWP4zwAAAgEBAMVfG14AAAAASUVORK5CYII%3D" class="pull-right img-rounded image-preview" width="100%"/> + <img src="/web/static/src/img/throbber-large.gif" + class="pull-right img-rounded wait hidden" + width="100%"/> <select class="form-control image-style"> <option value="">No styling</option> <option value="img-rounded">Rounded corners</option> @@ -135,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> @@ -152,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&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">​</td></tr> diff --git a/addons/website/static/src/xml/website.snippets.xml b/addons/website/static/src/xml/website.snippets.xml index cf3996bdba4..ae109139e3c 100644 --- a/addons/website/static/src/xml/website.snippets.xml +++ b/addons/website/static/src/xml/website.snippets.xml @@ -15,43 +15,6 @@ </div> </li> </t> - <t t-name="website.snippets_modal"> - <div class="modal" id="oe_droperror" tabindex="-1" role="dialog"> - <div class="modal-dialog"> - <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal">&times;</button> - <h4 class="modal-title"> - Building Block Not Inserted - </h4> - </div> - <div class="modal-body"> - <p> - Please drop building blocks in a valid zone, like - this one: - </p> - <div class="row"> - <div class="col-sm-4 col-sm-offset-4 oe_drop_zone_style text-center"> - <span class="mt16">drop in this zone</span> - </div> - </div> - <div class="text-muted"> - <b>Tip:</b> when your cursor is in a valid zone, - OpenERP shows you a preview of the building block - in the page. You must release the block when the - preview is visible. - </div> - </div> - <div class="modal-footer"> - <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> - <div class="pull-left"> - <input type="checkbox" value="1"/> Never show this tip again - </div> - </div> - </div> - </div> - </div> - </t> <t t-name="website.snippets"> <div id='oe_snippets'></div> @@ -83,11 +46,11 @@ <div t-name="website.snippets.resize" data-snippet-id='resize'> <!-- custom data for the widget --> <div class='oe_handles'> - <div class='oe_handle n'></div> - <div class='oe_handle e'></div> - <div class='oe_handle w'></div> - <div class='oe_handle size'><div class="oe_handle_button size">Resize</div><div class="oe_border"/></div> - <div class='oe_handle s'></div> + <div class='oe_handle n'><div></div></div> + <div class='oe_handle e'><div></div></div> + <div class='oe_handle w'><div></div></div> + <div class='oe_handle size'><div class="oe_handle_button size">Resize</div></div> + <div class='oe_handle s'><div></div></div> </div> <div class='oe_snippet_thumbnail'>Margin resize</div> </div> diff --git a/addons/website/static/src/xml/website.tour.xml b/addons/website/static/src/xml/website.tour.xml index 1365ba08307..dcecef021bb 100644 --- a/addons/website/static/src/xml/website.tour.xml +++ b/addons/website/static/src/xml/website.tour.xml @@ -22,6 +22,6 @@ </div> </t> <t t-name="website.tour_popover_title"> - <t t-esc="title"/><button title="Close Tutorial" type="button" class="close" data-role="end">×</button> + <t t-esc="title"/><button title="End This Tutorial" type="button" class="close" data-role="end">×</button> </t> </templates> diff --git a/addons/website/static/src/xml/website.xml b/addons/website/static/src/xml/website.xml index 5890350e2dc..4d9c9fcd73d 100644 --- a/addons/website/static/src/xml/website.xml +++ b/addons/website/static/src/xml/website.xml @@ -74,7 +74,7 @@ </div> <div class="modal-body" t-if="message or backend_url"> <section> - <t t-esc="message"/> + <t t-raw="message"/> </section> <section class="mt32" t-if="backend_url"> <p>The web site has encountered an error.</p> @@ -102,7 +102,7 @@ <h3 class="modal-title"><t t-esc="window_title"/></h3> </div> <div class="modal-body"> - <form class="form-horizontal" role="form"> + <form class="form-horizontal" role="form" t-att-id="id"> <div class="form-group mb0"> <label for="page-name" class="col-sm-3 control-label"> <t t-esc="field_name"/>: |
