Advertisement
marto9119

Create View

Nov 18th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | Source Code | 0 0
  1. @model ReservationViewModel
  2.  
  3. <h2>Създаване на резервация</h2>
  4.  
  5. <form asp-action="Create">
  6.     <div class="form-group">
  7.         <label for="CustomerName">Име на клиент</label>
  8.         <input asp-for="UserId" class="form-control" />
  9.     </div>
  10.     <div class="form-group">
  11.         <label for="ReservationDate">Дата на резервацията</label>
  12.         <input asp-for="ReservationDate" class="form-control" placeholder="dd-MM-yyyy HH:mm" />
  13.     </div>
  14.     <div class="form-group">
  15.         <label for="NumberOfGuests">Брой гости</label>
  16.         <input asp-for="NumberOfGuests" class="form-control" />
  17.     </div>
  18.     <div class="form-group">
  19.         <label for="TableId">Маса</label>
  20.         <select asp-for="TableId" class="form-control" asp-items="ViewBag.Tables"></select>
  21.     </div>
  22.     <button type="submit" class="btn btn-primary">Създаване</button>
  23. </form>
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement