]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
wireguard.cgi: Remove the large box to warn people that the configuration will only...
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Sep 2024 15:59:58 +0000 (17:59 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:52 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wireguard.cgi
html/html/themes/ipfire/include/css/style.css

index 0824d83edeeeecadc72e9ebb79a93ca85ea01644..7c01522eefd5297effb4b3f7d501911d920d7943 100644 (file)
@@ -1036,6 +1036,10 @@ sub show_peer_configuration($$) {
                                </a>
                        </p>
 
+                       <p class="text-error">
+                               $Lang::tr{'wg warning configuration only shown once'}
+                       </p>
+
                        <p>
                                <form method="GET" action="">
                                        <button type="submit">$Lang::tr{'done'}</button>
@@ -1045,12 +1049,6 @@ sub show_peer_configuration($$) {
 END
 
        &Header::closebox();
-
-       # Show a note that this configuration cannot be shown again
-       &Header::errorbox((
-               $Lang::tr{'wg warning configuration only shown once'},
-       ));
-
        &Header::closepage();
 
        exit(0);
index 56e6f26dffca087ef5274e1e00c723090ae5a659..dd97e41ed9e44f6cdeae53625984409575f995ea 100644 (file)
@@ -155,6 +155,13 @@ iframe {
        text-align: right;
 }
 
+/*
+       Text Colors
+*/
+.text-error {
+       color: var(--color-red);
+}
+
 /* Header */
 
 #header {