Tried sending model back to controller but now unsure of how to do so

This commit is contained in:
Luke Else 2022-02-11 20:55:53 +00:00
parent a4e7a30a9f
commit 39cc7caef7

View File

@ -6,10 +6,6 @@
<div class="row d-flex justify-content-center"> <div class="row d-flex justify-content-center">
<div class="card-body col-md-4"> <div class="card-body col-md-4">
<div class="container jumbotron"> <div class="container jumbotron">
<h3>Chart Lookup</h3>
<br />
<br />
<form asp-controller="Charts" asp-action="Index"> <form asp-controller="Charts" asp-action="Index">
<div class="form-group"> <div class="form-group">
@ -30,32 +26,22 @@
} }
} }
</form> </form>
</div>
<div class="container jumbotron">
<h3>Charts for: @Model.ICAO</h3>
<br /> <h4>Charts for: @Model.ICAO</h4>
<br />
<form asp-controller="Charts" asp-action="Index">
<div class="form-group">
<input type="text" class="form-control" placeholder="ICAO Code" name="ICAO" value="@TempData["ICAO"]">
</div>
<button type="submit" class="btn btn-secondary">Search</button>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle bg-dark" type="button" data-toggle="dropdown">Dropdown Example
<span class="caret"></span></button>
<ul class="dropdown-menu">
@{ @{
if (TempData["Error"] != null) foreach (var item in Model.Approach)
{//If an error has been flagged, information will be displayed to the user {
<li><button class="bg-dark" runat="server" onclick=""></button></li>
<br /> }
<br /> }
</ul>
<div class="alert alert-danger">
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />&times;
</div> </div>
}
}
</form>
</div> </div>
</div> </div>