|
Lines 34-39
Link Here
|
| 34 |
[% INCLUDE 'members-toolbar.inc' %] |
34 |
[% INCLUDE 'members-toolbar.inc' %] |
| 35 |
|
35 |
|
| 36 |
<h1>API keys for [% INCLUDE 'patron-title.inc' %]</h1> |
36 |
<h1>API keys for [% INCLUDE 'patron-title.inc' %]</h1> |
|
|
37 |
|
| 38 |
[% IF fresh_api_key %] |
| 39 |
[%# A fresh api key was generated, display the secret, only once %] |
| 40 |
<div class="rows"> |
| 41 |
<span class="alert">Make sure to copy your API secret now. You won’t be able to see it again!</span> |
| 42 |
<ol> |
| 43 |
<li> |
| 44 |
<span class="label">Description: </span> |
| 45 |
[% fresh_api_key.description | html %] |
| 46 |
</li> |
| 47 |
<li> |
| 48 |
<span class="label">Client ID: </span> |
| 49 |
[% fresh_api_key.client_id | html %] |
| 50 |
</li> |
| 51 |
<li> |
| 52 |
<span class="label">Secret: </span> |
| 53 |
[% fresh_api_key.plain_text_secret | html %] |
| 54 |
</li> |
| 55 |
</ol> |
| 56 |
</div> |
| 57 |
[% END %] |
| 58 |
|
| 37 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
59 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
| 38 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
60 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
| 39 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
61 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
|
Lines 61-67
Link Here
|
| 61 |
<tr> |
83 |
<tr> |
| 62 |
<th>Description</th> |
84 |
<th>Description</th> |
| 63 |
<th>Client ID</th> |
85 |
<th>Client ID</th> |
| 64 |
<th>Secret</th> |
|
|
| 65 |
<th>Active</th> |
86 |
<th>Active</th> |
| 66 |
<th class="noExport">Actions</th> |
87 |
<th class="noExport">Actions</th> |
| 67 |
</tr> |
88 |
</tr> |
|
Lines 71-77
Link Here
|
| 71 |
<tr> |
92 |
<tr> |
| 72 |
<td>[% key.description | html %]</td> |
93 |
<td>[% key.description | html %]</td> |
| 73 |
<td>[% key.client_id | html %]</td> |
94 |
<td>[% key.client_id | html %]</td> |
| 74 |
<td>[% key.secret | html %]</td> |
|
|
| 75 |
<td>[% IF key.active %]Yes[% ELSE %]No[% END %]</td> |
95 |
<td>[% IF key.active %]Yes[% ELSE %]No[% END %]</td> |
| 76 |
<td> |
96 |
<td> |
| 77 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
97 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |