feat(Logo): Konvertierung von Klassen in ein Wörterbuch anstelle von getrennten Eigenschaften
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
public class Logo
|
public class Logo
|
||||||
{
|
{
|
||||||
public string Src { get; init; } = string.Empty;
|
public string Src { get; init; } = string.Empty;
|
||||||
|
|
||||||
public string LockedPageClass { get; init; } = string.Empty;
|
|
||||||
|
|
||||||
public string ShowPageClass { get; init; } = string.Empty;
|
public Dictionary<string, string> Classes { get; init; } = new();
|
||||||
|
|
||||||
|
public string ClassIn(string page) => Classes.TryGetValue(page, out var cls) && cls is not null ? cls : string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<header class="text-center">
|
<header class="text-center">
|
||||||
<div class="header-1 alert alert-secondary" role="alert">
|
<div class="header-1 alert alert-secondary" role="alert">
|
||||||
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
|
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
|
||||||
<img class="@logo.LockedPageClass" src="@logo.Src" />
|
<img class="@logo.ClassIn("Locked")" src="@logo.Src" />
|
||||||
</div>
|
</div>
|
||||||
<div class="icon locked @(viaTFA ? "tfa" : "") mt-4 mb-1">
|
<div class="icon locked @(viaTFA ? "tfa" : "") mt-4 mb-1">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" fill="currentColor" class="bi bi-shield-lock" viewBox="0 0 16 16">
|
<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" fill="currentColor" class="bi bi-shield-lock" viewBox="0 0 16 16">
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<header class="text-center">
|
<header class="text-center">
|
||||||
<div class="header-1 alert alert-secondary" role="alert">
|
<div class="header-1 alert alert-secondary" role="alert">
|
||||||
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
|
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
|
||||||
<img class="@logo.LockedPageClass" src="@logo.Src" />
|
<img class="@logo.ClassIn("Locked")" src="@logo.Src" />
|
||||||
</div>
|
</div>
|
||||||
<div class="icon mt-4 mb-1">
|
<div class="icon mt-4 mb-1">
|
||||||
<img src="~/img/sign_flow_min.svg">
|
<img src="~/img/sign_flow_min.svg">
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="dd-card-info">
|
<div class="dd-card-info">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img class="@logo.ShowPageClass" src="@logo.Src" alt="logo">
|
<img class="@logo.ClassIn("Show")" src="@logo.Src" alt="logo">
|
||||||
</div>
|
</div>
|
||||||
<h2>@($"{envelope?.Title}".TrySanitize(_sanitizer))</h2>
|
<h2>@($"{envelope?.Title}".TrySanitize(_sanitizer))</h2>
|
||||||
@if (isReadOnly)
|
@if (isReadOnly)
|
||||||
|
|||||||
@@ -105,8 +105,10 @@
|
|||||||
],
|
],
|
||||||
"Logo": {
|
"Logo": {
|
||||||
"Src": "/img/digital_data.svg",
|
"Src": "/img/digital_data.svg",
|
||||||
"ShowPageClass": "dd-show-logo",
|
"Classes": {
|
||||||
"LockedPageClass": "dd-locked-logo"
|
"Show": "dd-show-logo",
|
||||||
|
"Locked": "dd-locked-logo"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"DispatcherParams": {
|
"DispatcherParams": {
|
||||||
"SendingProfile": 1,
|
"SendingProfile": 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user