Lines 36-43
Link Here
|
36 |
|
36 |
|
37 |
[% IF fresh_api_key %] |
37 |
[% IF fresh_api_key %] |
38 |
[%# A fresh api key was generated, display the secret, only once %] |
38 |
[%# A fresh api key was generated, display the secret, only once %] |
39 |
<div class="rows"> |
39 |
<div class="dialog message">Make sure to copy your API secret now. You won’t be able to see it again!</div> |
40 |
<span class="alert">Make sure to copy your API secret now. You won’t be able to see it again!</span> |
40 |
<div class="page-section rows"> |
41 |
<ol> |
41 |
<ol> |
42 |
<li> |
42 |
<li> |
43 |
<span class="label">Description: </span> |
43 |
<span class="label">Description: </span> |
Lines 72-79
Link Here
|
72 |
</fieldset> |
72 |
</fieldset> |
73 |
</form> |
73 |
</form> |
74 |
|
74 |
|
75 |
<div id="keys"> |
75 |
[% IF api_keys.count %] |
76 |
[% IF api_keys.count %] |
76 |
<div class="page-section" id="keys"> |
77 |
<p> |
77 |
<p> |
78 |
<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> |
78 |
<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> |
79 |
</p> |
79 |
</p> |
Lines 117-134
Link Here
|
117 |
[% END %] |
117 |
[% END %] |
118 |
</tbody> |
118 |
</tbody> |
119 |
</table> |
119 |
</table> |
120 |
[% ELSE %] |
120 |
</div> <!-- /#keys.page-section --> |
121 |
<div class="dialog message"> |
121 |
[% ELSE %] |
122 |
<div>No keys defined for the current patron.</div> |
122 |
<div class="dialog message"> |
123 |
<div> |
123 |
<p>No keys defined for the current patron.</p> |
124 |
<a href="#" class="toggle_element" data-element="#add-api-key" id="show-api-form"> |
124 |
<p> |
125 |
<i class="fa fa-plus"></i> |
125 |
<a href="#" class="btn btn-default toggle_element" data-element="#add-api-key" id="show-api-form"> |
126 |
<span>Generate a new client id/secret pair</span> |
126 |
<i class="fa fa-plus"></i> |
127 |
</a> |
127 |
<span>Generate a new client id/secret pair</span> |
128 |
<div> |
128 |
</a> |
129 |
</div> |
129 |
<p> |
130 |
[% END %] |
130 |
</div> |
131 |
</div> |
131 |
[% END # /IF api_keys.count %] |
132 |
</main> |
132 |
</main> |
133 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
133 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
134 |
|
134 |
|
135 |
- |
|
|