sms report and task styles merged

This commit is contained in:
SamSys
2025-04-22 19:26:57 +03:30
5 changed files with 92 additions and 41 deletions

View File

@@ -1,4 +1,5 @@
@page
permission="2"
@page
@using _0_Framework.Application
@using AccountManagement.Application.Contracts.TicketAccessAccount
@using Microsoft.AspNetCore.Mvc.TagHelpers
@@ -17,12 +18,7 @@
<style>
.gwb-container {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin: 9px 0 0 0;
}
@@ -132,6 +128,41 @@
.card-amount-warn {
color: #ED412E;
}
.gwb-container {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin: 9px 0 0 0;
}
.remain-number {
font-size: 14px;
}
.btnSms {
padding: 5px 10px;
background-color: #0ba3a3;
color: white;
border: none;
outline: none;
border-radius: 4px;
font-size: 14px;
transition: all ease-in-out .3s
}
.btnSms:hover {
background-color: #1d8585;
}
.btn-sms-red {
background-color: #ed412e;
}
.btn-sms-green {
background-color: #0ba3a3;
}
@@media (max-width: 1366px) {
.gwb-container {
@@ -139,10 +170,10 @@
}
.remain-number {
font-size: 17px
font-size: 13px;
}
}
@@media (max-width: 768px) {
.gwb-container {
@@ -150,9 +181,12 @@
}
.remain-number {
font-size: 14px
font-size: 12px;
}
}
</style>
@@ -197,25 +231,34 @@
<div class="row">
<div class="gwb-container">
<div permission="2" id="smsDiv" class="gwb-card" style="padding: 0 1px">
<a type="button" class="click p-1 loadingButton">
<div permission="2" id="smsDiv" class="gwb-card">
<div type="button" class="click p-1 loadingButton" style="padding: 0 12px 0 25px">
<div class="gwb-card-flex" style="justify-content: space-between;width: 100%;">
<div class="gwb-card-flex p-1">
<img src="~/AssetsClient/images/sms-icon.png" alt="" class="img-fluid mx-1" width="50px"/>
<div class="text-start ms-1">
<div class="card-title">مقدار اعتبار فعلی</div>
@* <div class="card-title">مقدار اعتبار فعلی</div> *@
<div class="card-title">sms.ir</div>
</div>
</div>
<div id="amountSms" class="card-amount">
<span class="remain-number">باقی مانده</span>
<span>@Model.SmsRemaining</span>
<div class="card-amount">
<span class="remain-number" style="color: #6D6D6D">پیامک باقیمانده</span>
<span id="amountSms">@Model.SmsRemaining</span>
</div>
<div style="">
<a href="https://sms.ir/" target="_blank" rel="noopener noreferrer">
<button id="btnSMS" class="btnSms">
ورود به سامانه
</button>
</a>
</div>
</div>
</a>
</div>
</div>
</div>
@@ -365,21 +408,21 @@
</a>
</div>
</div>
<div class="card p-0">
<div class="card-section-btn">
<div class="card p-0">
<div class="card-section-btn">
<a class="btn loadingButton @(authHelper.GetPermissions().Any(x => x == 2) || authHelper.CurrentAccountId() == 322 ? "" : "disable")" asp-area="AdminNew" asp-page="/Company/FileBackup/Index">
<svg width="50" height="50" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M42.75 7.875H11.25C10.0125 7.875 9 8.8875 9 10.125V16.875C9 18.1125 10.0125 19.125 11.25 19.125H42.75C43.9875 19.125 45 18.1125 45 16.875V10.125C45 8.8875 43.9875 7.875 42.75 7.875ZM42.75 21.375H11.25C10.0125 21.375 9 22.3875 9 23.625V30.375C9 31.6125 10.0125 32.625 11.25 32.625H42.75C43.9875 32.625 45 31.6125 45 30.375V23.625C45 22.3875 43.9875 21.375 42.75 21.375ZM42.75 34.875H11.25C10.0125 34.875 9 35.8875 9 37.125V43.875C9 45.1125 10.0125 46.125 11.25 46.125H42.75C43.9875 46.125 45 45.1125 45 43.875V37.125C45 35.8875 43.9875 34.875 42.75 34.875Z" fill="#C4E8E8"/>
<path d="M34.875 33.7492L42.75 40.0492V27.4492L34.875 33.7492Z" fill="#23A8A8"/>
<path d="M42.75 31.5C42.4125 31.5 41.9625 31.5 41.625 31.6125V36.1125C41.9625 36 42.4125 36 42.75 36C46.4625 36 49.5 39.0375 49.5 42.75C49.5 46.4625 46.4625 49.5 42.75 49.5C39.0375 49.5 36 46.4625 36 42.75C36 42.4125 36 42.075 36.1125 41.7375L32.2875 38.7C31.8375 39.9375 31.5 41.2875 31.5 42.75C31.5 48.9375 36.5625 54 42.75 54C48.9375 54 54 48.9375 54 42.75C54 36.5625 48.9375 31.5 42.75 31.5Z" fill="#23A8A8"/>
</svg>
<p class="btn-title text-nowrap" style="margin: 0 5px 0 0">بکاپ</p>
<div class="spinner-loading loading rounded-0" style="display: none;">
<div class="spinner"></div>
</div>
</a>
</div>
</div>
<svg width="50" height="50" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M42.75 7.875H11.25C10.0125 7.875 9 8.8875 9 10.125V16.875C9 18.1125 10.0125 19.125 11.25 19.125H42.75C43.9875 19.125 45 18.1125 45 16.875V10.125C45 8.8875 43.9875 7.875 42.75 7.875ZM42.75 21.375H11.25C10.0125 21.375 9 22.3875 9 23.625V30.375C9 31.6125 10.0125 32.625 11.25 32.625H42.75C43.9875 32.625 45 31.6125 45 30.375V23.625C45 22.3875 43.9875 21.375 42.75 21.375ZM42.75 34.875H11.25C10.0125 34.875 9 35.8875 9 37.125V43.875C9 45.1125 10.0125 46.125 11.25 46.125H42.75C43.9875 46.125 45 45.1125 45 43.875V37.125C45 35.8875 43.9875 34.875 42.75 34.875Z" fill="#C4E8E8"/>
<path d="M34.875 33.7492L42.75 40.0492V27.4492L34.875 33.7492Z" fill="#23A8A8"/>
<path d="M42.75 31.5C42.4125 31.5 41.9625 31.5 41.625 31.6125V36.1125C41.9625 36 42.4125 36 42.75 36C46.4625 36 49.5 39.0375 49.5 42.75C49.5 46.4625 46.4625 49.5 42.75 49.5C39.0375 49.5 36 46.4625 36 42.75C36 42.4125 36 42.075 36.1125 41.7375L32.2875 38.7C31.8375 39.9375 31.5 41.2875 31.5 42.75C31.5 48.9375 36.5625 54 42.75 54C48.9375 54 54 48.9375 54 42.75C54 36.5625 48.9375 31.5 42.75 31.5Z" fill="#23A8A8"/>
</svg>
<p class="btn-title text-nowrap" style="margin: 0 5px 0 0">بکاپ</p>
<div class="spinner-loading loading rounded-0" style="display: none;">
<div class="spinner"></div>
</div>
</a>
</div>
</div>
<div class="card p-0">
<div class="card-section-btn">
<a class="btn loadingButton @(authHelper.GetPermissions().Any(x => x == 2) || authHelper.CurrentAccountId() == 14 ? "" : "disable")" asp-area="AdminNew" asp-page="/Company/Test/Index">

View File

@@ -14,9 +14,11 @@
function updateAmountColor() {
const amountDiv = document.querySelector("#amountSms");
const smsDiv = document.getElementById('smsDiv');
const stnSmsDiv = document.getElementById('btnSMS');
if (!amountDiv) return;
const rawText = amountDiv.textContent.replace(/[, ]/g, '').replace('ریال', '');
//const rawText = amountDiv.textContent.replace(/[, ]/g, '').replace('ریال', '');
const rawText = amountDiv.textContent.replace(/[, ]/g, '');
const amount = parseInt(rawText);
@@ -25,12 +27,16 @@ function updateAmountColor() {
amountDiv.classList.add("card-amount-warn");
smsDiv.classList.remove("gwb-card-blue");
smsDiv.classList.add("gwb-card-red");
stnSmsDiv.classList.add("btn-sms-red");
stnSmsDiv.classList.remove("btn-sms-green");
} else {
amountDiv.classList.remove("card-amount-warn");
amountDiv.classList.remove("gbt-card-red");
amountDiv.classList.add("card-amount-success");
smsDiv.classList.add("gwb-card-blue");
smsDiv.classList.remove("gwb-card-red");
stnSmsDiv.classList.add("btn-sms-green");
stnSmsDiv.classList.remove("btn-sms-red");
}
}

View File

@@ -6,7 +6,7 @@
border-radius: 7px;
}
.modal-content {
height: 890px;
height: 720px;
}
.modal-body {

View File

@@ -48,7 +48,8 @@
background-color: #F6F6F6;
font-size: 13px;
font-weight: 500;
height: 140px;
/* height: 150px !important;*/
/* height: 53px !important;*/
}
.tm-create .upload-voice-container {

View File

@@ -153,7 +153,7 @@ $(document).ready(function () {
$("#normalTask").prop("checked", true);
$(".scheduleTask").hide();
$(".tm-create .tm-textarea").css("height", "335px");
$(".tm-create .tm-textarea").css("height", "160px");
$(".tm-create .upload-voice-container").css("height", "335px");
@@ -163,7 +163,8 @@ $(document).ready(function () {
$("#normalTask").prop("checked", true);
$(".scheduleTask").hide();
$(".tm-create .tm-textarea").css("height", "335px");
$(".tm-create .tm-textarea").css("height", "160px");
$(".tm-create .upload-voice-container").css("height", "335px");
});
$("#scheduleTask").click(function () {
@@ -171,7 +172,7 @@ $(document).ready(function () {
$("#scheduleTask").prop("checked", true);
$(".scheduleTask").show();
$(".tm-create .tm-textarea").css("height", "227px");
$(".tm-create .tm-textarea").css("height", "53px");
$(".tm-create .upload-voice-container").css("height", "227px");
});