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="dropdown">
<div class="form-group"> <button class="btn btn-primary dropdown-toggle bg-dark" type="button" data-toggle="dropdown">Dropdown Example
<input type="text" class="form-control" placeholder="ICAO Code" name="ICAO" value="@TempData["ICAO"]"> <span class="caret"></span></button>
</div> <ul class="dropdown-menu">
<button type="submit" class="btn btn-secondary">Search</button> @{
foreach (var item in Model.Approach)
{
<li><button class="bg-dark" runat="server" onclick=""></button></li>
@{ }
if (TempData["Error"] != null)
{//If an error has been flagged, information will be displayed to the user
<br />
<br />
<div class="alert alert-danger">
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />&times;
</div>
} }
} </ul>
</form> </div>
</div> </div>
</div> </div>