diff --git a/src/Application/views/admin/tpl/d3user_totp.tpl b/src/Application/views/admin/tpl/d3user_totp.tpl index ff09173..b0fa1f9 100644 --- a/src/Application/views/admin/tpl/d3user_totp.tpl +++ b/src/Application/views/admin/tpl/d3user_totp.tpl @@ -1,5 +1,12 @@ [{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}] +[{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}] + [{assign var="totp" value=$edit->d3GetTotp()}] [{assign var="userid" value=$edit->getId()}] [{$totp->loadByUserId($userid)}] @@ -24,6 +31,9 @@ text-align: right; color: #6c7c98; } + .container-fluid { + font-size: 13px; + } [{if $force2FA}] @@ -57,8 +67,107 @@ [{/if}] [{if $oxid && $oxid != '-1'}] +
+
+
+
+ [{block name="user_d3user_totp_form1"}] + [{if false == $totp->getId()}] +
+ [{oxmultilang ident="D3_TOTP_REGISTERNEW"}] +
+
+ [{oxmultilang ident="D3_TOTP_QRCODE"}] + + [{$totp->getQrCodeElement()}] + [{oxinputhelp ident="D3_TOTP_QRCODE_HELP"}] +
+ [{elseif $force2FA}] +
+ [{oxmultilang ident="D3_TOTP_ADMINBACKEND"}] +
+
+ +
+ [{else}] +
+ [{oxmultilang ident="D3_TOTP_REGISTEREXIST"}] +
+
+
+
+ [{oxmultilang ident="D3_TOTP_REGISTERDELETE_DESC"}] +
+
+ +
+
+
+ [{/if}] +[{*****}] + [{/block}] +
+
+
+
+ [{block name="user_d3user_totp_form2"}] + [{if false == $totp->getId()}] +
+ [{oxmultilang ident="D3_TOTP_BACKUPCODES"}] + Bestaetigung +
+
+ + + [{oxinputhelp ident="D3_TOTP_SECRET_HELP"}] + + + + [{oxinputhelp ident="D3_TOTP_CURROTP_HELP"}] + + +
+ [{else}] +
+ [{oxmultilang ident="D3_TOTP_BACKUPCODES"}] +
+
+ [{if $oView->getBackupCodes()}] + + + +
+
+ + + + [{else}] + + + [{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT" args=$oView->getAvailableBackupCodeCount()}] + + + + + [{oxmultilang ident="D3_TOTP_AVAILBACKUPCODECOUNT_DESC"}] + + + [{/if}] +
+ [{/if}] + [{/block}] +
+
+
+
+ +[{*** +**}]
[{block name="user_d3user_totp_form1"}] @@ -114,6 +223,7 @@ [{/block}]