2013-08-29 15:34:41 +00:00
|
|
|
|
<templates id="template" xml:space="preserve">
|
|
|
|
|
<t t-extend="website.editorbar">
|
|
|
|
|
<t t-jquery="#website-top-view" t-operation="after">
|
|
|
|
|
<div class="navbar-inner" id="website-top-edit">
|
2013-12-11 16:33:05 +00:00
|
|
|
|
<form class="navbar-form pull-left text-muted">
|
2013-09-02 11:15:51 +00:00
|
|
|
|
<button type="button" data-action="save"
|
|
|
|
|
class="btn btn-primary">Save</button>
|
2013-12-11 16:33:05 +00:00
|
|
|
|
or
|
2014-03-18 11:14:42 +00:00
|
|
|
|
<a href="#" data-action="cancel" class="btn btn-link">Discard</a>
|
2013-08-29 15:34:41 +00:00
|
|
|
|
</form>
|
2013-08-29 22:04:25 +00:00
|
|
|
|
<ul class="nav navbar-nav pull-right">
|
2013-08-29 15:34:41 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
|
|
|
|
</t>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<t t-name="website.editor.dialog">
|
2013-08-30 08:31:18 +00:00
|
|
|
|
<div class="modal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2013-09-02 16:51:23 +00:00
|
|
|
|
<h3 class="modal-title"><t t-esc="title"/></h3>
|
2013-08-30 08:31:18 +00:00
|
|
|
|
</div>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<div class="modal-body"><t t-raw="__content__"/></div>
|
2013-08-30 08:31:18 +00:00
|
|
|
|
<div class="modal-footer">
|
2013-11-27 16:16:27 +00:00
|
|
|
|
<button type="button" class="btn btn-primary save">Save</button>
|
2013-11-06 15:24:12 +00:00
|
|
|
|
<button type="button" class="btn hidden wait" disabled="disabled"/>
|
2013-12-11 16:33:05 +00:00
|
|
|
|
or
|
|
|
|
|
<a href="#" data-dismiss="modal" aria-hidden="true">Discard</a>
|
2013-08-30 08:31:18 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-08-29 15:34:41 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2013-09-13 09:55:32 +00:00
|
|
|
|
<t t-name="website.editor.dialog.link.footer-button">
|
2013-09-16 21:36:42 +00:00
|
|
|
|
<button type="button" class="btn pull-left remove btn-danger">Remove Link</button>
|
2013-09-13 09:55:32 +00:00
|
|
|
|
</t>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<t t-name="website.editor.dialog.link">
|
|
|
|
|
<t t-call="website.editor.dialog">
|
2013-09-02 16:51:23 +00:00
|
|
|
|
<t t-set="title">Link to</t>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<form>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<ul class="list-group">
|
|
|
|
|
<li class="list-group-item form-group active">
|
2013-11-05 08:07:43 +00:00
|
|
|
|
<h4 class="list-group-item-heading">
|
2013-11-13 14:39:34 +00:00
|
|
|
|
<label for="link-page" class="control-label">
|
|
|
|
|
Page
|
2013-09-13 09:15:32 +00:00
|
|
|
|
</label>
|
2013-11-05 08:07:43 +00:00
|
|
|
|
</h4>
|
2013-11-13 14:39:34 +00:00
|
|
|
|
<input class="page form-control url-source"
|
|
|
|
|
id="link-page" type="hidden"/>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li class="list-group-item form-group clearfix">
|
2013-09-27 05:17:27 +00:00
|
|
|
|
<div class="pull-right">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="checkbox" class="window-new"/>
|
|
|
|
|
Open in new window
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2013-11-05 08:07:43 +00:00
|
|
|
|
<h4 class="list-group-item-heading">
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<label for="link-external" class="control-label">
|
2013-11-05 08:07:43 +00:00
|
|
|
|
URL
|
2013-09-13 09:15:32 +00:00
|
|
|
|
</label>
|
2013-11-05 08:07:43 +00:00
|
|
|
|
</h4>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<input type="text" class="form-control url url-source"
|
|
|
|
|
id="link-external" placeholder="http://openerp.com"/>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</li>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<li class="list-group-item form-group">
|
2013-11-05 08:07:43 +00:00
|
|
|
|
<h4 class="list-group-item-heading">
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<label for="link-email" class="control-label">
|
|
|
|
|
Email Address
|
|
|
|
|
</label>
|
2013-11-05 08:07:43 +00:00
|
|
|
|
</h4>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<input type="email" class="form-control email-address url-source"
|
2013-09-13 09:15:32 +00:00
|
|
|
|
id="link-email" placeholder="you@yourwebsite.com"/>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2013-09-24 13:51:20 +00:00
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="link-text" class="col-sm-2 control-label">
|
|
|
|
|
Link text
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control"
|
|
|
|
|
id="link-text"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
</form>
|
|
|
|
|
</t>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-name="website.editor.dialog.image">
|
|
|
|
|
<t t-call="website.editor.dialog">
|
2013-09-02 13:49:20 +00:00
|
|
|
|
<t t-set="title">Image:</t>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
<div class="row">
|
2013-09-02 13:49:20 +00:00
|
|
|
|
<form method="POST" action="/website/attach"
|
|
|
|
|
enctype="multipart/form-data"
|
2013-09-13 08:40:13 +00:00
|
|
|
|
target="fileframe"
|
|
|
|
|
class="col-sm-8">
|
|
|
|
|
<div class="text-center">
|
2014-03-03 11:39:46 +00:00
|
|
|
|
<input type="file" name="upload" accept="image/*" style="position: absolute; opacity: 0; width: 1px; height: 1px;"/>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
<button type="button" class="btn btn-primary btn-lg filepicker">
|
|
|
|
|
Upload an image from your computer
|
|
|
|
|
</button>
|
2014-02-03 16:03:31 +00:00
|
|
|
|
<button type="button" class="btn btn-lg hidden wait" disabled="disabled"/>
|
2013-09-19 16:48:55 +00:00
|
|
|
|
<p class="text-muted mt16">— or —</p>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="well">
|
2013-09-20 05:26:33 +00:00
|
|
|
|
<a href="#existing" class="pull-right">Browse existing images</a>
|
2013-09-13 10:47:39 +00:00
|
|
|
|
<h3 class="list-group-item-heading">Image URL</h3>
|
|
|
|
|
<input type="text" class="form-control url"
|
|
|
|
|
placeholder="http://openerp.com"/>
|
2013-09-04 11:32:22 +00:00
|
|
|
|
</div>
|
2013-09-02 13:49:20 +00:00
|
|
|
|
<input type="hidden" name="func"/>
|
2014-02-04 16:58:23 +00:00
|
|
|
|
<div class="help-block"/>
|
2013-09-02 13:49:20 +00:00
|
|
|
|
</form>
|
2013-09-13 15:23:08 +00:00
|
|
|
|
<div class="col-sm-4 image-preview-container">
|
2013-09-13 08:40:13 +00:00
|
|
|
|
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAC0lEQVQIHWP4zwAAAgEBAMVfG14AAAAASUVORK5CYII%3D"
|
|
|
|
|
class="pull-right img-rounded image-preview"
|
|
|
|
|
width="100%"/>
|
2014-02-03 16:03:31 +00:00
|
|
|
|
<img src="/web/static/src/img/throbber-large.gif"
|
|
|
|
|
class="pull-right img-rounded wait hidden"
|
|
|
|
|
width="100%"/>
|
2013-09-13 15:23:08 +00:00
|
|
|
|
<select class="form-control image-style">
|
|
|
|
|
<option value="">No styling</option>
|
|
|
|
|
<option value="img-rounded">Rounded corners</option>
|
|
|
|
|
<option value="img-thumbnail">Box</option>
|
|
|
|
|
<option value="img-circle">Circle</option>
|
2013-09-15 11:04:27 +00:00
|
|
|
|
<option value="shadow">Shadow</option>
|
2013-09-13 15:23:08 +00:00
|
|
|
|
</select>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</div>
|
2013-09-02 13:49:20 +00:00
|
|
|
|
</div>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
<iframe src="about:blank" name="fileframe" class="hidden"/>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
</t>
|
|
|
|
|
</t>
|
2013-09-04 11:32:22 +00:00
|
|
|
|
<t t-name="website.editor.dialog.image.existing">
|
2013-09-19 16:48:55 +00:00
|
|
|
|
<div class="modal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog select-image">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
<h3 class="modal-title">Select a Picture</h3>
|
|
|
|
|
</div>
|
2014-03-04 11:07:16 +00:00
|
|
|
|
<div class="modal-body has-error">
|
2013-09-19 16:48:55 +00:00
|
|
|
|
<div class="existing-attachments"/>
|
2014-03-04 11:07:16 +00:00
|
|
|
|
<div class="help-block"/>
|
2013-09-19 16:48:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
2013-12-11 16:33:05 +00:00
|
|
|
|
<a href="#" data-dismiss="modal" aria-hidden="true">Discard</a>
|
2013-09-19 16:48:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-09-13 11:41:43 +00:00
|
|
|
|
</t>
|
|
|
|
|
<t t-name="website.editor.dialog.image.existing.content">
|
2013-09-04 11:32:22 +00:00
|
|
|
|
<div class="existing-attachments">
|
2013-09-13 15:13:16 +00:00
|
|
|
|
<ul class="pager">
|
|
|
|
|
<li class="previous disabled"><a href="#">← Previous</a></li>
|
|
|
|
|
<li class="next disabled"><a href="#">Next →</a></li>
|
|
|
|
|
</ul>
|
2013-09-19 16:48:55 +00:00
|
|
|
|
<div class="row mt16" t-foreach="rows" t-as="row">
|
2014-03-04 11:07:16 +00:00
|
|
|
|
<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"/>
|
2013-09-20 05:10:29 +00:00
|
|
|
|
<img t-att-src="attachment.website_url" t-att-alt="attachment.name" class="img img-responsive"/>
|
2013-09-04 11:32:22 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
2014-03-04 11:07:16 +00:00
|
|
|
|
<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>
|
2013-09-06 08:50:45 +00:00
|
|
|
|
<t t-name="website.editor.table.panel">
|
|
|
|
|
<table class="editorbar-panel">
|
|
|
|
|
<tr t-foreach="rows"><td t-foreach="cols">​</td></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</t>
|
|
|
|
|
<t t-name="website.editor.table">
|
|
|
|
|
<table class="table table-bordered table-responsive">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr t-foreach="rows"><td t-foreach="cols">​</td></tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</t>
|
2013-09-15 11:04:27 +00:00
|
|
|
|
|
2013-12-03 11:13:23 +00:00
|
|
|
|
<t t-name="website.editor.discard">
|
|
|
|
|
<div class="modal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
<h3 class="modal-title">Discard edition</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<p>
|
|
|
|
|
If you discard the current edition, <em>all</em>
|
|
|
|
|
unsaved changes will be lost.
|
|
|
|
|
</p>
|
|
|
|
|
<p>You can cancel to return to the edition mode.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-danger">Discard</button>
|
2013-12-11 16:33:05 +00:00
|
|
|
|
or
|
|
|
|
|
<a href="#" data-dismiss="modal" aria-hidden="true">Cancel</a>
|
2013-12-03 11:13:23 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</t>
|
|
|
|
|
|
2013-12-04 10:52:12 +00:00
|
|
|
|
<t t-name="website.editor.hoverbutton">
|
2014-03-26 14:16:29 +00:00
|
|
|
|
<div contentEditable="false" class="hover-edition">
|
|
|
|
|
<button type="button" t-attf-class="btn btn-primary hover-edition-button #{classes or ''}"><t t-esc="label"/></button>
|
|
|
|
|
<button t-if="styleButton" type="button" t-attf-class="btn btn-primary hover-style-button #{classes or ''}">Style</button>
|
|
|
|
|
</div>
|
2013-12-04 10:52:12 +00:00
|
|
|
|
</t>
|
|
|
|
|
|
2014-01-16 09:47:47 +00:00
|
|
|
|
<t t-name="website.editor.dialog.font-icons">
|
|
|
|
|
<t t-call="website.editor.dialog">
|
|
|
|
|
<t t-set="title">Icon:</t>
|
|
|
|
|
<form>
|
2014-01-20 16:26:04 +00:00
|
|
|
|
<div class="form-group" id="fa-preview">
|
|
|
|
|
|
2014-01-16 09:47:47 +00:00
|
|
|
|
</div>
|
2014-01-21 10:04:08 +00:00
|
|
|
|
<div class="form-group font-icons fa fa-search">
|
2014-01-16 09:47:47 +00:00
|
|
|
|
<input type="hidden" id="fa-icon" class="form-control"/>
|
2014-01-20 16:26:04 +00:00
|
|
|
|
<input type="hidden" id="fa-size" class="form-control"/>
|
2014-01-21 10:04:08 +00:00
|
|
|
|
<input type="search" class="form-control" id="icon-search"/>
|
2014-01-20 15:36:10 +00:00
|
|
|
|
<div class="font-icons-icons">
|
2014-01-21 10:04:08 +00:00
|
|
|
|
<t t-call="website.editor.dialog.font-icons.icons">
|
|
|
|
|
<t t-set="icons" t-value="widget.icons"/>
|
|
|
|
|
</t>
|
2014-01-20 15:36:10 +00:00
|
|
|
|
</div>
|
2014-01-16 09:47:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="fa-rotation">Rotation</label>
|
|
|
|
|
<select id="fa-rotation" class="form-control">
|
|
|
|
|
<option value="">None</option>
|
|
|
|
|
<option value="fa-spin">Spin</option>
|
|
|
|
|
<option value="fa-rotate-90">Rotate 90º</option>
|
|
|
|
|
<option value="fa-rotate-180">Rotate 180º</option>
|
|
|
|
|
<option value="fa-rotate-270">Rotate 270º</option>
|
|
|
|
|
<option value="fa-flip-horizontal">Horizontal flip</option>
|
|
|
|
|
<option value="fa-flip-vertical">Vertical flip</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>
|
2014-01-21 10:04:08 +00:00
|
|
|
|
<input type="checkbox" id="fa-border"/> border
|
2014-01-16 09:47:47 +00:00
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</t>
|
|
|
|
|
</t>
|
2014-01-21 10:04:08 +00:00
|
|
|
|
<t t-name="website.editor.dialog.font-icons.icons">
|
|
|
|
|
<span t-foreach="icons" t-as="icon"
|
|
|
|
|
class="fa font-icons-icon"
|
|
|
|
|
t-att-data-id="icon.id">
|
|
|
|
|
<t t-esc="icon.text"/>
|
|
|
|
|
</span>
|
|
|
|
|
</t>
|
2014-01-16 09:47:47 +00:00
|
|
|
|
|
2013-08-29 15:34:41 +00:00
|
|
|
|
</templates>
|