Bugzilla – Attachment 152033 Details for
Bug 33883
"Make sure to copy your API secret" message overlaps text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33883: "Make sure to copy your API secret" message overlaps text
Bug-33883-Make-sure-to-copy-your-API-secret-messag.patch (text/plain), 4.06 KB, created by
David Cook
on 2023-06-06 06:25:32 UTC
(
hide
)
Description:
Bug 33883: "Make sure to copy your API secret" message overlaps text
Filename:
MIME Type:
Creator:
David Cook
Created:
2023-06-06 06:25:32 UTC
Size:
4.06 KB
patch
obsolete
>From 32a715724c7f9e5c83efea643c77e76d10daec01 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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=UTF-8 >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 <matt.blenkinsop@ptfs-europe.com> >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > .../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 %] >- <div class="rows"> >- <span class="alert">Make sure to copy your API secret now. You wonât be able to see it again!</span> >+ <div class="dialog message">Make sure to copy your API secret now. You wonât be able to see it again!</div> >+ <div class="page-section rows"> > <ol> > <li> > <span class="label">Description: </span> >@@ -72,8 +72,8 @@ > </fieldset> > </form> > >- <div id="keys"> >- [% IF api_keys.count %] >+ [% IF api_keys.count %] >+ <div class="page-section" id="keys"> > <p> > <button class="btn btn-default toggle_element" type="submit" id="show-api-form" data-element="#add-api-key"><i class="fa fa-plus"></i> Generate a new client id/key pair</button> > </p> >@@ -117,18 +117,18 @@ > [% END %] > </tbody> > </table> >- [% ELSE %] >- <div class="dialog message"> >- <div>No keys defined for the current patron.</div> >- <div> >- <a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"> >- <i class="fa fa-plus"></i> >- <span>Generate a new client id/secret pair</span> >- </a> >- <div> >- </div> >- [% END %] >- </div> >+ </div> <!-- /#keys.page-section --> >+ [% ELSE %] >+ <div class="dialog message"> >+ <p>No keys defined for the current patron.</p> >+ <p> >+ <a href="#" class="btn btn-default toggle_element" data-element="#add-api-key" id="show-api-form"> >+ <i class="fa fa-plus"></i> >+ <span>Generate a new client id/secret pair</span> >+ </a> >+ <p> >+ </div> >+ [% END # /IF api_keys.count %] > </main> > </div> <!-- /.col-sm-10.col-sm-push-2 --> > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33883
:
151982
|
151983
|
151985
| 152033