Fixed table problem in class EventPage.
svn: r13134
This commit is contained in:
parent
a450ed2797
commit
c1a4897e66
@ -2002,6 +2002,9 @@ class EventPage(BasePage):
|
|||||||
with Html('table', class_='infolist eventlist') as table:
|
with Html('table', class_='infolist eventlist') as table:
|
||||||
eventdetail += table
|
eventdetail += table
|
||||||
|
|
||||||
|
tbody = Html('tbody')
|
||||||
|
table += tbody
|
||||||
|
|
||||||
# get event data
|
# get event data
|
||||||
event_row = self.get_event_data(event, evt_ref)
|
event_row = self.get_event_data(event, evt_ref)
|
||||||
|
|
||||||
@ -2015,26 +2018,25 @@ class EventPage(BasePage):
|
|||||||
Html('td', label, class_= 'ColumnAttribute', inline=True),
|
Html('td', label, class_= 'ColumnAttribute', inline=True),
|
||||||
Html('td', data, class_='ColumnValue', inline=True)
|
Html('td', data, class_='ColumnValue', inline=True)
|
||||||
)
|
)
|
||||||
table += trow
|
tbody += trow
|
||||||
|
|
||||||
url = self.report.build_url_fname_html(person.handle, 'ppl', self.up)
|
url = self.report.build_url_fname_html(person.handle, 'ppl', self.up)
|
||||||
person_hyper = self.person_link(url, person, True, person.gramps_id)
|
person_hyper = self.person_link(url, person, True, person.gramps_id)
|
||||||
|
|
||||||
trow = Html('tr') + (
|
trow = Html('tr') + (
|
||||||
Html('td', _('Person'), class_='ColumnAttribute', inline=True),
|
Html('td', _('Person'), class_='ColumnAttribute', inline=True),
|
||||||
Html('td', person_hyper, class_='ColumnValue', inline=True)
|
Html('td', person_hyper, class_='ColumnValue', inline=True)
|
||||||
)
|
)
|
||||||
table += trow
|
tbody += trow
|
||||||
|
|
||||||
# get notes section
|
# get notes section
|
||||||
notelist = event_row[5][1]
|
notelist = event_row[5][1]
|
||||||
if notelist:
|
if notelist:
|
||||||
eventdetail += self.display_note_list(notelist)
|
eventdetail += self.display_note_list(notelist)
|
||||||
|
|
||||||
# get attribute list
|
# get attribute list
|
||||||
attrib = event_row[6][1]
|
attrib = event_row[6][1]
|
||||||
if attrib:
|
if attrib:
|
||||||
eventdetail += self.display_attr_list(event)
|
eventdetail += self.display_attr_list(event)
|
||||||
|
|
||||||
# add clearline for proper styling
|
# add clearline for proper styling
|
||||||
# add footer section
|
# add footer section
|
||||||
|
Loading…
x
Reference in New Issue
Block a user