Lines 25-30
Link Here
|
25 |
<h1>API keys for [% INCLUDE 'patron-title.inc' %]</h1> |
25 |
<h1>API keys for [% INCLUDE 'patron-title.inc' %]</h1> |
26 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
26 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
27 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
27 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
|
|
28 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
28 |
<input type="hidden" name="op" value="generate" /> |
29 |
<input type="hidden" name="op" value="generate" /> |
29 |
<fieldset class="brief"> |
30 |
<fieldset class="brief"> |
30 |
<legend>Generate new client id/secret pair</legend> |
31 |
<legend>Generate new client id/secret pair</legend> |
Lines 65-76
Link Here
|
65 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
66 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
66 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
67 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
67 |
<input type="hidden" name="key" value="[% key.id %]" /> |
68 |
<input type="hidden" name="key" value="[% key.id %]" /> |
|
|
69 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
68 |
<input type="hidden" name="op" value="delete" /> |
70 |
<input type="hidden" name="op" value="delete" /> |
69 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash"></i> Delete</button> |
71 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash"></i> Delete</button> |
70 |
</form> |
72 |
</form> |
71 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
73 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
72 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
74 |
<input type="hidden" name="patron_id" value="[% patron.id %]" /> |
73 |
<input type="hidden" name="key" value="[% key.id %]" /> |
75 |
<input type="hidden" name="key" value="[% key.id %]" /> |
|
|
76 |
<input type="hidden" name="csrf_token" value="[% csrf_token %]" /> |
74 |
[% IF key.active %] |
77 |
[% IF key.active %] |
75 |
<input type="hidden" name="op" value="revoke" /> |
78 |
<input type="hidden" name="op" value="revoke" /> |
76 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-remove"></i> Revoke</button> |
79 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-remove"></i> Revoke</button> |