Tried sending model back to controller but now unsure of how to do so
This commit is contained in:
parent
a4e7a30a9f
commit
39cc7caef7
@ -6,10 +6,6 @@
|
||||
<div class="row d-flex justify-content-center">
|
||||
<div class="card-body col-md-4">
|
||||
<div class="container jumbotron">
|
||||
<h3>Chart Lookup</h3>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<form asp-controller="Charts" asp-action="Index">
|
||||
<div class="form-group">
|
||||
@ -30,32 +26,22 @@
|
||||
}
|
||||
}
|
||||
</form>
|
||||
</div>
|
||||
<div class="container jumbotron">
|
||||
<h3>Charts for: @Model.ICAO</h3>
|
||||
|
||||
<br />
|
||||
<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>
|
||||
<h4>Charts for: @Model.ICAO</h4>
|
||||
|
||||
<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)
|
||||
{//If an error has been flagged, information will be displayed to the user
|
||||
foreach (var item in Model.Approach)
|
||||
{
|
||||
<li><button class="bg-dark" runat="server" onclick=""></button></li>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div class="alert alert-danger">
|
||||
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />×
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user