summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-08-29 17:34:41 +0200
committerXavier Morel <xmo@openerp.com>2013-08-29 17:34:41 +0200
commit0d64c9037dcf27d8a32515e5150e96e16ef8a75e (patch)
treed65dc8b0e104db71e1b996b70d39493a253ec453 /addons/website/static/src/xml
parente6da64b39e1d11336663e9f2319f4ffe904b109c (diff)
[IMP] Implement custom bootstrap dialog for links.
Dialog doesn't work right as it's a bootstrap 3-ish dialog, not 2, so none of the classes works correctly. Also moved editor templates outside of main website template file. bzr revid: xmo@openerp.com-20130829153441-w51n3hxxikyti0xj
Diffstat (limited to 'addons/website/static/src/xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml56
-rw-r--r--addons/website/static/src/xml/website.xml10
2 files changed, 56 insertions, 10 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
new file mode 100644
index 00000000000..6fbc7345b17
--- /dev/null
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -0,0 +1,56 @@
+<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">
+ <button data-action="save" class="btn btn-primary">Save</button>
+ <button data-action="cancel" class="btn">Cancel</button>
+ </form>
+ <ul class="nav pull-right">
+ <li><button data-action="snippet" class="btn btn-primary">Building Blocks</button></li>
+ </ul>
+ </div>
+ </t>
+ </t>
+ <t t-name="website.editor.dialog.link">
+ <div class="modal hide" tabindex="-1" role="dialog" aria-hidden="true">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
+ <h3>Link to:</h3>
+ </div>
+ <div class="modal-body">
+ <form>
+ <ul class="list-group">
+ <li class="list-group-item active">
+ <h3 class="list-group-item-heading">Page on Your Website</h3>
+ <select class="form-control pages url-source"/>
+ </li>
+ <li class="list-group-item">
+ <h3 class="list-group-item-heading pull-left">Website URL</h3>
+ <div class="pull-right">
+ <label>
+ <input type="checkbox" class="window-new"/>
+ Open in new window
+ </label>
+ </div>
+ <div class="clearfix"></div>
+ <div class="input-group">
+ <input type="text" class="form-control url url-source"
+ placeholder="http://openerp.com"/>
+ </div>
+ </li>
+ <li class="list-group-item">
+ <h3 class="list-group-item-heading">Email Address</h3>
+ <input type="email" class="form-control email-address url-source"
+ placeholder="you@yourwebsite.com"/>
+ </li>
+ </ul>
+ </form>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
+ <button type="button" class="btn btn-primary">Save changes</button>
+ </div>
+ </div>
+ </t>
+</templates>
diff --git a/addons/website/static/src/xml/website.xml b/addons/website/static/src/xml/website.xml
index 17ec64bc6bb..a03868d392b 100644
--- a/addons/website/static/src/xml/website.xml
+++ b/addons/website/static/src/xml/website.xml
@@ -27,16 +27,6 @@
</li>
</ul>
</div>
-
- <div class="navbar-inner" id="website-top-edit">
- <form class="navbar-form pull-left">
- <button data-action="save" class="btn btn-primary">Save</button>
- <button data-action="cancel" class="btn">Cancel</button>
- </form>
- <ul class="nav pull-right">
- <li><button data-action="snippet" class="btn btn-primary">Building Blocks</button></li>
- </ul>
- </div>
</div>
</t>