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
1=== modified file 'addons/web/static/src/css/base.css'
2--- addons/web/static/src/css/base.css 2013-03-11 21:23:53 +0000
3+++ addons/web/static/src/css/base.css 2013-03-14 22:28:22 +0000
4@@ -355,6 +355,12 @@
5 float: right;
6 margin-left: 8px;
7 }
8+.openerp .oe_text_center {
9+ text-align: center;
10+}
11+.openerp .oe_text_left {
12+ text-align: left;
13+}
14 .openerp .oe_text_right {
15 text-align: right;
16 }
17@@ -2228,6 +2234,26 @@
18 .openerp .oe_form .oe_subtotal_footer label.oe_form_label_help {
19 font-weight: normal;
20 }
21+.openerp .oe_form .oe_form_box_info {
22+ background: #ffee99;
23+ border-bottom: 1px solid #ccbb66;
24+ padding: 4px;
25+}
26+.openerp .oe_form .oe_form_box_info > p {
27+ margin: auto;
28+}
29+.openerp .oe_form .oe_form_box_warning {
30+ background: #bd362f;
31+ border-bottom: 1px solid #990000;
32+ padding: 4px;
33+}
34+.openerp .oe_form .oe_form_box_warning * {
35+ color: white;
36+ text-shadow: none;
37+}
38+.openerp .oe_form .oe_form_box_warning > p {
39+ margin: auto;
40+}
41 .openerp .oe_form .oe_form_button {
42 margin: 2px;
43 }
44
45=== modified file 'addons/web/static/src/css/base.sass'
46--- addons/web/static/src/css/base.sass 2013-03-11 21:23:53 +0000
47+++ addons/web/static/src/css/base.sass 2013-03-14 22:28:22 +0000
48@@ -370,6 +370,10 @@
49 .oe_right
50 float: right
51 margin-left: 8px
52+ .oe_text_center
53+ text-align: center
54+ .oe_text_left
55+ text-align: left
56 .oe_text_right
57 text-align: right
58 .oe_clear
59@@ -1760,7 +1764,21 @@
60 padding: 2px 11px 2px 0px !important
61 label.oe_form_label_help
62 font-weight: normal
63-
64+ .oe_form_box_info
65+ background: #fe9
66+ border-bottom: 1px solid #cb6
67+ padding: 4px
68+ > p
69+ margin: auto
70+ .oe_form_box_warning
71+ background: #bd362f
72+ border-bottom: 1px solid #900
73+ padding: 4px
74+ *
75+ color: white
76+ text-shadow: none
77+ > p
78+ margin: auto
79 // }}}
80 // FormView.group {{{
81 .oe_form
82
83=== modified file 'addons/web/static/src/js/view_form.js'
84--- addons/web/static/src/js/view_form.js 2013-03-14 13:51:41 +0000
85+++ addons/web/static/src/js/view_form.js 2013-03-14 22:28:22 +0000
86@@ -2357,7 +2357,8 @@
87 if (!s) {
88 tmp = "http://" + this.get('value');
89 }
90- this.$el.find('a').attr('href', tmp).text(this.get('value') ? tmp : '');
91+ var text = this.get('value') ? this.node.attrs.text || tmp : '';
92+ this.$el.find('a').attr('href', tmp).text(text);
93 }
94 },
95 on_button_clicked: function() {