Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class EditEvent extends React.Component{
- EventUpdate(e){
- e.preventDefault();
- console.log('Data submited for updated');
- }
- render(){
- console.log(this.props.match.params.id);
- Meteor.subscribe('allowedData');
- let updateData = Events.findOne({_id:this.props.match.params.id});
- console.log('Update 1', updateData);
- return(
- <div>
- <form className="upload-event-from" onSubmit={this.EventUpdate.bind(this)}>
- <div className="form-group">
- <input
- value=""
- type="text"
- className="form-control"
- id="event_title"
- placeholder="Event Title"
- name="title"
- />
- <span className="error-message">Error Message</span>
- </div>
- <div className="form-group fg-icon">
- <label>Upload Video</label>
- <input type="file" className="form-control-file form-control" id="exampleFormControlFile1" id="videoupload" />
- <img src="/img/icons/video.png" alt="Video" />
- </div>
- <div className="user-type">
- Event Status
- </div>
- <span id="message" ></span>
- <center>
- <button type="submit" className="btn app-btn">Update</button>
- </center>
- </form>
- </div>
- );
- }
- }
Add Comment
Please, Sign In to add comment