Commit d3e43e56 authored by alicewang's avatar alicewang

新增上傳License頁面

parent f1c37f70
......@@ -77,6 +77,10 @@
</div>
</a>
<div class="dropdown-menu navbar-dropdown" aria-labelledby="profileDropdown">
<a class="dropdown-item" asp-controller="User" asp-action="UploadLicense">
<i class="mdi mdi-folder-upload mr-2"></i>@Localizer["Upload New License File"]
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" asp-controller="User" asp-action="ChangePassword" asp-route-username="@Context.User.Claims.FirstOrDefault(m => m.Type == "username").Value" asp-route-returnUrl="@Context.Request.Path.Value">
<i class="mdi mdi-lock-open mr-2"></i>@Localizer["Change Password"]
</a>
......
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@model backstage.Models.Users.UserResponse
@{
bool isAdmin = User.IsInRole("Admin");
string disabledClass = isAdmin ? "" : "disabled";
}
<div class="page-header">
<h3 class="page-title">@Localizer["Upload New License File"]</h3>
<input id="msg" hidden value="@TempData["msg"]" />
@if (TempData["isSuccess"] != null)
{
<input id="isSuccess" hidden value="@TempData["isSuccess"].ToString()" />
}
<div class="floating-msg" id="msgDiv"></div>
</div>
@section header
{
<script>
var localizationStrings = {
success: '@Localizer["成功"]',
error: '@Localizer["錯誤"]'
};
</script>
}
<div class="row">
<div class="col-lg-12 grid-margin stretch-card">
<div class="card">
<div class="card-body">
<p class="form-title card-description">Upload File</p>
<form class="forms-sample">
<div class="row align-items-center">
<div class="col-md-8 col-lg-6 form-group0 mt-1 mb-1">
<div class="input-group input-group-lg">
<div class="custom-file">
<input type="file" class="form-control custom-file-input" id="uploadLicenseFile" accept="">
<label class="custom-file-label" id="uploadLicenseFileLabel" for="uploadLicenseFile">Choose file</label>
</div>
</div>
</div>
<div class="col-md-4 col-lg-6 form-group0">
<div class="SubmitBlock0 SubmitBlock_sm0">
<button type="button" id="" class="btn btn-primary">Upload</button>
</div>
</div>
</div>
</form>
<p class="form-title card-description mt-5">License Info</p>
<div class="table-responsive">
<table class="table table-striped table-hover0 table-bordered TBL_licenseInfo">
<tbody>
<tr>
<th style=" border-left: solid 1px #d9d9d9;">Product Name</th>
<td>Token Vault</td>
</tr>
<tr>
<th>Expireation Date</th>
<td>2033-07-21 17:00:30</td>
</tr>
<tr>
<th>Product Max Version</th>
<td>1.0</td>
</tr>
<tr>
<th>Department</th>
<td>Taipay</td>
</tr>
<tr>
<th>Creation Date</th>
<td>2023-07-17 17:49:30</td>
</tr>
<tr>
<th>Name</th>
<td>API License</td>
</tr>
<tr>
<th style=" border-right: solid 0.1px #d9d9d9;">Other</th>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
......@@ -4064,7 +4064,11 @@ TBL_keysList tbody td {
}
.TBL_licenseInfo tbody th {
background: #4c6482;
color: #fff;
width: 15%;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment