react-europe / react-europe-mobile

Mobile app for the React Europe conference
15 stars 15 forks source link

add edit event form for admin #64

Closed patcito closed 4 years ago

patcito commented 4 years ago

When user click on Menu, add a "Edit Event" section below Editions if admin is connected. When user clicks on it, it should show a page with top tabs (similar to schedule top tabs). The tabs should be:

It should show a for on each tab to edit some of the even properties. Here is the breakdown of the query to execute:

mutation {
  updateEvent(id: `171` token: token

   ## Main tab form
    name: "" # input text
    tagLine: "" # multiline input text
    organizers: "" # multiline input text
    description: "" # multiline input text
    startDate: "" # date + time select
    endDate: "" # date + time select
    cocUrl: "" # input text
    organizerEmail: "" # input text email

    ## Details tab
    customDomain: "" # input text
    sponsorPdfUrl: "" # input text
    speakersLegend: "" # multiline input text
    scheduleLegend: "" # multiline input text
    ticketsLegend: "" # multiline input text
    gettingThereLegend: "" # multiline input text
    copyrightsLegend: "" # multiline input text
    hotelsList: "" # multiline input text

    # Call for paper tab
    cfpRules: "" # multiline input text
    cfpForceGithub: "" # boolean checkbox
    cfpLengthLegend: "" # numeral input text
    cfpStartDate: "" # date + time select
    cfpEndDate: "" # date + time select

    # Social tab
    twitterHandle: "" # input text
    facebookUrl: "" # input text
    websiteUrl: "" # input text

    # invoice tab
    invoiceAddress: "" # multiline input text
    invoiceVatNumber: "" # multiline input text
    invoiceCompanyName: "" # multiline input text

  ){
    name
    tagLine
    description
  }
}