Lines 62-68
Link Here
|
62 |
|
62 |
|
63 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
63 |
<form id="add-api-key" action="/cgi-bin/koha/members/apikeys.pl" method="post" style="display:none"> |
64 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
64 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
65 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
65 |
[% INCLUDE 'csrf-token.inc' %] |
66 |
<input type="hidden" name="op" value="generate" /> |
66 |
<input type="hidden" name="op" value="generate" /> |
67 |
<fieldset class="brief"> |
67 |
<fieldset class="brief"> |
68 |
<legend>Generate new client id/secret pair</legend> |
68 |
<legend>Generate new client id/secret pair</legend> |
Lines 101-114
Link Here
|
101 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
101 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
102 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
102 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
103 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
103 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
104 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
104 |
[% INCLUDE 'csrf-token.inc' %] |
105 |
<input type="hidden" name="op" value="delete" /> |
105 |
<input type="hidden" name="op" value="delete" /> |
106 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash-can"></i> Delete</button> |
106 |
<button class="btn btn-default btn-xs delete" type="submit"><i class="fa fa-trash-can"></i> Delete</button> |
107 |
</form> |
107 |
</form> |
108 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
108 |
<form action="/cgi-bin/koha/members/apikeys.pl" method="post"> |
109 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
109 |
<input type="hidden" name="patron_id" value="[% patron.id | html %]" /> |
110 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
110 |
<input type="hidden" name="key" value="[% key.id | html %]" /> |
111 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
111 |
[% INCLUDE 'csrf-token.inc' %] |
112 |
[% IF key.active %] |
112 |
[% IF key.active %] |
113 |
<input type="hidden" name="op" value="revoke" /> |
113 |
<input type="hidden" name="op" value="revoke" /> |
114 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-times"></i> Revoke</button> |
114 |
<button class="btn btn-default btn-xs" type="submit"><i class="fa fa-times"></i> Revoke</button> |