From 8b0679cc89926ccd7e6f8b42e4a20dd3b3c4e371 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 1 May 2017 11:47:04 +0100 Subject: [PATCH] captive: Fix some template updates that I forgot Signed-off-by: Michael Tremer --- html/cgi-bin/captive/index.cgi | 9 +++++---- html/html/captive/template.html | 10 +++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/html/cgi-bin/captive/index.cgi b/html/cgi-bin/captive/index.cgi index 597d530144..963b890e8c 100755 --- a/html/cgi-bin/captive/index.cgi +++ b/html/cgi-bin/captive/index.cgi @@ -142,9 +142,12 @@ my $tmpl = HTML::Template->new( $tmpl->param(REDIRECT_URL => $url); -# Voucher +# Coupon if ($settings{'AUTH'} eq "COUPON") { $tmpl->param(COUPON => 1); + $tmpl->param(L_HEADING => $Lang::tr{'Captive coupon'}); +} else { + $tmpl->param(L_HEADING => $Lang::tr{'Captive terms'}); } $tmpl->param(TITLE => $settings{'TITLE'}); @@ -156,9 +159,7 @@ $tmpl->param(TERMS => &getterms()); # Some translated strings $tmpl->param(L_ACTIVATE => $Lang::tr{'Captive ACTIVATE'}); $tmpl->param(L_GAIN_ACCESS => $Lang::tr{'Captive GAIN ACCESS'}); -$tmpl->param(L_HEADING_COUPON => $Lang::tr{'Captive coupon'}); -$tmpl->param(L_HEADING_TERMS => $Lang::tr{'Captive terms'}); -$tmpl->param(L_AGREE_TAC => $Lang::tr{'Captive agree tac'}); +$tmpl->param(L_AGREE_TERMS => $Lang::tr{'Captive agree tac'}); # Print header print "Pragma: no-cache\n"; diff --git a/html/html/captive/template.html b/html/html/captive/template.html index 15f9b59e1b..504920c64f 100644 --- a/html/html/captive/template.html +++ b/html/html/captive/template.html @@ -31,18 +31,14 @@
- -

- -

-
+

"> - - + + "> -- 2.39.5