feat: initial working version of service refs NOISSUE
This commit is contained in:
32
song_of_the_day/Pages/SuggestionHelpers.cshtml
Normal file
32
song_of_the_day/Pages/SuggestionHelpers.cshtml
Normal file
@@ -0,0 +1,32 @@
|
||||
@page
|
||||
@model SuggestionHelpersModel
|
||||
@{
|
||||
ViewData["Title"] = "Suggestion Helpers";
|
||||
}
|
||||
|
||||
<div class="text-left">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
@foreach (var helper in @Model.SuggestionHelpers)
|
||||
{
|
||||
var title = helper.Title; var description = helper.Description;
|
||||
<tr>
|
||||
<td>@title</td>
|
||||
<td>@description</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
<hr />
|
||||
<form method="post">
|
||||
<label asp-for="NewSuggestionTitle">Title</label>
|
||||
<input asp-for="NewSuggestionTitle" />
|
||||
<br />
|
||||
<label asp-for="NewSuggestionDescription">Description</label>
|
||||
<input asp-for="NewSuggestionDescription" />
|
||||
<br />
|
||||
<input type="submit" title="Submit" />
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user