change the menu for new items

This commit is contained in:
MahanCh
2025-07-28 11:39:53 +03:30
parent 9f2487f8ef
commit e8fd8bdace
5 changed files with 35 additions and 18 deletions

View File

@@ -485,7 +485,13 @@
$(this).parentsUntil("#sidebar-menu > ul > li > a").addClass('active');
};
});
$(document).ready(function () {
$('.clik10').filter(function () {
if (this.href == url || this.href == url2) {
$(".sdf10").slideDown(350);
/*$(".wav").addClass("subdrop");*/
$(this).parentsUntil("#sidebar-menu > ul > li > a").addClass('active');
};
}); $(document).ready(function () {
$(document).on('click', function (e) {
var $target = $(e.target);
if (!$target.closest('.dropdown').length &&

View File

@@ -484,8 +484,8 @@
<i class="md md-add"></i>
</span>
</a>
<ul class="list-unstyled sdf8">
<li permission="307"><a class="clik3" asp-page="/Company/InstitutionContracts/Index">
<ul class="list-unstyled sdf10">
<li permission="307"><a class="clik10" asp-page="/Company/InstitutionContracts/Index">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg" style="width: 7px;margin: 0 6px;">
<circle cx="6.5" cy="6.5" r="6.5" fill="white"/>
</svg>
@@ -493,7 +493,7 @@
</li>
<li permission="307" style=";white-space: nowrap">
<a class="clik8 " href="https://admin@(AppSetting.Value.Domain)/payment-gateway-deposits" style="width: 7px;margin: 0 6px;">
<a class="clik10 " href="https://admin@(AppSetting.Value.Domain)/payment-gateway-deposits" style="width: 7px;margin: 0 6px;">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="6.5" cy="6.5" r="6.5" fill="white"/>
</svg>

View File

@@ -299,6 +299,7 @@
activateLink('.clik7', '.sdf7');
activateLink('.clik8', '.sdf8');
activateLink('.clik9', '.sdf9');
activateLink('.clik10', '.sdf10');
});
$(document).ready(function() {

View File

@@ -632,8 +632,8 @@
<i class="md md-add"></i>
</span>
</a>
<ul class="list-unstyled sdf8">
<li permission="307"><a class="clik3" asp-area="Admin" asp-page="/Company/InstitutionContracts/Index">
<ul class="list-unstyled sdf10">
<li permission="307"><a class="clik10" asp-area="Admin" asp-page="/Company/InstitutionContracts/Index">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg" style="width: 7px;margin: 0 6px;">
<circle cx="6.5" cy="6.5" r="6.5" fill="white"/>
</svg>
@@ -641,7 +641,7 @@
</li>
<li permission="307" style=";white-space: nowrap">
<a class="clik8 " href="https://admin@(AppSetting.Value.Domain)/payment-gateway-deposits" style="width: 7px;margin: 0 6px;">
<a class="clik10" href="https://admin@(AppSetting.Value.Domain)/payment-gateway-deposits" style="width: 7px;margin: 0 6px;">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="6.5" cy="6.5" r="6.5" fill="white"/>
</svg>

View File

@@ -5,12 +5,12 @@
@using CompanyManagment.App.Contracts.FinancialStatment
@using CompanyManagment.App.Contracts.PersonalContractingParty
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using Microsoft.Extensions.Options
@using WorkFlow.Application.Contracts.WorkFlow
@inject _0_Framework.Application.IAuthHelper AuthHelper;
@inject IFinancialStatmentApplication FinancialStatment;
@inject IPersonalContractingPartyApp ContractingPartyApp;
@inject IWorkFlowApplication WorkFlowApplication;
@inject IOptions<AppSettingConfiguration> AppSetting
@{
var currentAccount = AuthHelper.CurrentAccountInfo();
@@ -255,15 +255,25 @@
<li Permission="@SubAccountPermissionHelper.FinancialStatementsListPermissionCode">
@if (@statementInfo.ContractingPartyId > 0 && @statementInfo.FinancialStatmentId > 0)
{
<a asp-area="Financial" asp-page="/Index" asp-route-Id="@statementInfo.ContractingPartyId" asp-route-approveId="@statementInfo.FinancialStatmentId" asp-route-back="true">
<svg width="36" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="3" y="6" width="18" height="12" rx="2" stroke="#F5F5F5"/>
<path d="M5 9H8" stroke="#F5F5F5" stroke-linecap="round"/>
<path d="M16 15H19" stroke="#F5F5F5" stroke-linecap="round"/>
<circle cx="12" cy="12" r="2" stroke="#F5F5F5"/>
</svg>
<span>صورت حساب مالی</span>
</a>
@* <a asp-area="Financial" asp-page="/Index" asp-route-Id="@statementInfo.ContractingPartyId" asp-route-approveId="@statementInfo.FinancialStatmentId" asp-route-back="true"> *@
@* <svg width="36" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> *@
@* <rect x="3" y="6" width="18" height="12" rx="2" stroke="#F5F5F5"/> *@
@* <path d="M5 9H8" stroke="#F5F5F5" stroke-linecap="round"/> *@
@* <path d="M16 15H19" stroke="#F5F5F5" stroke-linecap="round"/> *@
@* <circle cx="12" cy="12" r="2" stroke="#F5F5F5"/> *@
@* </svg> *@
@* <span>صورت حساب مالی</span> *@
@* </a> *@
<a href="https://client@(AppSetting.Value.Domain)/financial">
<svg width="36" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="3" y="6" width="18" height="12" rx="2" stroke="#F5F5F5"/>
<path d="M5 9H8" stroke="#F5F5F5" stroke-linecap="round"/>
<path d="M16 15H19" stroke="#F5F5F5" stroke-linecap="round"/>
<circle cx="12" cy="12" r="2" stroke="#F5F5F5"/>
</svg>
<span>صورت حساب مالی</span>
</a>
}
else
{