summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-09-13 11:15:32 +0200
committerXavier Morel <xmo@openerp.com>2013-09-13 11:15:32 +0200
commitc52335de5a7c55cfe542105219f84ecf9ede0a41 (patch)
treeab1e226c71684335468a09c62fe3a04a51cbf5f2 /addons/website/static/src/xml/website.editor.xml
parent96d0662732cc05577c3359ce78a0a8baac816554 (diff)
[IMP] split new page and existing page sections in link dialog + look fixes
* select sections on click within section * validation in case no value provided for selected section on save bzr revid: xmo@openerp.com-20130913091532-i037z59odb4j52b7
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml53
1 files changed, 35 insertions, 18 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index 5d42d95aa33..f57524d6453 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -35,33 +35,50 @@
<t t-call="website.editor.dialog">
<t t-set="title">Link to</t>
<form>
- <ul class="list-group form-group">
- <li class="list-group-item active">
- <h3 class="list-group-item-heading">Page on your website</h3>
- <div class="input-group">
- <input type="text" class="form-control pages url-source"
- placeholder="Create new page"/>
- <div class="input-group-btn existing dropdown">
- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Existing page <span class="caret"></span></button>
- <ul class="dropdown-menu pull-right"/>
- </div>
- </div>
+ <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>
</li>
- <li class="list-group-item">
+ <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"/>
<div class="pull-right">
<label>
<input type="checkbox" class="window-new"/>
Open in new window
</label>
</div>
- <h3 class="list-group-item-heading">External Page</h3>
- <input type="text" class="form-control url url-source"
- placeholder="http://openerp.com"/>
</li>
- <li class="list-group-item">
- <h3 class="list-group-item-heading">Email Address</h3>
+ <li class="list-group-item form-group">
+ <h3 class="list-group-item-heading">
+ <label for="link-email" class="control-label">
+ Email Address
+ </label>
+ </h3>
<input type="email" class="form-control email-address url-source"
- placeholder="you@yourwebsite.com"/>
+ id="link-email" placeholder="you@yourwebsite.com"/>
</li>
</ul>
</form>