Commit ed4ef1d9 authored by Sven Franck's avatar Sven Franck

erp5_web_renderjs_ui: fix css of multilistField

parent 4bcd41ff
......@@ -390,17 +390,18 @@ form label span {\n
color: red;\n
}\n
\n
\n
/* layout form with left|right|center|bottom XXX: One big mess to re-factor!!!\n
.center {\n
/* stretch controlgroup controls in case they don\'t */\n
html.ui-mobile head + body .ui-field-contain fieldset .ui-controlgroup-controls {\n
width: 100%;\n
padding: 0 .5em;\n
-webkit-box-sizing: border-box;\n
-moz-box-sizing: border-box;\n
box-sizing: border-box;\n
text-align: left;\n
}\n
*/\n
/* remove double borders on vertical fieldsets TODO: no pseudo, not generic! */\n
html.ui-mobile head + body .ui-field-contain fieldset.ui-controlgroup-vertical .ui-controlgroup-controls > * .ui-btn {\n
border-bottom-width: 0;\n
}\n
html.ui-mobile head + body .ui-field-contain fieldset.ui-controlgroup-vertical .ui-controlgroup-controls > *:last-child .ui-btn {\n
border-bottom-width: 1px;\n
}\n
\n
.left,\n
.right,\n
.center,\n
......@@ -1395,6 +1396,10 @@ html .ui-table-header:before {\n
----------------------------- Textinput ---------------------------------\n
-------------------------------------------------------------------------\n
*/\n
/* remove JQM icons */\n
.ui-input-search:after {\n
background-image: none;\n
}\n
/* pre-enhanced clear button padding */\n
.ui-input-has-clear .ui-btn input {\n
padding-left: 0;\n
......@@ -1829,6 +1834,7 @@ html body .ui-tag-list-inset .ui-controlgroup-horizontal .ui-checkbox .ui-btn-ac
text-shadow: none;\n
color: black;\n
}\n
\n
/*\n
-------------------------------------------------------------------------\n
-------------------------------- Button ---------------------------------\n
......@@ -4634,7 +4640,6 @@ html .ui-panel .ui-content .ui-btn[class*="ui-icon-"]:after {\n
background-image: url(images/icons-png/user-white.png);\n
}\n
\n
\n
]]></string> </value>
......@@ -4758,7 +4763,7 @@ html .ui-panel .ui-content .ui-btn[class*="ui-icon-"]:after {\n
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>super_sven</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -4772,7 +4777,7 @@ html .ui-panel .ui-content .ui-btn[class*="ui-icon-"]:after {\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>940.38971.30865.62105</string> </value>
<value> <string>941.1077.23453.57702</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -4790,7 +4795,7 @@ html .ui-panel .ui-content .ui-btn[class*="ui-icon-"]:after {\n
</tuple>
<state>
<tuple>
<float>1422462300.89</float>
<float>1424105668.83</float>
<string>GMT</string>
</tuple>
</state>
......
......@@ -127,7 +127,7 @@
</script>\n
</head>\n
<body>\n
<fieldset class="ui-controlgroup ui-corner-all">\n
<fieldset class="ui-controlgroup ui-corner-all ui-controlgroup-vertical">\n
<div class="ui-controlgroup-controls">\n
</div>\n
</fieldset>\n
......@@ -255,7 +255,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -269,7 +269,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>940.57847.24942.44731</string> </value>
<value> <string>940.61935.4199.24456</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -287,8 +287,8 @@
</tuple>
<state>
<tuple>
<float>1423579715.15</float>
<string>UTC</string>
<float>1424105340.28</float>
<string>GMT</string>
</tuple>
</state>
</object>
......
......@@ -169,6 +169,7 @@
})\n
.push(function (translated_htmls) {\n
var select_div,\n
wrapper_class_string,\n
div = document.createElement("div");\n
for (i = 0; i < translated_htmls.length; i += 1) {\n
div.innerHTML = translated_htmls[i];\n
......@@ -176,7 +177,21 @@
selects[i].innerHTML = select_div.innerHTML;\n
if (field_json.editable !== 1) {\n
selects[i].setAttribute(\'readonly\', \'readonly\');\n
selects[i].setAttribute(\'data-wrapper-class\', \'ui-state-readonly\');\n
wrapper_class_string = wrapper_class_string || "";\n
wrapper_class_string += \'ui-state-readonly \';\n
}\n
// XXX add first + last class, needs to be improved\n
if (i === 0) {\n
wrapper_class_string = wrapper_class_string || ""; \n
wrapper_class_string += \'ui-first-child\';\n
}\n
if (i === translated_htmls.length - 1) {\n
wrapper_class_string = wrapper_class_string || ""; \n
wrapper_class_string += \'ui-last-child\';\n
}\n
if (wrapper_class_string) {\n
selects[i].setAttribute(\'data-wrapper-class\', wrapper_class_string);\n
wrapper_class_string = undefined;\n
}\n
}\n
});\n
......@@ -315,7 +330,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -329,7 +344,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>940.58254.30018.38519</string> </value>
<value> <string>941.1091.39269.24183</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -347,8 +362,8 @@
</tuple>
<state>
<tuple>
<float>1423644326.02</float>
<string>UTC</string>
<float>1424106460.96</float>
<string>GMT</string>
</tuple>
</state>
</object>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment