Restructure project shared files and update layout paths
Rename '_Shared' directory to 'Shared' to improve project structure Update layout and view location references accordingly Clean up unnecessary files and standardize project organization
This commit is contained in:
parent
ea3ecdfb68
commit
dcd6ddcdeb
14 changed files with 20 additions and 249 deletions
|
|
@ -2,7 +2,7 @@
|
|||
@model PlanTempus.Application.Features.Accounts.Pages.PaymentModel
|
||||
@{
|
||||
ViewData["Title"] = "Betaling";
|
||||
Layout = "/Features/_Shared/Pages/_AuthLayout.cshtml";
|
||||
Layout = "/Features/Shared/Pages/_AuthLayout.cshtml";
|
||||
|
||||
var plan = Model.SelectedPlan;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
@model PlanTempus.Application.Features.Accounts.Pages.PricingModel
|
||||
@{
|
||||
ViewData["Title"] = "Vælg abonnement";
|
||||
Layout = "/Features/_Shared/Pages/_AuthLayout.cshtml";
|
||||
Layout = "/Features/Shared/Pages/_AuthLayout.cshtml";
|
||||
}
|
||||
|
||||
<swp-pricing-page>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
@model PlanTempus.Application.Features.Accounts.Pages.SignupModel
|
||||
@{
|
||||
ViewData["Title"] = Model.SelectedPlan.IsContactSales ? "Kontakt salg" : "Opret konto";
|
||||
Layout = "/Features/_Shared/Pages/_AuthLayout.cshtml";
|
||||
Layout = "/Features/Shared/Pages/_AuthLayout.cshtml";
|
||||
|
||||
var plan = Model.SelectedPlan;
|
||||
var badgeClass = plan.IsContactSales ? plan.BadgeClass : (plan.IsFree ? plan.BadgeClass : "selected");
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
@{
|
||||
Layout = "/Features/Shared/Pages/_Layout.cshtml";
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
using PlanTempus.Application.Features.Localization.Services;
|
||||
|
||||
namespace PlanTempus.Application.Features._Shared.TagHelpers;
|
||||
namespace PlanTempus.Application.Features.Shared.TagHelpers;
|
||||
|
||||
[HtmlTargetElement(Attributes = "localize")]
|
||||
public class LocalizeTagHelper : TagHelper
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
@model PlanTempus.Application.Features.Menu.SideMenuViewModel
|
||||
|
||||
<swp-side-menu>
|
||||
<swp-side-menu-header>
|
||||
<i class="ph ph-squares-four"></i>
|
||||
<swp-side-menu-logo localize="sidebar.appName">Salon OS</swp-side-menu-logo>
|
||||
<swp-menu-toggle id="menuToggle">
|
||||
<i class="ph ph-caret-left"></i>
|
||||
</swp-menu-toggle>
|
||||
</swp-side-menu-header>
|
||||
|
||||
<swp-side-menu-nav>
|
||||
@foreach (var group in Model.Groups)
|
||||
{
|
||||
<swp-side-menu-group data-group="@group.Id">
|
||||
<swp-side-menu-label>@group.Label</swp-side-menu-label>
|
||||
@foreach (var item in group.Items)
|
||||
{
|
||||
<a href="@item.Url" is="swp-side-menu-item"
|
||||
data-active="@(item.IsActive ? "true" : "false")"
|
||||
data-tooltip="@item.Label">
|
||||
<i class="ph @item.Icon"></i>
|
||||
<span>@item.Label</span>
|
||||
</a>
|
||||
}
|
||||
</swp-side-menu-group>
|
||||
}
|
||||
</swp-side-menu-nav>
|
||||
|
||||
<swp-side-menu-footer>
|
||||
<swp-side-menu-action class="lock" id="lockScreen" title="Lås skærm">
|
||||
<i class="ph ph-lock"></i>
|
||||
<span localize="sidebar.lockScreen">Lås skærm</span>
|
||||
</swp-side-menu-action>
|
||||
</swp-side-menu-footer>
|
||||
</swp-side-menu>
|
||||
|
||||
<!-- Tooltip for collapsed menu -->
|
||||
<span id="menuTooltip" class="swp-menu-tooltip" popover="manual"></span>
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<swp-app-topbar>
|
||||
<swp-topbar-search>
|
||||
<i class="ph ph-magnifying-glass"></i>
|
||||
<input type="text" placeholder="Søg i Salon OS..." id="globalSearch">
|
||||
<kbd>⌘K</kbd>
|
||||
</swp-topbar-search>
|
||||
|
||||
<swp-topbar-actions>
|
||||
<!-- Notifications -->
|
||||
<swp-topbar-btn id="notificationsBtn" title="Notifikationer">
|
||||
<i class="ph ph-bell"></i>
|
||||
<swp-notification-badge>3</swp-notification-badge>
|
||||
</swp-topbar-btn>
|
||||
|
||||
<swp-topbar-divider></swp-topbar-divider>
|
||||
|
||||
<!-- Profile (opens drawer) -->
|
||||
<swp-topbar-profile id="profileTrigger">
|
||||
<swp-profile-avatar>MJ</swp-profile-avatar>
|
||||
<swp-profile-info>
|
||||
<swp-profile-name>Maria Jensen</swp-profile-name>
|
||||
<swp-profile-role>Administrator</swp-profile-role>
|
||||
</swp-profile-info>
|
||||
</swp-topbar-profile>
|
||||
</swp-topbar-actions>
|
||||
</swp-app-topbar>
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
@{
|
||||
Layout = "/Features/_Shared/Pages/_Layout.cshtml";
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
@{
|
||||
Layout = "/Features/_Shared/Pages/_Layout.cshtml";
|
||||
Layout = "/Features/Shared/Pages/_Layout.cshtml";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue