Commit 16a5be11 authored by Roque's avatar Roque

erp5_web_project_ui: new styles for project home page boxes

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