Commit 6fbd8e96 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the views.

parent 3c7c0c13
......@@ -113,11 +113,10 @@ def compare_publications():
if is_foreign_field(field):
k_tablename, k_fieldname, k_id = get_foreign_field(field)
fieldname = k_fieldname
value1 = db[k_tablename][value1][k_fieldname]
value2 = db[k_tablename][value2][k_fieldname]
data.append([T(fieldname), value1, value2])
data.append([T(field.label), value1, value2])
# add the ids as the first data
data.insert(0, idrow)
......
......@@ -210,7 +210,7 @@
text: trCollection,
dataIndex: 'title',
flex: 4,
renderer: toURL,
renderer: rTitle,
summaryRenderer: rTotal
},
{text: trFound, dataIndex: 'found', flex: 1, summaryType: 'sum'},
......@@ -221,6 +221,7 @@
{text: trLost, dataIndex: 'lost', flex: 1, summaryType: 'sum'},
{text: trError, dataIndex: 'error', flex: 1}
],
collapsible: true,
features: [{ftype:'summary'}],
forceFit: true,
padding: "0 40 20 30",
......
......@@ -198,6 +198,7 @@
{text: trValidated, dataIndex: 'validated', flex: 1, summaryType: 'sum'},
{text: trInvalid, dataIndex: 'error', flex: 1, summaryType: 'sum'}
],
collapsible: true,
forceFit: true,
features: [{ftype:'summary'}],
padding: "0 40 20 30",
......@@ -215,7 +216,7 @@
{text: trTitle, dataIndex: 'title', flex: 3},
{text: trError, dataIndex: 'txt', flex: 1, hidden: true},
{text: trId, dataIndex: 'id', flex: 0.2},
{text: trDuplicate, dataIndex: 'ids', flex: 0.2, hidden: true, renderer: rDuplicate},
{text: trDuplicate, dataIndex: 'ids', flex: 0.3, renderer: rDuplicate},
{text: trCategory, dataIndex: 'category', flex: 0.2, hidden: true},
{text: trProject, dataIndex: 'project', flex: 0.5, hidden: true},
{text: trYear, dataIndex: 'year', flex: 0.2, hidden: true}
......
......@@ -108,11 +108,12 @@
{{=T("Compare publications")}}
</p>
<p style="font-size: 10px; margin-left: 10px;">
<div id="grid-{{=divgrid}}" style="padding: 10px 0px 0px 40px"></div>
<p style="font-size: 8px; margin-top: 0px; margin-left: 40px; margin-bottom: 30px;">
{{=T("Fields with identical value are not listed.")}}
</p>
<div id="grid-{{=divgrid}}" style="padding: 10px 0px 20px 40px"></div>
{{
#--------------------------------------------------------------------------
......
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