Skip to content
Snippets Groups Projects
Commit 11c500fd authored by Hermann's avatar Hermann
Browse files

WIP displaying additional fields

parent f1c10da3
No related branches found
No related tags found
1 merge request!52Display answers to additional_fields in Participants Table of Event
...@@ -88,12 +88,11 @@ class ParticipantsTable { ...@@ -88,12 +88,11 @@ class ParticipantsTable {
const hasPatchRights = data._links.self.methods.indexOf('PATCH') > -1; const hasPatchRights = data._links.self.methods.indexOf('PATCH') > -1;
return [ return [
m('div', { style: { width: '9em' } }, dateFormatter(data._created)), m('div', { style: { width: '9em' } }, dateFormatter(data._created)),
m( m('div', { style: { width: '16em' } }, [
'div', ...data.user ? [`${data.user.firstname} ${data.user.lastname}`, m('br')] : '',
{ style: { width: '12em' } }, data.email,
data.user ? `${data.user.firstname} ${data.user.lastname}` : '', ]),
), m('div', { style: { width: '9em' } }, data.additional_fields),
m('div', { style: { width: '9em' } }, data.email),
m('div', { style: { 'flex-grow': '100' } }), m('div', { style: { 'flex-grow': '100' } }),
hasPatchRights ? m('div', m(Button, { hasPatchRights ? m('div', m(Button, {
// Button to remove this eventsignup // Button to remove this eventsignup
...@@ -127,8 +126,8 @@ class ParticipantsTable { ...@@ -127,8 +126,8 @@ class ParticipantsTable {
clickOnRows: false, clickOnRows: false,
titles: [ titles: [
{ text: 'Date of Signup', width: '9em' }, { text: 'Date of Signup', width: '9em' },
{ text: 'Name', width: '18em' }, { text: 'Participant', width: '16em' },
{ text: 'Email', width: '9em' }, { text: 'Additional Info', width: '9em' },
], ],
}), }),
]), ]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment