From 6ac94222f96e25a0740165d06fe966b37f7d593d Mon Sep 17 00:00:00 2001 From: Martindev Date: Sat, 5 Mar 2022 18:58:19 +0100 Subject: [PATCH 1/5] Update header.twig --- Theme/Argon/includes/header.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Theme/Argon/includes/header.twig b/Theme/Argon/includes/header.twig index f9d7ea3..4faa932 100644 --- a/Theme/Argon/includes/header.twig +++ b/Theme/Argon/includes/header.twig @@ -12,13 +12,14 @@ -
+ +
-
Dark mode
+
Dark mode
@@ -158,4 +159,4 @@ -
\ No newline at end of file +
From 26769fd28fdc4242971a8c18cf8b9ebba2ee0db3 Mon Sep 17 00:00:00 2001 From: Martindev Date: Sun, 6 Mar 2022 21:57:35 +0100 Subject: [PATCH 2/5] Fix v5 bootstrap version --- Theme/Argon/Views/Proxmox/data.twig | 122 +------------------ Theme/Argon/Views/Shop/domaindata.twig | 3 +- Theme/Argon/Views/Virtualizor/data.twig | 4 +- Theme/Argon/Views/VirtualizorCloud/data.twig | 4 +- Theme/Argon/includes/head.twig | 10 +- 5 files changed, 12 insertions(+), 131 deletions(-) diff --git a/Theme/Argon/Views/Proxmox/data.twig b/Theme/Argon/Views/Proxmox/data.twig index f0a1a2e..a269960 100644 --- a/Theme/Argon/Views/Proxmox/data.twig +++ b/Theme/Argon/Views/Proxmox/data.twig @@ -1,121 +1 @@ -{% if inAdmin %} - {% set bootstrap = 'v4' %} -{% endif %} - -
-
-
-
-
- {% if bootstrap == 'v4' %} -
- - -
- -
- {{ field('hostname', item.hostname, trans("proxmox.hostname")) }} -
- {% else %} - -
- - -
-
- {{ field('hostname', item.hostname, trans("proxmox.hostname")) }} -
- {% endif %} - {% if config('proxmox_auth_type') == 'password' %} - {{ field('rootpass', item.rootpass, trans("password"), {type: 'password'} ) }} - {{ field('confirmation',item.confirmation, trans("confirmation"), {type: 'password'} ) }} - - {% else %} - {{ field('sshpublic', item.sshpublic, "Public SSH", {type: 'textarea'} ) }} - {% endif %} - -
- - {% for key, value in oses %} - -
- -
- {% endfor %} -
-
-
-
-
-
- \ No newline at end of file +{{ include('@proxmox-copy/data', {bootstrap: 'v5'}) }} \ No newline at end of file diff --git a/Theme/Argon/Views/Shop/domaindata.twig b/Theme/Argon/Views/Shop/domaindata.twig index 804076b..01584ff 100644 --- a/Theme/Argon/Views/Shop/domaindata.twig +++ b/Theme/Argon/Views/Shop/domaindata.twig @@ -1,2 +1 @@ -{% set boostrap = 'v5' %} -{% include('@shop/domaindata') %} \ No newline at end of file +{{ include('@shop-copy/domaindata', {bootstrap: 'v5'}) }} \ No newline at end of file diff --git a/Theme/Argon/Views/Virtualizor/data.twig b/Theme/Argon/Views/Virtualizor/data.twig index a158110..7a70898 100644 --- a/Theme/Argon/Views/Virtualizor/data.twig +++ b/Theme/Argon/Views/Virtualizor/data.twig @@ -1,3 +1 @@ -{% set bootstrap = 'v5' %} - -{% include "@virtualizor-copy/data.twig" %} +{{ include('@virtualizor-copy/data', {bootstrap: 'v5'}) }} \ No newline at end of file diff --git a/Theme/Argon/Views/VirtualizorCloud/data.twig b/Theme/Argon/Views/VirtualizorCloud/data.twig index 6a328a6..65e415d 100644 --- a/Theme/Argon/Views/VirtualizorCloud/data.twig +++ b/Theme/Argon/Views/VirtualizorCloud/data.twig @@ -1,3 +1 @@ -{% set bootstrap = 'v5' %} - -{% include "@virtualizorcloud-copy/data.twig" %} +{{ include('@virtualizorcloud-copy/data', {bootstrap: 'v5'}) }} \ No newline at end of file diff --git a/Theme/Argon/includes/head.twig b/Theme/Argon/includes/head.twig index 52cccc3..02bdb27 100644 --- a/Theme/Argon/includes/head.twig +++ b/Theme/Argon/includes/head.twig @@ -28,9 +28,15 @@ - + + - + + {% if config('theme_primary') %} + + {% else %} + + {% endif %}