add-boat.component.html 589 B

12345678910111213141516171819202122
  1. <div style="text-align: center;">
  2. <h2>REGISTER NEW BOAT</h2>
  3. </div>
  4. <form (submit)="addBoat()" #myForm="ngForm">
  5. <label for="name">Name:</label>
  6. <input type="text"
  7. id="name"
  8. name="name" [(ngModel)]="formData.name" required>
  9. <label for="capacity">Capacity:</label>
  10. <input type="number"
  11. id="capacity"
  12. name="capacity" [(ngModel)]="formData.capacity" required>
  13. <label for="cost">Cost:</label>
  14. <input type="number"
  15. id="cost"
  16. name="cost" [(ngModel)]="formData.cost" required>
  17. <input type="submit" value="Submit">
  18. </form>