From 9893300370cef6e6a4836651c4c6936b69400992 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 2 Jun 2023 14:00:34 +0000 Subject: [PATCH] Bug 33883: "Make sure to copy your API secret" message overlaps text MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch updates the markup on the patron API keys page so that it uses standard classes for dialogs and page sections. To test you must have RESTOAuth2ClientCredentials enabled. - Apply the patch and locate a patron record. - From their checkout or detail page, choose More -> Manage API keys - Click "Generate a new client id/secret pair" - Enter a description and click Save. - You should see a message in a standard message-style dialog, "Make sure to copy your API secret now. You won’t be able to see it again!" - The API key information should be displayed in a .page-section div. - The table of existing keys should be displayed in a .page-section div. Signed-off-by: Matt Blenkinsop Signed-off-by: David Cook Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 7c652ce764b8e17dde8ce2f06099560c05e88374) Signed-off-by: Matt Blenkinsop --- .../prog/en/modules/members/apikeys.tt | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt index 449df56785..0ec3f375d2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt @@ -36,8 +36,8 @@ [% IF fresh_api_key %] [%# A fresh api key was generated, display the secret, only once %] -
- Make sure to copy your API secret now. You won’t be able to see it again! +
Make sure to copy your API secret now. You won’t be able to see it again!
+
  1. Description: @@ -72,8 +72,8 @@ -
    - [% IF api_keys.count %] + [% IF api_keys.count %] +

    @@ -117,18 +117,18 @@ [% END %] - [% ELSE %] -
    -
    No keys defined for the current patron.
    - +
    + [% ELSE %] +
    +

    No keys defined for the current patron.

    +

    + + + Generate a new client id/secret pair + +

    +

    + [% END # /IF api_keys.count %]
    -- 2.39.5