feat(CustomImages): Implementiert anstelle von Bildern, um mehrere Bilder über ein Wörterbuch zu konfigurieren

This commit is contained in:
Developer 02
2025-02-13 00:48:47 +01:00
parent 1e34042f77
commit 41b5b62f2c
9 changed files with 32 additions and 25 deletions

View File

@@ -4,7 +4,7 @@
@{
//TODO: Create view model
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var logo = _logoOpt.Value;
var cImg = _cImgOpt.Value;
ViewData["Title"] = _localizer[WebKey.DocProtected];
var userCulture = ViewData["UserCulture"] as Culture;
string codeType = ViewData["CodeType"] is string _codeType ? _codeType : "accessCode";
@@ -24,7 +24,7 @@
<header class="text-center">
<div class="header-1 alert alert-secondary" role="alert">
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
<img class="@logo.ClassIn("Locked")" src="@logo.Src" />
<img class="@cImg["Company"].GetClassIn("Locked")" src="@cImg["Company"].Src" />
</div>
<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">

View File

@@ -1,6 +1,6 @@
@{
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var logo = _logoOpt.Value;
var cImg = _cImgOpt.Value;
ViewData["Title"] = _localizer["Home"];
var userCulture = ViewData["UserCulture"] as Culture;
}
@@ -8,7 +8,7 @@
<header class="text-center">
<div class="header-1 alert alert-secondary" role="alert">
<h3 class="text">@_localizer[WebKey.WelcomeToTheESignPortal]</h3>
<img class="@logo.ClassIn("Locked")" src="@logo.Src" />
<img class="@cImg["Company"].GetClassIn("Locked")" src="@cImg["Company"].Src" />
</div>
<div class="icon mt-4 mb-1">
<img src="~/img/sign_flow_min.svg">

View File

@@ -1,6 +1,6 @@
@{
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var logo = _logoOpt.Value;
var cImg = _cImgOpt.Value;
}
@using DigitalData.Core.DTO;
@using EnvelopeGenerator.Application.DTOs;
@@ -66,7 +66,7 @@
</div>
<div class="dd-card-info">
<div class="logo">
<img class="@logo.ClassIn("Show")" src="@logo.Src" alt="logo">
<img class="@cImg["Company"].GetClassIn("Show")" src="@cImg["Company"].Src" alt="logo">
</div>
<h2>@($"{envelope?.Title}".TrySanitize(_sanitizer))</h2>
@if (isReadOnly)

View File

@@ -11,5 +11,5 @@
@inject HighlightHtmlSanitizer _hlSanitizer
@inject Microsoft.AspNetCore.Http.IHttpContextAccessor _accessor
@inject Cultures _cultures
@inject IOptions<Img> _logoOpt
@inject IOptions<CustomImages> _cImgOpt
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers