diff --git a/views/twig/apex/d3_account_totp.html.twig b/views/twig/apex/d3_account_totp.html.twig index 2159afe..79fa9d2 100644 --- a/views/twig/apex/d3_account_totp.html.twig +++ b/views/twig/apex/d3_account_totp.html.twig @@ -1,8 +1,16 @@ {% capture append = "oxidBlock_content" %} -

{{ translate({ ident: "D3_TOTP_ACCOUNT" }) }}

+
+
+

+ {{ translate({ ident: "D3_TOTP_ACCOUNT" }) }} +

+
+ {% include "page/account/inc/account_menu.html.twig" with {active_link: "d3totp"} %} +
+
- {% set totp = user.d3GetTotp() %} + {% set totp = user.d3GetSessionedTotp() %} {% set userid = user.getId() %} {{ totp.loadByUserId(userid) }} @@ -28,123 +36,135 @@ {% endif %} - {% block d3_account_totp %} -
- + -

- - -

- - {% if false == totp.getId() %} -
-
- {{ translate({ ident: "D3_TOTP_REGISTERNEW" }) }} +
+
+ {% block d3_account_totp %} + + -
-
-
- {{ translate({ ident: "D3_TOTP_QRCODE" }) }}  -
-
- {{ totp.getQrCodeElement() }} -
-
-

- {{ translate({ ident: "D3_TOTP_QRCODE_HELP" }) }} -

-
+

+ + +

-
-
- -
-
- -
-
-

- {{ translate({ ident: "D3_TOTP_SECRET_HELP" }) }} -

+ {% if false == totp.getId() %} +
+
+ {{ translate({ ident: "D3_TOTP_REGISTERNEW" }) }} +
+
+
+
+ {{ translate({ ident: "D3_TOTP_QRCODE" }) }}  +
+
+ {{ totp.getQrCodeElement()|raw }} +
+
+

+ {{ translate({ ident: "D3_TOTP_QRCODE_HELP" }) }} +

-
+
-
-
- -
-
- -
-
-

- {{ translate({ ident: "D3_TOTP_CURROTP_HELP" }) }} -

-
-
- {% endif %} +
+
+ +
+
+ +
+
+

+ {{ translate({ ident: "D3_TOTP_SECRET_HELP" }) }} +

- {% if totp.getId() %} - {% block d3_account_totp_deletenotes %} -
-
- {{ translate({ ident: "D3_TOTP_REGISTEREXIST" }) }} +
+ +
+
+ +
+
+ +
+
+

+ {{ translate({ ident: "D3_TOTP_CURROTP_HELP" }) }} +

+
-
- {{ translate({ ident: "D3_TOTP_REGISTERDELETE_DESC" }) }} -
-
- {% endblock %} - - {% block d3_account_totp_backupcodes %} -
-
- {{ translate({ ident: "D3_TOTP_BACKUPCODES" }) }} -
-
- {% if oView.getBackupCodes() %} - {% block d3_account_totp_backupcodes_list %} - - - {% endblock %} - {% else %} - {% block d3_account_totp_backupcodes_info %} - {{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT", args: oView.getAvailableBackupCodeCount() }) }}
- {{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT_DESC" }) }} - {% endblock %} - {% endif %} -
-
- {% endblock %} - {% endif %} - -

- -

- - {% endblock %} + + {% if totp.getId() %} + {% block d3_account_totp_deletenotes %} +
+
+ {{ translate({ ident: "D3_TOTP_REGISTEREXIST" }) }} +
+
+ {{ translate({ ident: "D3_TOTP_REGISTERDELETE_DESC" }) }} +
+
+ {% endblock %} + + {% block d3_account_totp_backupcodes %} +
+
+ {{ translate({ ident: "D3_TOTP_BACKUPCODES" }) }} +
+
+ {% if oView.getBackupCodes() %} + {% block d3_account_totp_backupcodes_list %} + + + {% endblock %} + {% else %} + {% block d3_account_totp_backupcodes_info %} + {{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT", args: oView.getAvailableBackupCodeCount() }) }}
+ {{ translate({ ident: "D3_TOTP_AVAILBACKUPCODECOUNT_DESC" }) }} + {% endblock %} + {% endif %} +
+
+ {% endblock %} + {% endif %} + +
+ +
+ + {% endblock %} +
+
+
{% endcapture %} -{% capture append = "oxidBlock_sidebar" %} - {% include "page/account/inc/account_menu.html.twig" with {active_link: "d3totp"} %} -{% endcapture %} {% include "layout/page.html.twig" with {sidebar: "Left"} %} \ No newline at end of file diff --git a/views/twig/extensions/themes/default/page/account/dashboard.html.twig b/views/twig/extensions/themes/default/page/account/dashboard.html.twig index bf09fd2..310167d 100644 --- a/views/twig/extensions/themes/default/page/account/dashboard.html.twig +++ b/views/twig/extensions/themes/default/page/account/dashboard.html.twig @@ -1,11 +1,19 @@ -{{ parent() }} +{% extends "page/account/dashboard.html.twig" %} -
-
- {{ translate({ ident: "D3_TOTP_ACCOUNT" }) }} - - - +{% block account_dashboard_col2 %} + {{ parent() }} + +
+
+

{{ translate({ ident: "D3_TOTP_ACCOUNT" }) }}

+
+
+ {{ translate({ ident: "D3_TOTP_ACCOUNT_DESC" }) }} +
+ + {{ translate({ ident: "MORE" }) }} + +
+
-
{{ translate({ ident: "D3_TOTP_ACCOUNT_DESC" }) }}
-
\ No newline at end of file +{% endblock %} \ No newline at end of file diff --git a/views/twig/extensions/themes/default/page/account/inc/account_menu.html.twig b/views/twig/extensions/themes/default/page/account/inc/account_menu.html.twig index da7092d..5201902 100644 --- a/views/twig/extensions/themes/default/page/account/inc/account_menu.html.twig +++ b/views/twig/extensions/themes/default/page/account/inc/account_menu.html.twig @@ -1,4 +1,11 @@ -{{ parent() }} - \ No newline at end of file +{% extends "page/account/inc/account_menu.html.twig" %} + +{% block account_menu %} + {{ parent() }} + + {{ translate({ ident: "D3_TOTP_ACCOUNT" }) }} + +{% endblock %} \ No newline at end of file