Commit bec52ba1 authored by nickchen's avatar nickchen 🎨
parents a9bea75e d3e43e56
......@@ -1840,7 +1840,7 @@ namespace backstage.Controllers
permission = "Permission";
Fields = "Fields";
backup = "Backup";
restitute = "Restitute";
restitute = "Restore";
break;
case "zh":
permission = "權限";
......
......@@ -210,10 +210,10 @@
<data name="Inactive" xml:space="preserve">
<value>未啟用</value>
</data>
<data name="Key part1" xml:space="preserve">
<data name="Key Part 1" xml:space="preserve">
<value>第一組Key</value>
</data>
<data name="Key part2" xml:space="preserve">
<data name="Key Part 2" xml:space="preserve">
<value>第二組Key</value>
</data>
<data name="Keys List" xml:space="preserve">
......
......@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Backup" xml:space="preserve">
<value>備份</value>
</data>
<data name="Cancel" xml:space="preserve">
<value>取消</value>
</data>
......@@ -150,6 +153,9 @@
<data name="Description" xml:space="preserve">
<value>描述</value>
</data>
<data name="Download" xml:space="preserve">
<value>下載</value>
</data>
<data name="ID" xml:space="preserve">
<value>編號</value>
</data>
......@@ -171,6 +177,12 @@
<data name="Please confirm to delete vault." xml:space="preserve">
<value>儲存庫刪除確認</value>
</data>
<data name="Please download the bakup file." xml:space="preserve">
<value>請下載備份檔</value>
</data>
<data name="Restore" xml:space="preserve">
<value>還原</value>
</data>
<data name="Serial number" xml:space="preserve">
<value>編號</value>
</data>
......
......@@ -171,7 +171,7 @@
<data name="Delete" xml:space="preserve">
<value>刪除</value>
</data>
<data name="Delete mask" xml:space="preserve">
<data name="Delete Mask" xml:space="preserve">
<value>刪除遮罩</value>
</data>
<data name="Description" xml:space="preserve">
......@@ -228,9 +228,6 @@
<data name="Select user" xml:space="preserve">
<value>新增用戶</value>
</data>
<data name="Send out" xml:space="preserve">
<value>送出</value>
</data>
<data name="Serial number" xml:space="preserve">
<value>編號</value>
</data>
......@@ -240,6 +237,9 @@
<data name="Status" xml:space="preserve">
<value>狀態</value>
</data>
<data name="Submit" xml:space="preserve">
<value>送出</value>
</data>
<data name="Token Vault List" xml:space="preserve">
<value>代碼化保險庫列表管理</value>
</data>
......
......@@ -158,13 +158,13 @@
</div>
<div class="hidden" id="recoverKeyForm">
<div class="form-group">
<label class="control-label">@Localizer["Key part1"]:</label>
<label class="control-label">@Localizer["Key Part 1"]:</label>
<div>
<input type="text" class="form-control input-sm" id="key1">
</div>
</div>
<div class="form-group">
<label class="control-label">@Localizer["Key part2"]:</label>
<label class="control-label">@Localizer["Key Part 2"]:</label>
<div>
<input type="text" class="form-control input-sm" id="key2">
</div>
......@@ -241,7 +241,7 @@
-->
<h3 class="modal-title">
@*<img src="~/images/memberGo/apiKey/newapp-orange-300ppi.png">*@
@Localizer["Edit key"]
@Localizer["Edit Key"]
</h3>
</div> <!--END of div "modal-header"-->
<div class="modal-body" style="padding-top:35px">
......
......@@ -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>
......
......@@ -55,7 +55,7 @@
<div>
<div class="rank-table">
<div class="table-responsive">
<table class="table table-striped ">
<table class="table table-striped TBL_tokenVaultList">
<thead>
<tr class="">
<th> @Localizer["ID"]</th>
......@@ -109,14 +109,14 @@
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Backup</h3>
<h3 class="modal-title">@Localizer["Backup"]</h3>
</div>
<div class="modal-body" style="padding-top:35px; padding-bottom: 35px">
<p class="modal-body-title">下載備份檔到本機</p>
<p>下載備份檔到本機</p>
<p class="modal-body-title"></p>
<p>@Localizer["Please download the bakup file."]</p>
<div class="SubmitBlock SubmitBlock_sm">
<button type="button" id="backupConfirm" class="btn btn-mainblue-solid" data-dismiss="modal" style="">@Localizer["Confirm"]</button>
<button type="button" id="backupConfirm" class="btn btn-mainblue-solid" data-dismiss="modal" style="">@Localizer["Download"]</button>
<button type="button" class="btn btn-mainblue-hollow" data-dismiss="modal" style="">@Localizer["Cancel"]</button>
</div>
</div>
......@@ -135,7 +135,7 @@
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Restitute</h3>
<h3 class="modal-title">@Localizer["Restore"]</h3>
</div>
<div class="modal-body" style="padding-top:35px; padding-bottom: 35px">
......
......@@ -97,7 +97,7 @@
<div>
<div class="rank-table">
<div class="table-responsive">
<table class="table table-striped ">
<table class="table table-striped TBL_fieldList">
<thead>
<tr class="">
<th>@Localizer["Serial number"]</th>
......
......@@ -148,7 +148,7 @@
<button type="button" class="close" data-dismiss="modal">&times;</button>
-->
<h3 class="modal-title">
@Localizer["Add mask"]
@Localizer["Add Mask"]
</h3>
</div> <!--END of div "modal-header"-->
......@@ -219,7 +219,7 @@
</div>
</div>
<div class="SubmitBlock">
<button id="createMaskBtn" type="button" class="btn btn-mainblue-solid btnSubmit0"> @Localizer["Send out"]</button>
<button id="createMaskBtn" type="button" class="btn btn-mainblue-solid btnSubmit0"> @Localizer["Submit"]</button>
<button type="button" class="btn btn-mainblue-hollow btnReset0" data-dismiss="modal"> @Localizer["Cancel"]</button>
</div>
</form>
......@@ -247,7 +247,7 @@
<div class="modal-header">
<h4>
@Localizer["Delete mask"]
@Localizer["Delete Mask"]
</h4>
</div> <!--END of div "modal-header"-->
......
......@@ -97,7 +97,7 @@
<td class="editUser">@i.default_mask_id</td>
<td>
<a data-id="@i.id" class="btn btnPermission btn-sm" data-toggle="modal" data-target="#delete-field-user">@Localizer["Remove user"]</a>
<a data-id="@i.id" class="btn btnPermission btn-sm" data-toggle="modal" data-target="#delete-field-user">@Localizer["Remove User"]</a>
</td>
</tr>
}
......
@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>
......@@ -4055,8 +4055,21 @@ TBL_keysList tbody td {
margin-bottom: 10px;
}
.TBL_tokenVaultList a {
color: #337ab7 !important;
}
.TBL_fieldList a {
color: #337ab7 !important;
}
.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