2022-02-01 20:25:31 +00:00
|
|
|
@model EFB.Models.NavdataModel
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Welcome";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="row d-flex justify-content-center">
|
|
|
|
|
|
|
|
<div class="card-body col-md-6">
|
|
|
|
<div class="container jumbotron">
|
|
|
|
<h3>Navdata Lookup</h3>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<form asp-controller="Navdata" asp-action="Index">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" placeholder="Identifier" name="identifier" value="@TempData["identifier"]">
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-secondary">Search</button>
|
|
|
|
|
|
|
|
@{
|
|
|
|
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' />×
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@{
|
|
|
|
if(Model != null){
|
2022-02-07 20:25:28 +00:00
|
|
|
<div class="card-body bg-warning col-md-6">
|
|
|
|
<div class="container jumbotron">
|
|
|
|
<h3>@Model.Name (@Model.Type) [@Model.Id]</h3>
|
2022-02-01 20:25:31 +00:00
|
|
|
|
2022-02-07 20:25:28 +00:00
|
|
|
<br />
|
2022-02-01 20:25:31 +00:00
|
|
|
|
2022-02-07 20:25:28 +00:00
|
|
|
<h4>Latitude</h4>
|
|
|
|
@Model.Latitude
|
2022-02-01 20:25:31 +00:00
|
|
|
|
2022-02-07 20:25:28 +00:00
|
|
|
<h4>Longitude</h4>
|
|
|
|
@Model.Longitude
|
2022-02-01 20:25:31 +00:00
|
|
|
|
2022-02-07 20:25:28 +00:00
|
|
|
@{
|
|
|
|
if(Model.Frequency != null){
|
|
|
|
<h4>Frequency</h4>
|
|
|
|
@Model.Frequency
|
2022-02-01 20:25:31 +00:00
|
|
|
}
|
2022-02-07 20:25:28 +00:00
|
|
|
}
|
2022-02-01 20:25:31 +00:00
|
|
|
</div>
|
2022-02-07 20:25:28 +00:00
|
|
|
</div>
|
2022-02-01 20:25:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|