From cdd2118aab2e9ee82d025c0ecc947cf33a291ba5 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 26 Oct 2022 14:42:26 +0200 Subject: [PATCH] format admin user configuration page --- .../views/admin/tpl/d3user_webauthn.tpl | 157 +++++++++--------- 1 file changed, 83 insertions(+), 74 deletions(-) diff --git a/src/Application/views/admin/tpl/d3user_webauthn.tpl b/src/Application/views/admin/tpl/d3user_webauthn.tpl index 76110c8..61eb68b 100755 --- a/src/Application/views/admin/tpl/d3user_webauthn.tpl +++ b/src/Application/views/admin/tpl/d3user_webauthn.tpl @@ -1,8 +1,11 @@ [{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}] -[{*assign var="webauthn" value=$edit->d3GetWebauthn()}]*}] -[{assign var="userid" value=$edit->getId()}] -[{*$webauthn->loadByUserId($userid)*}] +[{oxstyle include="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"}] +[{oxscript include="https://code.jquery.com/jquery-3.2.1.slim.min.js"}] +[{oxscript include="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"}] +[{oxscript include="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"}] +[{oxstyle include="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/solid.min.css"}] +[{oxstyle}] [{if $readonly}] [{assign var="readonly" value="readonly disabled"}] @@ -17,6 +20,14 @@ .hidden-delete { display: none; } + + .container-fluid, + .errorbox { + font-size: 13px; + } + .errorbox p { + margin: 0.5rem; + }
@@ -40,18 +51,20 @@ [{/capture}] [{oxscript add=$smarty.capture.javascripts}] - [{if $oxid && $oxid != '-1'}] [{if $pageType === 'requestnew'}] - [{include file="js_create.tpl"}] +
+
+ [{include file="js_create.tpl"}] -
- Bitte die Anfrage Ihres Browsers bestätigen. +
+ Bitte die Anfrage Ihres Browsers bestätigen. +
+ + +
- - [{else}] - [{$oViewConf->getHiddenSid()}] @@ -61,9 +74,6 @@ - [{* - - *}] [{if $sSaveError}] @@ -75,71 +85,70 @@ [{/if}] - - - - - - - -
-
- [{$oViewConf->getHiddenSid()}] - - - - - [{block name="user_d3user_totp_form1"}] - - - - - - - - - - [{/block}] -
-

[{oxmultilang ident="D3_WEBAUTHN_REGISTERNEW"}]

-
+
+
+
+
+ [{block name="user_d3user_totp_registernew"}] +
+ [{oxmultilang ident="D3_WEBAUTHN_REGISTERNEW"}] +
+
+ + [{$oViewConf->getHiddenSid()}] + + + + [{block name="user_d3user_totp_registerform"}] - -
- -
-
-
- - [{block name="user_d3user_totp_form2"}] - - - - [{foreach from=$oView->getCredentialList($userid) item="credential"}] - -[{*** - -***}] - - - [{/foreach}] +

+ +

+

+ +

+ [{/block}] + + [{/block}] -
-

[{oxmultilang ident="D3_WEBAUTHN_REGISTEREDKEYS"}]

-
- - - - [{$credential->getName()}] - -
- delete -
-
-
+
+ +
+
+ [{block name="user_d3user_totp_form2"}] +
+ [{oxmultilang ident="D3_WEBAUTHN_REGISTEREDKEYS"}] +
+
+ [{if $oView->getCredentialList($userid)}] +
    + [{foreach from=$oView->getCredentialList($userid) item="credential"}] +
  • + [{$credential->getName()}] + + + delete + +
  • + [{/foreach}] +
+ [{else}] +
+ kein Schluessel registriert +
+ [{/if}] +
+ [{/block}] +
+
+ + + [{/if}] [{/if}] - +[{oxscript}] [{include file="bottomnaviitem.tpl"}] [{include file="bottomitem.tpl"}] \ No newline at end of file