Design changes
This commit is contained in:
@@ -3,11 +3,24 @@
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome, @User.Identity.Name</h1>
|
||||
<br />
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Cars" asp-action="Index">Manage cars</a>
|
||||
@if (this.User.IsInRole("Admin"))
|
||||
@if (this.User.Identity.Name != null)
|
||||
{
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Rents" asp-action="Index">Manage rents</a>
|
||||
<h1 class="display-4">Welcome, @User.Identity.Name</h1>
|
||||
<br />
|
||||
@if (this.User.IsInRole("Admin"))
|
||||
{
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Cars" asp-action="Index">Manage cars</a>
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Rents" asp-action="Index">Manage rents</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Cars" asp-action="Index">See all cars</a>
|
||||
<a type="button" class="btn btn-primary" asp-area="" asp-controller="Rents" asp-action="Index">Rent a car</a>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<h1>Welcome to LuminousCars</h1>
|
||||
<h2>Please register or login to access the system.</h2>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user