-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christophe Gagnier
committed
Oct 6, 2015
1 parent
422b027
commit bbb2ce1
Showing
5 changed files
with
95 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,58 @@ | ||
@model LanAdeptData.Model.User | ||
|
||
@{ | ||
ViewBag.Title = "Details"; | ||
ViewBag.Title = "Détails d'un utilisateur"; | ||
ViewBag.Sidebar = "_Sidebar_User"; | ||
} | ||
|
||
<h2>Details</h2> | ||
<h2> | ||
Détails - @Model.CompleteName | ||
<div class="pull-right"> | ||
@Html.ActionLink("Modifier", "Edit", new { id = Model.UserID }, new { @class = "btn btn-primary" }) | ||
@Html.ActionLink("Retour", "Index", null, new { @class = "btn btn-default" }) | ||
</div> | ||
|
||
</h2> | ||
<hr /> | ||
|
||
@if (!string.IsNullOrWhiteSpace(TempData["Error"] as string)) | ||
{ | ||
<div class="alert alert-danger" role="alert"> | ||
@Html.Raw(TempData["Error"]) | ||
</div> | ||
} | ||
@if (!string.IsNullOrWhiteSpace(TempData["Success"] as string)) | ||
{ | ||
<div class="alert alert-success" role="alert"> | ||
@Html.Raw(TempData["Success"]) | ||
</div> | ||
} | ||
|
||
<div> | ||
<h4>User</h4> | ||
<hr /> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
@Html.DisplayNameFor(model => model.Role.Name) | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.Role.Name) | ||
</dd> | ||
|
||
<dt> | ||
@Html.DisplayNameFor(model => model.Email) | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.Email) | ||
</dd> | ||
|
||
<dt> | ||
@Html.DisplayNameFor(model => model.CompleteName) | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.CompleteName) | ||
</dd> | ||
|
||
</dl> | ||
<dl class="dl-horizontal"> | ||
|
||
<dt> | ||
Nom complet | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.CompleteName) | ||
</dd> | ||
|
||
<dt> | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.Email) | ||
</dd> | ||
|
||
<dt> | ||
Rôle | ||
</dt> | ||
|
||
<dd> | ||
@Html.DisplayFor(model => model.Role.Name) | ||
</dd> | ||
</dl> | ||
</div> | ||
<p> | ||
@Html.ActionLink("Edit", "Edit", new { id = Model.UserID }) | | ||
@Html.ActionLink("Back to List", "Index") | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters