summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2011-09-27 17:53:47 +0200
committerChristophe Simonis <chs@openerp.com>2011-09-27 17:53:47 +0200
commite4c2cfb4baa6251fc948d93633c5f5ab9a51188b (patch)
tree85ffc8ee029269e6bcfc7a325afdc67a176a5e69 /addons/web/static/src/xml/base.xml
parent567cd953ca0740648df75c9f5eb9484c92903dae (diff)
[FIX] nivification of Login Widget
bzr revid: chs@openerp.com-20110927155347-dcqeg7hlyaq5djis
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml32
1 files changed, 16 insertions, 16 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 25d256992d7..e3b88dfdcd5 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -242,6 +242,21 @@
</table>
</form>
</t>
+
+<t t-name="Login_dblist">
+ <select name="db">
+ <t t-foreach="db_list" t-as="db">
+ <t t-if="selected_db === db">
+ <option t-att-value="db" selected="true">
+ <t t-esc="db"/></option>
+ </t>
+ <t t-if="selected_db !== db">
+ <option t-att-value="db"><t t-esc="db"/></option>
+ </t>
+ </t>
+ </select>
+</t>
+
<t t-name="Login">
<form class="oe_forms">
<fieldset>
@@ -253,22 +268,7 @@
<tr>
<td><label for="db">Database:</label></td>
<td>
- <t t-if="!db_list">
- <input type="text" name="db" t-att-value="selected_db || ''" autofocus="true"/>
- </t>
- <t t-if="db_list">
- <select name="db">
- <t t-foreach="db_list" t-as="db">
- <t t-if="selected_db === db">
- <option t-att-value="db" selected="true">
- <t t-esc="db"/></option>
- </t>
- <t t-if="selected_db !== db">
- <option t-att-value="db"><t t-esc="db"/></option>
- </t>
- </t>
- </select>
- </t>
+ <input type="text" name="db" t-att-value="selected_db || ''" autofocus="true"/>
</td>
</tr>
<tr>