This commit is contained in:
2023-12-23 17:33:06 +03:00
parent 49f3a2be71
commit 64c4bdae31
9 changed files with 138 additions and 184 deletions

View File

@ -1,5 +1,5 @@
import React, { useRef, useState } from 'react';
import { HttpApiMethods } from '../fetchUtils/FetchUtils';
import { HttpApiMethods } from '../utils/FetchUtils';
const PostForm = () => {
@ -24,8 +24,8 @@ const PostForm = () => {
<div>
<h2>Post</h2>
<div>{dataIsLoad ? "ДАнные успешно загрузилисб" : ""}</div>
<form ref={formRef} action='https://cyberbloom.zetcraft.ru/api/meetings'>
<input type="text" placeholder='name' name='title'/>
<form ref={formRef} action=''>
<input type="text" placeholder='title' name='title'/>
<input type="text" placeholder='time' name='time'/>
<input type="text" placeholder='theme' name='theme'/>
<input type="text" placeholder='speakerName' name='speakerName'/>
@ -33,10 +33,12 @@ const PostForm = () => {
<input type="file" placeholder='placeImages' name='placeImages'/>
<input type="text" placeholder='splecializations' name='splecializations'/>
<input type="text" placeholder='speakerEmail' name='speakerEmail'/>
<input type="text" placeholder='tags' name='tags'/>
<input type="text" placeholder='SpeakerTelephone' name='speakerTelephone'/>
<input type="text" placeholder='type' name='type'/>
<input type="text" placeholder='videoUrl' name='videoUrl'/>
<input type="text" placeholder='SpeakerTelephone' name='speakerTelephone'/>
<input type="text" placeholder='tags' name='tags'/>
<input type="text" placeholder='urls' name='urls'/>
<input type="text" placeholder='placeAdress' name='placeAdress'/>
<input type="text" placeholder='duration' name='duration'/>
<button onClick={post}>Create</button>
</form>
</div>