Open avishkar58 opened 4 years ago
Hi, Im a little confused with the instructions, so first of all
event.service
create method requires this: export function create(event) { return axios .post( baseUrl +
/api/v1/event, { name: event.name, description: event.description, start_date: event.start_date, end_date: event.end_date, key: event.key, organisation_id: event.organisation_id, email_from: event.email_from, url: event.url, application_open: event.application_open, application_close: event.application_close, review_open: event.review_open, review_close: event.review_close, selection_open: event.selection_open, selection_close: event.selection_close, offer_open: event.offer_open, offer_close: event.offer_close, registration_open: event.registration_open, registration_close: event.registration_close }, { headers: authHeader() } )
I hope im not missing anything obvious?
Add Event Button: <NavLink to="/eventConfig" >
appears to need an eventKey, there is no event key yet set on the Home page, am I missing something ?
Hi Jean,
You're meant to create the event... If there is any field that is required like the event key, please add an input for the user to enter it, sorry for not making that clear in the issue.
On Thu, 26 Nov 2020, 11:46 Jean Charl Greeff, notifications@github.com wrote:
Add Event Button: appears to need an eventKey, there is no event key yet set on the Home page, am I missing something ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/deep-learning-indaba/Baobab/issues/816#issuecomment-734252114, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFV53EATFUJIIAGHW7YNDTSRY52NANCNFSM4TOUSX6Q .
Depends on #773
Update the EventConfig component to support creating a new event. If no event is passed in
this.props.event
, this page should enter a "create" mode, which needs the following featuresthis.props.organisation.languages
. Prompt the user to select the languages supported by the Event by adding a checkbox for each language. (For example, the organisation might support English and French, so there will be 2 checkboxes, and the user could select only English)name
anddescription
fields should have an input for each supported language (so if English and French were selected, then bothname
anddescription
should have an "en" and an "fr" input)create
method of the events service to save the new event.