You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 837B

12345678910111213141516171819202122232425262728293031
  1. @{
  2. Layout = "~/Views/Shared/_Layout.cshtml";
  3. }
  4. @using MVCTemplate.Business.Infrastructure
  5. @model MessageModel
  6. <div class="text-center">
  7. <form method="post" asp-controller="Home" asp-action="CreateMessage">
  8. <input asp-for="Text" />
  9. <br>
  10. <input type="radio" asp-for="ChosenPeriod" value="@PeriodOfValidity.ONE_TIME" /> ONE TIME
  11. <br>
  12. <input type="radio" asp-for="ChosenPeriod" value="@PeriodOfValidity.ONE_HOUR" /> ONE HOUR
  13. <br>
  14. <input type="radio" asp-for="ChosenPeriod" value="@PeriodOfValidity.ONE_DAY" /> ONE DAY
  15. <br>
  16. <input type="radio" asp-for="ChosenPeriod" value="@PeriodOfValidity.ONE_WEEK" /> SEVEN DAYS
  17. <br>
  18. <button class = " btn btn-light" type="submit">Send</button>
  19. </form>
  20. <br>
  21. </div>