Merge lp:~openerp-dev/openerp-web/7.0-res-users-infobox-fme into lp:openerp-web/7.0

Proposed by Fabien Meghazi (OpenERP)
Status: Merged
Merged at revision: 3844
Proposed branch: lp:~openerp-dev/openerp-web/7.0-res-users-infobox-fme
Merge into: lp:openerp-web/7.0
Diff against target: 95 lines (+47/-2)
3 files modified
addons/web/static/src/css/base.css (+26/-0)
addons/web/static/src/css/base.sass (+19/-1)
addons/web/static/src/js/view_form.js (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/7.0-res-users-infobox-fme
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+153409@code.launchpad.net

Description of the change

Improve res.users form view in auth_signup

To post a comment you must log in.
3844. By Fabien Meghazi (OpenERP)

[IMP] Improved box_info box_warning css

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/web/static/src/css/base.css'
--- addons/web/static/src/css/base.css 2013-03-11 21:23:53 +0000
+++ addons/web/static/src/css/base.css 2013-03-14 22:28:22 +0000
@@ -355,6 +355,12 @@
355 float: right;355 float: right;
356 margin-left: 8px;356 margin-left: 8px;
357}357}
358.openerp .oe_text_center {
359 text-align: center;
360}
361.openerp .oe_text_left {
362 text-align: left;
363}
358.openerp .oe_text_right {364.openerp .oe_text_right {
359 text-align: right;365 text-align: right;
360}366}
@@ -2228,6 +2234,26 @@
2228.openerp .oe_form .oe_subtotal_footer label.oe_form_label_help {2234.openerp .oe_form .oe_subtotal_footer label.oe_form_label_help {
2229 font-weight: normal;2235 font-weight: normal;
2230}2236}
2237.openerp .oe_form .oe_form_box_info {
2238 background: #ffee99;
2239 border-bottom: 1px solid #ccbb66;
2240 padding: 4px;
2241}
2242.openerp .oe_form .oe_form_box_info > p {
2243 margin: auto;
2244}
2245.openerp .oe_form .oe_form_box_warning {
2246 background: #bd362f;
2247 border-bottom: 1px solid #990000;
2248 padding: 4px;
2249}
2250.openerp .oe_form .oe_form_box_warning * {
2251 color: white;
2252 text-shadow: none;
2253}
2254.openerp .oe_form .oe_form_box_warning > p {
2255 margin: auto;
2256}
2231.openerp .oe_form .oe_form_button {2257.openerp .oe_form .oe_form_button {
2232 margin: 2px;2258 margin: 2px;
2233}2259}
22342260
=== modified file 'addons/web/static/src/css/base.sass'
--- addons/web/static/src/css/base.sass 2013-03-11 21:23:53 +0000
+++ addons/web/static/src/css/base.sass 2013-03-14 22:28:22 +0000
@@ -370,6 +370,10 @@
370 .oe_right370 .oe_right
371 float: right371 float: right
372 margin-left: 8px372 margin-left: 8px
373 .oe_text_center
374 text-align: center
375 .oe_text_left
376 text-align: left
373 .oe_text_right377 .oe_text_right
374 text-align: right378 text-align: right
375 .oe_clear379 .oe_clear
@@ -1760,7 +1764,21 @@
1760 padding: 2px 11px 2px 0px !important1764 padding: 2px 11px 2px 0px !important
1761 label.oe_form_label_help1765 label.oe_form_label_help
1762 font-weight: normal1766 font-weight: normal
17631767 .oe_form_box_info
1768 background: #fe9
1769 border-bottom: 1px solid #cb6
1770 padding: 4px
1771 > p
1772 margin: auto
1773 .oe_form_box_warning
1774 background: #bd362f
1775 border-bottom: 1px solid #900
1776 padding: 4px
1777 *
1778 color: white
1779 text-shadow: none
1780 > p
1781 margin: auto
1764 // }}}1782 // }}}
1765 // FormView.group {{{1783 // FormView.group {{{
1766 .oe_form1784 .oe_form
17671785
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2013-03-14 13:51:41 +0000
+++ addons/web/static/src/js/view_form.js 2013-03-14 22:28:22 +0000
@@ -2357,7 +2357,8 @@
2357 if (!s) {2357 if (!s) {
2358 tmp = "http://" + this.get('value');2358 tmp = "http://" + this.get('value');
2359 }2359 }
2360 this.$el.find('a').attr('href', tmp).text(this.get('value') ? tmp : '');2360 var text = this.get('value') ? this.node.attrs.text || tmp : '';
2361 this.$el.find('a').attr('href', tmp).text(text);
2361 }2362 }
2362 },2363 },
2363 on_button_clicked: function() {2364 on_button_clicked: function() {