|
@@ -13,7 +13,7 @@ const EventReduxForm = ({
|
|
}) => {
|
|
}) => {
|
|
|
|
|
|
const submit = value => {
|
|
const submit = value => {
|
|
- // console.log('submit values', value)
|
|
|
|
|
|
+ console.log('submit values', value)
|
|
postNewEvent(value)
|
|
postNewEvent(value)
|
|
};
|
|
};
|
|
|
|
|
|
@@ -57,8 +57,8 @@ const EventReduxForm = ({
|
|
{console.log('eventFormInitialValue', eventFormInitialValue)}
|
|
{console.log('eventFormInitialValue', eventFormInitialValue)}
|
|
|
|
|
|
<img className="event-form__picture" alt="Event Bunner" src={eventFormInitialValue.mainBannerPicture} />
|
|
<img className="event-form__picture" alt="Event Bunner" src={eventFormInitialValue.mainBannerPicture} />
|
|
- <Field name="mainBannerPicture" className="input-box__wide" label="Main Banner Picture" component={customInput} />
|
|
|
|
- <Field name="title" label="Event Title" className="input-box__wide" required component={customInput} />
|
|
|
|
|
|
+ <Field name="mainBannerPicture" className="input-box -wide" label="Main Banner Picture" component={customInput} />
|
|
|
|
+ <Field name="title" label="Event Title" className="input-box -wide" required component={customInput} />
|
|
<Field name="eventType" label="Event Type" required component={customSelect} >
|
|
<Field name="eventType" label="Event Type" required component={customSelect} >
|
|
{eventTypes.map(elem => <option key={elem.id} value={elem.optionName}>{elem.optionName}</option>)}
|
|
{eventTypes.map(elem => <option key={elem.id} value={elem.optionName}>{elem.optionName}</option>)}
|
|
</Field>
|
|
</Field>
|
|
@@ -66,8 +66,8 @@ const EventReduxForm = ({
|
|
<Field name="country" label="Country" required component={customInput} />
|
|
<Field name="country" label="Country" required component={customInput} />
|
|
<Field name="city" label="City" required component={customInput} />
|
|
<Field name="city" label="City" required component={customInput} />
|
|
<Field name="overview" label="Overview" rows="10" placeholder='Enter event overview' component={customTextarea} />
|
|
<Field name="overview" label="Overview" rows="10" placeholder='Enter event overview' component={customTextarea} />
|
|
- <Field name="contentPicture" label="Content Picture" className="input-box__wide" placeholder='Enter picture url' component={customInput} />
|
|
|
|
- <Field name="contentVideo" label="Content Video" className="input-box__wide" placeholder='Enter video url' component={customInput} />
|
|
|
|
|
|
+ <Field name="contentPicture" label="Content Picture" className="input-box -wide" placeholder='Enter picture url' component={customInput} />
|
|
|
|
+ <Field name="contentVideo" label="Content Video" className="input-box -wide" placeholder='Enter video url' component={customInput} />
|
|
<Field name="marathoneDistancePrice" label="Marathone Distance Price" component={customInput} />
|
|
<Field name="marathoneDistancePrice" label="Marathone Distance Price" component={customInput} />
|
|
<Field name="halfmarathoneDistancePrice" label="Halfmarathone Distance Price" component={customInput} />
|
|
<Field name="halfmarathoneDistancePrice" label="Halfmarathone Distance Price" component={customInput} />
|
|
<Field name="ageLimit" label="Age Limit" component={customTextarea} />
|
|
<Field name="ageLimit" label="Age Limit" component={customTextarea} />
|
|
@@ -77,10 +77,10 @@ const EventReduxForm = ({
|
|
<Field name="equipmentStorage" label="Equipment Storage" component={customTextarea} />
|
|
<Field name="equipmentStorage" label="Equipment Storage" component={customTextarea} />
|
|
<Field name="parking" label="Parking" component={customTextarea} />
|
|
<Field name="parking" label="Parking" component={customTextarea} />
|
|
<Field name="refreshments" label="Refreshments" component={customTextarea} />
|
|
<Field name="refreshments" label="Refreshments" component={customTextarea} />
|
|
- <Field name="map" label="Map" className="input-box__wide" placeholder='Enter picture url' component={customInput} />
|
|
|
|
|
|
+ <Field name="map" label="Map" className="input-box -wide" placeholder='Enter picture url' component={customInput} />
|
|
|
|
|
|
<div className="event-form__control-box">
|
|
<div className="event-form__control-box">
|
|
- <button className="event-form__submit-btn" >Add Event</button>
|
|
|
|
|
|
+ <button className="event-form__submit-btn">Add Event</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
);
|
|
);
|