Skip to content
Snippets Groups Projects
Commit dfb91914 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Polish the template for article.

parent 6b1c7d7a
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,11 @@ formModifier.merge_fields('conference_title', ...@@ -90,6 +90,11 @@ formModifier.merge_fields('conference_title',
title=T('Conference'), title=T('Conference'),
flex=1) flex=1)
formModifier.merge_fields('report_numbers',
'id_reports',
dbui.Spacer(height=220),
title=T('Report'),
flex=1)
formModifier.merge_fields('authors_cppm', formModifier.merge_fields('authors_cppm',
'id_teams', 'id_teams',
...@@ -99,11 +104,6 @@ formModifier.merge_fields('authors_cppm', ...@@ -99,11 +104,6 @@ formModifier.merge_fields('authors_cppm',
title='CPPM', title='CPPM',
flex=1) flex=1)
formModifier.merge_fields('report_numbers',
'id_reports',
dbui.Spacer(height=220),
title=T('Report'),
flex=1)
# #
# Organize fieldSet within a TabPanel embedded in the publication form # Organize fieldSet within a TabPanel embedded in the publication form
...@@ -129,14 +129,13 @@ formModifier.configure(buttonAlign='right', ...@@ -129,14 +129,13 @@ formModifier.configure(buttonAlign='right',
tpl = ['<b>{PublicationsTitle}</b><br>', tpl = ['<b>{PublicationsTitle}</b><br>',
'{PublicationsAuthors}', '{PublicationsAuthors}',
'<tpl if="PublicationsId_collaborations &gt; 1">, {CollaborationsCollaboration}</tpl>', '<tpl if="PublicationsId_collaborations &gt; 1">, {CollaborationsCollaboration}</tpl>',
'<tpl if="PublicationsDoi"><br>{PublicationsDoi}</tpl>', '<tpl if="PublicationsDoi">, {PublicationsDoi}</tpl>',
'<tpl if="PublicationsId_publishers &gt; 1"><br>{PublishersAbbreviation}', '<tpl if="PublicationsId_publishers &gt; 1">, {PublishersAbbreviation}',
'<tpl if="PublicationsVolume"> {PublicationsVolume}</tpl>', '<tpl if="PublicationsVolume"> {PublicationsVolume}</tpl>',
'<tpl if="PublicationsYear"> ({PublicationsYear}) </tpl>', '<tpl if="PublicationsYear"> ({PublicationsYear}) </tpl>',
'<tpl if="PublicationsFirst_page"> {PublicationsFirst_page}</tpl>', '<tpl if="PublicationsFirst_page"> {PublicationsFirst_page}</tpl>',
'<tpl if="PublicationsLast_page">-{PublicationsLast_page}</tpl>', '<tpl if="PublicationsLast_page">-{PublicationsLast_page}</tpl>',
'</tpl>', '</tpl>',
'<tpl if="PublicationsE_print"><br>{PublicationsE_print}</tpl>',
'<tpl if="PublicationsConference_title"><br><br>{PublicationsConference_title}', '<tpl if="PublicationsConference_title"><br><br>{PublicationsConference_title}',
'<tpl if="PublicationsConference_town"><br>{PublicationsConference_town}</tpl>', '<tpl if="PublicationsConference_town"><br>{PublicationsConference_town}</tpl>',
'<tpl if="CountriesCountry">, {CountriesCountry}</tpl>', '<tpl if="CountriesCountry">, {CountriesCountry}</tpl>',
...@@ -148,8 +147,7 @@ tpl = ['<b>{PublicationsTitle}</b><br>', ...@@ -148,8 +147,7 @@ tpl = ['<b>{PublicationsTitle}</b><br>',
'<tpl if="PublicationsReport_numbers"><br><br>', '<tpl if="PublicationsReport_numbers"><br><br>',
'<tpl if="PublicationsId_reports &gt; 1">{ReportsType}, </tpl>', '<tpl if="PublicationsId_reports &gt; 1">{ReportsType}, </tpl>',
'{PublicationsReport_numbers}', '{PublicationsReport_numbers}',
'</tpl>', '</tpl>'
'<br>Auteurs CPPM : {PublicationsAuthors_cppm}'
] ]
gridModifier = dbui.GridModifier('publications') gridModifier = dbui.GridModifier('publications')
...@@ -161,7 +159,6 @@ gridModifier.merge_columns('title', ...@@ -161,7 +159,6 @@ gridModifier.merge_columns('title',
'volume', 'volume',
'first_page', 'first_page',
'last_page', 'last_page',
'e_print',
'conference_title', 'conference_title',
'conference_url', 'conference_url',
'conference_start', 'conference_start',
...@@ -171,13 +168,14 @@ gridModifier.merge_columns('title', ...@@ -171,13 +168,14 @@ gridModifier.merge_columns('title',
'conference_speaker', 'conference_speaker',
'report_numbers', 'report_numbers',
'id_reports', 'id_reports',
'authors_cppm',
autohide=True, autohide=True,
header=T('Publication'), header=T('Publication'),
position=0, position=0,
tpl=tpl, tpl=tpl,
width=700) width=700)
gridModifier.hide_columns('authors_cppm',
'e_print')
# #
# Setup a filter panel for the publication grid # Setup a filter panel for the publication grid
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment