mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
user/org view pages
This commit is contained in:
@ -74,25 +74,7 @@
|
||||
<h1>Organization <small>@Model.Organization.Name</small></h1>
|
||||
|
||||
<h2>Information</h2>
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">Id</dt>
|
||||
<dd class="col-sm-10"><code>@Model.Organization.Id</code></dd>
|
||||
|
||||
<dt class="col-sm-2">Users</dt>
|
||||
<dd class="col-sm-10">@Model.UserCount</dd>
|
||||
|
||||
<dt class="col-sm-2">Owners</dt>
|
||||
<dd class="col-sm-10">@(string.IsNullOrWhiteSpace(Model.Owners) ? "None" : Model.Owners)</dd>
|
||||
|
||||
<dt class="col-sm-2">Admins</dt>
|
||||
<dd class="col-sm-10">@(string.IsNullOrWhiteSpace(Model.Admins) ? "None" : Model.Admins)</dd>
|
||||
|
||||
<dt class="col-sm-2">Created</dt>
|
||||
<dd class="col-sm-10">@Model.Organization.CreationDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Modified</dt>
|
||||
<dd class="col-sm-10">@Model.Organization.RevisionDate.ToString()</dd>
|
||||
</dl>
|
||||
@Html.Partial("_ViewInformation", Model)
|
||||
<form method="post" id="edit-form">
|
||||
<h2>General</h2>
|
||||
<div class="row">
|
||||
|
13
src/Admin/Views/Organizations/View.cshtml
Normal file
13
src/Admin/Views/Organizations/View.cshtml
Normal file
@ -0,0 +1,13 @@
|
||||
@model OrganizationViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Organization: " + Model.Organization.Name;
|
||||
}
|
||||
|
||||
<h1>Organization <small>@Model.Organization.Name</small></h1>
|
||||
|
||||
<h2>Information</h2>
|
||||
@Html.Partial("_ViewInformation", Model)
|
||||
<form asp-action="Delete" asp-route-id="@Model.Organization.Id"
|
||||
onsubmit="return confirm('Are you sure you want to delete this organization (@Model.Organization.Name)?')">
|
||||
<button class="btn btn-danger" type="submit">Delete</button>
|
||||
</form>
|
20
src/Admin/Views/Organizations/_ViewInformation.cshtml
Normal file
20
src/Admin/Views/Organizations/_ViewInformation.cshtml
Normal file
@ -0,0 +1,20 @@
|
||||
@model OrganizationViewModel
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">Id</dt>
|
||||
<dd class="col-sm-10"><code>@Model.Organization.Id</code></dd>
|
||||
|
||||
<dt class="col-sm-2">Users</dt>
|
||||
<dd class="col-sm-10">@Model.UserCount</dd>
|
||||
|
||||
<dt class="col-sm-2">Owners</dt>
|
||||
<dd class="col-sm-10">@(string.IsNullOrWhiteSpace(Model.Owners) ? "None" : Model.Owners)</dd>
|
||||
|
||||
<dt class="col-sm-2">Admins</dt>
|
||||
<dd class="col-sm-10">@(string.IsNullOrWhiteSpace(Model.Admins) ? "None" : Model.Admins)</dd>
|
||||
|
||||
<dt class="col-sm-2">Created</dt>
|
||||
<dd class="col-sm-10">@Model.Organization.CreationDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Modified</dt>
|
||||
<dd class="col-sm-10">@Model.Organization.RevisionDate.ToString()</dd>
|
||||
</dl>
|
@ -57,22 +57,7 @@
|
||||
<h1>User <small>@Model.User.Email</small></h1>
|
||||
|
||||
<h2>Information</h2>
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">Id</dt>
|
||||
<dd class="col-sm-10"><code>@Model.User.Id</code></dd>
|
||||
|
||||
<dt class="col-sm-2">Items</dt>
|
||||
<dd class="col-sm-10">@Model.CipherCount</dd>
|
||||
|
||||
<dt class="col-sm-2">Created</dt>
|
||||
<dd class="col-sm-10">@Model.User.CreationDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Modified</dt>
|
||||
<dd class="col-sm-10">@Model.User.RevisionDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Account Modified</dt>
|
||||
<dd class="col-sm-10">@Model.User.AccountRevisionDate.ToString()</dd>
|
||||
</dl>
|
||||
@Html.Partial("_ViewInformation", Model)
|
||||
<form method="post" id="edit-form">
|
||||
<h2>General</h2>
|
||||
<div class="row">
|
||||
|
13
src/Admin/Views/Users/View.cshtml
Normal file
13
src/Admin/Views/Users/View.cshtml
Normal file
@ -0,0 +1,13 @@
|
||||
@model UserViewModel
|
||||
@{
|
||||
ViewData["Title"] = "User: " + Model.User.Email;
|
||||
}
|
||||
|
||||
<h1>User <small>@Model.User.Email</small></h1>
|
||||
|
||||
<h2>Information</h2>
|
||||
@Html.Partial("_ViewInformation", Model)
|
||||
<form asp-action="Delete" asp-route-id="@Model.User.Id"
|
||||
onsubmit="return confirm('Are you sure you want to delete this user (@Model.User.Email)?')">
|
||||
<button class="btn btn-danger" type="submit">Delete</button>
|
||||
</form>
|
17
src/Admin/Views/Users/_ViewInformation.cshtml
Normal file
17
src/Admin/Views/Users/_ViewInformation.cshtml
Normal file
@ -0,0 +1,17 @@
|
||||
@model UserViewModel
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">Id</dt>
|
||||
<dd class="col-sm-10"><code>@Model.User.Id</code></dd>
|
||||
|
||||
<dt class="col-sm-2">Items</dt>
|
||||
<dd class="col-sm-10">@Model.CipherCount</dd>
|
||||
|
||||
<dt class="col-sm-2">Created</dt>
|
||||
<dd class="col-sm-10">@Model.User.CreationDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Modified</dt>
|
||||
<dd class="col-sm-10">@Model.User.RevisionDate.ToString()</dd>
|
||||
|
||||
<dt class="col-sm-2">Account Modified</dt>
|
||||
<dd class="col-sm-10">@Model.User.AccountRevisionDate.ToString()</dd>
|
||||
</dl>
|
Reference in New Issue
Block a user