Merging PIN_OIDC_USER_TO_OWN_DOMAIN System to PR-Branch

This commit is contained in:
bstrate
2025-07-30 09:07:07 +02:00
parent 247e161e5d
commit 6951b99191
6 changed files with 82 additions and 7 deletions

View File

@@ -45,7 +45,14 @@
</div>
<div class="py-2 grid grid-cols-3 gap-4 px-0">
<dt class="text-sm font-medium leading-6 text-gray-900 dark:text-white">Notes</dt>
<dd class="text-sm leading-6 text-gray-600 dark:text-gray-400 col-span-2 mt-0"><%= voucher.note ? voucher.note : '-' %></dd>
<dd class="text-sm leading-6 text-gray-600 dark:text-gray-400 col-span-2 mt-0">
<% if (voucher.note && voucher.note.includes('|||')) { %>
<strong>Description:</strong> <%= voucher.note.split('|||')[0] %><br/>
<strong>Domain:</strong> <%= voucher.note.split('|||')[1] %>
<% } else { %>
<%= voucher.note ? voucher.note : '-' %>
<% } %>
</dd>
</div>
<div class="py-2 grid grid-cols-3 gap-4 px-0">
<dt class="text-sm font-medium leading-6 text-gray-900 dark:text-white">Type</dt>

View File

@@ -167,9 +167,18 @@
<% } %>
<% } %>
<% if (voucher.note) { %>
<div class="hidden sm:block rounded-md flex-none py-1 px-2 text-xs font-medium ring-1 ring-inset bg-gray-50 text-gray-800 ring-gray-600/20 dark:text-gray-400 dark:bg-gray-400/10 dark:ring-gray-400/20">
<%= voucher.note %>
</div>
<% if (voucher.note.includes('|||')) { %>
<div class="hidden sm:block rounded-md flex-none py-1 px-2 text-xs font-medium ring-1 ring-inset bg-gray-50 text-gray-800 ring-gray-600/20 dark:text-gray-400 dark:bg-gray-400/10 dark:ring-gray-400/20">
<%= voucher.note.split('|||')[0] %>
</div>
<div class="hidden sm:block rounded-md flex-none py-1 px-2 text-xs font-medium ring-1 ring-inset bg-gray-50 text-gray-800 ring-gray-600/20 dark:text-gray-400 dark:bg-gray-400/10 dark:ring-gray-400/20">
<%= voucher.note.split('|||')[1] %>
</div>
<% } else { %>
<div class="hidden sm:block rounded-md flex-none py-1 px-2 text-xs font-medium ring-1 ring-inset bg-gray-50 text-gray-800 ring-gray-600/20 dark:text-gray-400 dark:bg-gray-400/10 dark:ring-gray-400/20">
<%= voucher.note %>
</div>
<% } %>
<% } %>
</div>
</h2>