From f06e62ddfb54a697107fcc55f874829b10099d0d Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 5 Oct 2023 22:02:26 +0200 Subject: [PATCH] Multilang Support for Admin Contest Menu --- application/views/contesting/add.php | 22 +++++++++++----------- application/views/contesting/create.php | 10 +++++----- assets/js/sections/contestingnames.js | 8 ++++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/application/views/contesting/add.php b/application/views/contesting/add.php index 840b205f..10c9a46b 100644 --- a/application/views/contesting/add.php +++ b/application/views/contesting/add.php @@ -22,9 +22,9 @@ - - - + + + @@ -35,19 +35,19 @@ - + @@ -57,9 +57,9 @@

- - - + + +

diff --git a/application/views/contesting/create.php b/application/views/contesting/create.php index 4a0bd5ee..2a89db38 100644 --- a/application/views/contesting/create.php +++ b/application/views/contesting/create.php @@ -21,18 +21,18 @@
- + - Name of Contest +
- + - Name of Contest in ADIF-specification +
- + diff --git a/assets/js/sections/contestingnames.js b/assets/js/sections/contestingnames.js index 88bc63f6..cd5bff49 100644 --- a/assets/js/sections/contestingnames.js +++ b/assets/js/sections/contestingnames.js @@ -68,8 +68,8 @@ function deactivateContest(contestid) { type: 'post', data: { 'id': contestid }, success: function (html) { - $(".contest_" + contestid).text('not active'); - $('.btn_' + contestid).html('Activate'); + $(`.contest_${contestid}`).text(""); + $('.btn_' + contestid).html(""); $('.btn_' + contestid).attr('onclick', 'activateContest(' + contestid + ')') } }); @@ -81,8 +81,8 @@ function activateContest(contestid) { type: 'post', data: { 'id': contestid }, success: function (html) { - $('.contest_' + contestid).text('active'); - $('.btn_' + contestid).html('Deactivate'); + $('.contest_' + contestid).text(""); + $('.btn_' + contestid).html(""); $('.btn_' + contestid).attr('onclick', 'deactivateContest(' + contestid + ')') } });
NameAdif modeActive
'>'> Deactivate"; + echo ""; } else { - echo ""; + echo ""; };?> - " class="btn btn-outline-primary btn-sm"> Edit + " class="btn btn-outline-primary btn-sm"> - Delete +