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">
|
|
|
|
|
<form class="navbar-form pull-left">
|
2013-09-02 11:15:51 +00:00
|
|
|
|
<button type="button" data-action="save"
|
|
|
|
|
class="btn btn-primary">Save</button>
|
|
|
|
|
<button type="button" data-action="cancel"
|
|
|
|
|
class="btn">Cancel</button>
|
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-09-02 11:15:51 +00:00
|
|
|
|
<li class="navbar-form"><button type="button" data-action="snippet" class="btn btn-primary">Building Blocks</button></li>
|
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-09-02 16:51:23 +00:00
|
|
|
|
<button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Discard</button>
|
|
|
|
|
<button type="button" class="btn btn-primary save">Save Changes</button>
|
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">
|
|
|
|
|
<button type="button" class="btn pull-left remove">Remove Link</button>
|
|
|
|
|
</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">
|
|
|
|
|
<h3 class="list-group-item-heading">
|
|
|
|
|
<label for="link-existing" class="control-label">
|
|
|
|
|
Existing page
|
|
|
|
|
</label>
|
|
|
|
|
</h3>
|
|
|
|
|
<select class="existing form-control url-source"
|
|
|
|
|
id="link-existing">
|
|
|
|
|
<option/>
|
|
|
|
|
</select>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
</li>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<li class="list-group-item form-group">
|
|
|
|
|
<h3 class="list-group-item-heading">
|
|
|
|
|
<label for="link-new" class="control-label">
|
|
|
|
|
New page
|
|
|
|
|
</label>
|
|
|
|
|
</h3>
|
|
|
|
|
<input type="text" class="form-control pages url-source"
|
|
|
|
|
id="link-new" placeholder="Create new page"/>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="list-group-item form-group clearfix">
|
|
|
|
|
<h3 class="list-group-item-heading">
|
|
|
|
|
<label for="link-external" class="control-label">
|
|
|
|
|
External Page
|
|
|
|
|
</label>
|
|
|
|
|
</h3>
|
|
|
|
|
<input type="text" class="form-control url url-source"
|
|
|
|
|
id="link-external" placeholder="http://openerp.com"/>
|
2013-09-02 07:52:16 +00:00
|
|
|
|
<div class="pull-right">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="checkbox" class="window-new"/>
|
|
|
|
|
Open in new window
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</li>
|
2013-09-13 09:15:32 +00:00
|
|
|
|
<li class="list-group-item form-group">
|
|
|
|
|
<h3 class="list-group-item-heading">
|
|
|
|
|
<label for="link-email" class="control-label">
|
|
|
|
|
Email Address
|
|
|
|
|
</label>
|
|
|
|
|
</h3>
|
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-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">
|
|
|
|
|
<input type="file" name="upload" style="position: absolute; opacity: 0; width: 1px; height: 1px;"/>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-lg filepicker">
|
|
|
|
|
Upload an image from your computer
|
|
|
|
|
</button>
|
2013-09-13 10:47:39 +00:00
|
|
|
|
<p class="">— or —</p>
|
2013-09-13 08:40:13 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="well">
|
2013-09-13 11:41:43 +00:00
|
|
|
|
<a href="#existing" class="pull-right">Browse your 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"/>
|
|
|
|
|
</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%"/>
|
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>
|
|
|
|
|
</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-13 11:41:43 +00:00
|
|
|
|
<t t-call="website.editor.dialog">
|
|
|
|
|
<t t-set="title">Pick an existing attachment:</t>
|
2013-09-13 15:13:16 +00:00
|
|
|
|
<div class="existing-attachments"/>
|
2013-09-13 11:41:43 +00:00
|
|
|
|
</t>
|
|
|
|
|
</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>
|
|
|
|
|
<div class="well">
|
|
|
|
|
<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>
|
2013-09-04 11:32:22 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</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-08-29 15:34:41 +00:00
|
|
|
|
</templates>
|