Lines 57-63
Link Here
|
57 |
|
57 |
|
58 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
58 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
59 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
59 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
60 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
60 |
[% INCLUDE csrf-token.inc %] |
61 |
<input type="hidden" name="op" value="generate" /> |
61 |
<input type="hidden" name="op" value="generate" /> |
62 |
<fieldset class="brief"> |
62 |
<fieldset class="brief"> |
63 |
<legend>Generate new client id/secret pair</legend> |
63 |
<legend>Generate new client id/secret pair</legend> |
Lines 96-109
Link Here
|
96 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
96 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
97 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
97 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
98 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
98 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
99 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
99 |
[% INCLUDE csrf-token.inc %] |
100 |
<input type="hidden" name="op" value="delete" /> |
100 |
<input type="hidden" name="op" value="delete" /> |
101 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash-can"></i> Delete</button> |
101 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash-can"></i> Delete</button> |
102 |
</form> |
102 |
</form> |
103 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
103 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
104 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
104 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
105 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
105 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
106 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
106 |
[% INCLUDE csrf-token.inc %] |
107 |
[% IF key.active %] |
107 |
[% IF key.active %] |
108 |
<input type="hidden" name="op" value="revoke" /> |
108 |
<input type="hidden" name="op" value="revoke" /> |
109 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-times"></i> Revoke</button> |
109 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-times"></i> Revoke</button> |