Advertisement
bebo231312312321

Untitled

Mar 21st, 2024
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <section class="create-stories">
  2.   <h2>Разкажи своята история</h2>
  3.  
  4.   <div class="background-stories"></div>
  5.   <section class="stories-create">
  6.     <form [formGroup]="storyForm" (ngSubmit)="onSubmit()">
  7.       <section class="first">
  8.         <div>
  9.           <label for="destination">Destination:</label>
  10.           <input id="destination" type="text" formControlName="destination">
  11.         </div>
  12.         <div>
  13.           <label for="title">Title:</label>
  14.           <input id="title" type="text" formControlName="title">
  15.         </div>
  16.         <div>
  17.           <label for="author">Author:</label>
  18.           <input id="author" type="text" formControlName="author">
  19.         </div>
  20.       </section>
  21.       <section class="second">
  22.         <div>
  23.           <label for="image">Image:</label>
  24.           <input id="image" type="file" (change)="onFileSelected($event)">
  25.           <img *ngIf="storyForm.value.image" [src]="storyForm.value.image" alt="Selected Image">
  26.         </div>
  27.         <div>
  28.           <label for="description">Description:</label>
  29.           <textarea id="description" formControlName="description"></textarea>
  30.         </div>
  31.         <button type="submit" [disabled]="!storyForm.valid">Submit Story</button>
  32.       </section>
  33.     </form>
  34.   </section>
  35. </section>
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement