diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 29e91ed79b4..52a84f9a0ff 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -3114,6 +3114,44 @@ div.ui-widget-overlay { padding-bottom: 10px !important; } +.oe_single_form { + background: #eeeeee url(/web/static/src/img/form_sheetbg.png); + height: 100%; +} + +.oe_single_form_logo { + padding: 10px; + text-align: center; + margin-bottom: 10px; +} + +.oe_single_form_footer { + position: absolute; + bottom: -30px; +} + +.oe_login_form { + padding: 10px; + position: absolute; + left: 50%; + top: 50%; + width: 400px; + /* Set margins to offset 50% of the w/h */ + margin-top: -200px; + margin-left: -200px; +} + +.oe_dbselector_form { + padding: 10px; + position: absolute; + left: 50%; + top: 50%; + width: 300px; + /* Set margins to offset 50% of the w/h */ + margin-top: -150px; + margin-left: -150px; +} + .openerp_ie .placeholder { color: #afafb6 !important; font-style: italic !important; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index a9ef3b643a3..4e49c8e3c94 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -2491,6 +2491,38 @@ div.ui-widget-overlay td padding-bottom: 10px !important +// Server side single forms {{{ +@mixin single-form($width: 400px) + padding: 10px + position: absolute + left: 50% + top: 50% + width: $width + /* Set margins to offset 50% of the w/h */ + margin-top: -($width / 2) + margin-left: -($width / 2) + +.oe_single_form + background: #eee url(/web/static/src/img/form_sheetbg.png) + height: 100% + +.oe_single_form_logo + padding: 10px + text-align: center + margin-bottom: 10px + +.oe_single_form_footer + position: absolute + bottom: -30px + +.oe_login_form + @include single-form(400px) + +.oe_dbselector_form + @include single-form(300px) + +// }}} + // Internet Explorer 9+ specifics {{{ .openerp_ie .placeholder diff --git a/addons/web/views/database_selector.html b/addons/web/views/database_selector.html index 967b5fad082..1ed3bf1bc3d 100644 --- a/addons/web/views/database_selector.html +++ b/addons/web/views/database_selector.html @@ -10,40 +10,38 @@ -
- - - - -
-
-
+ +
+ +
+ + +
+ +
+ {% if debug %} + + {% endif %} + + + + + + diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 2156061e56e..5aacf1d6c10 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -54,29 +54,36 @@ }); -
-
-
-
- +
+ +
+ +
+ + + +
+ + +
+ + + +
+ + + +