Commit ba6e18d2 authored by Roque's avatar Roque

erp5_web_project_ui: new styles for project home page boxes

parent 4f2a4824
...@@ -5,6 +5,7 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project- ...@@ -5,6 +5,7 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-
} }
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box { div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box {
width: 32%;
margin-bottom: 10px; margin-bottom: 10px;
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
...@@ -21,11 +22,10 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] a { ...@@ -21,11 +22,10 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] a {
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-info { div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-info {
display: inline-flex; display: inline-flex;
width: 100%
} }
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-info .left { div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-info .left {
width: 35%; width: 100%;
} }
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-line { div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-line {
...@@ -44,10 +44,6 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project- ...@@ -44,10 +44,6 @@ div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-
color: #767676; color: #767676;
} }
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-line.field span {
margin-left: 15px;
}
div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-title { div[data-gadget-url$="gadget_erp5_page_project_front_page.html"] .front-project-list .project-box .project-title {
color: #19535F; color: #19535F;
font-weight: normal; font-weight: normal;
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.28167.48461.41762</string> </value> <value> <string>982.28486.62527.38502</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1583839349.7</float> <float>1583858398.3</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
query: project_query, query: project_query,
limit: QUERY_LIMIT, limit: QUERY_LIMIT,
select_list: ['title', 'source_decision_title'], select_list: ['title', 'source_decision_title'],
sort_on: [["modification_date", "ascending"]] sort_on: [["title", "ascending"]]
}) })
.push(function (result) { .push(function (result) {
return result.data.rows; return result.data.rows;
...@@ -251,18 +251,21 @@ ...@@ -251,18 +251,21 @@
left_info_div = document.createElement('div'), left_info_div = document.createElement('div'),
right_div = document.createElement('div'), right_div = document.createElement('div'),
right_line_div = document.createElement('div'), right_line_div = document.createElement('div'),
supervisor_line_div = document.createElement('div'), supervisor_field_div = document.createElement('div'),
supervisor_value_div = document.createElement('div'),
project_link = document.createElement('a'), project_link = document.createElement('a'),
forum_link = document.createElement('a'), forum_link = document.createElement('a'),
supervisor_field_label = document.createElement('label'), supervisor_field_label = document.createElement('label'),
supervisor_value_span = document.createElement('span'); supervisor_value_span = document.createElement('span');
if (supervisor) { if (supervisor) {
supervisor_line_div.classList.add("field", "project-line"); supervisor_field_div.classList.add("field", "project-line");
supervisor_value_div.classList.add("field", "project-line");
supervisor_field_label.innerHTML = SUPERVISOR_FIELD_TITLE; supervisor_field_label.innerHTML = SUPERVISOR_FIELD_TITLE;
supervisor_value_span.innerHTML = supervisor; supervisor_value_span.innerHTML = supervisor;
supervisor_line_div.appendChild(supervisor_field_label); supervisor_field_div.appendChild(supervisor_field_label);
supervisor_line_div.appendChild(supervisor_value_span); supervisor_value_div.appendChild(supervisor_value_span);
right_div.appendChild(supervisor_line_div); right_div.appendChild(supervisor_field_div);
right_div.appendChild(supervisor_value_div);
} }
box_div.classList.add("project-box"); box_div.classList.add("project-box");
title_div.classList.add("project-title"); title_div.classList.add("project-title");
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.28456.11875.61474</string> </value> <value> <string>982.28483.44287.48213</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1583856506.94</float> <float>1583858209.78</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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