|
Lines 27-32
Link Here
|
| 27 |
[% IF ( CAN_user_plugins_manage ) %] |
27 |
[% IF ( CAN_user_plugins_manage ) %] |
| 28 |
<div class="btn-toolbar" id="toolbar"> |
28 |
<div class="btn-toolbar" id="toolbar"> |
| 29 |
<a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default"><i class="fa fa-upload"></i> Upload plugin</a> |
29 |
<a href="/cgi-bin/koha/plugins/plugins-upload.pl" id="upload_plugin" class="btn btn-default"><i class="fa fa-upload"></i> Upload plugin</a> |
|
|
30 |
|
| 30 |
<div class="btn-group"> |
31 |
<div class="btn-group"> |
| 31 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> View plugins by class <span class="caret"></span></button> |
32 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-eye"></i> View plugins by class <span class="caret"></span></button> |
| 32 |
<ul class="dropdown-menu"> |
33 |
<ul class="dropdown-menu"> |
|
Lines 38-47
Link Here
|
| 38 |
<li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=intranet_catalog_biblio_enhancements">View intranet catalog biblio enhancement plugins</a></li> |
39 |
<li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=intranet_catalog_biblio_enhancements">View intranet catalog biblio enhancement plugins</a></li> |
| 39 |
</ul> |
40 |
</ul> |
| 40 |
</div> |
41 |
</div> |
|
|
42 |
|
| 43 |
<div class="btn-group"> |
| 44 |
<form class="form-inline"> |
| 45 |
<div class="form-group"> |
| 46 |
<div class="input-group"> |
| 47 |
<input type="text" class="form-control" name="plugin-search" id="plugin-repo-search" placeholder="Search for plugins" value="[% search_term | html %]"/> |
| 48 |
<div class="input-group-addon"><i class="fa fa-search"></i></div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</form> |
| 52 |
</div> |
| 41 |
</div> |
53 |
</div> |
| 42 |
[% END %] |
54 |
[% END %] |
| 43 |
<h1>Plugins</h1> |
55 |
<h1>Plugins</h1> |
| 44 |
|
56 |
|
|
|
57 |
[% IF search_results %] |
| 58 |
<h2>Search results</h2> |
| 59 |
<table class="table table-striped"> |
| 60 |
<thead> |
| 61 |
<tr> |
| 62 |
<th>Name</th> |
| 63 |
<th>Description</th> |
| 64 |
<th>Organization</th> |
| 65 |
<th> </th> |
| 66 |
</tr> |
| 67 |
</thead> |
| 68 |
|
| 69 |
[% FOREACH sr IN search_results %] |
| 70 |
<tr> |
| 71 |
<td><a href="[% sr.result.html_url | url %]" target="_new">[% sr.result.name %]</a></td> |
| 72 |
<td>[% sr.result.description %]</td> |
| 73 |
<td>[% sr.repo.name %]</td> |
| 74 |
<td><button class="btn btn-install-plugin"><i class="fa fa-download"></i> Install</button></td> |
| 75 |
</tr> |
| 76 |
[% END %] |
| 77 |
</table> |
| 78 |
[% END %] |
| 79 |
|
| 45 |
[% UNLESS ( plugins ) %] |
80 |
[% UNLESS ( plugins ) %] |
| 46 |
[% UNLESS ( method ) %] |
81 |
[% UNLESS ( method ) %] |
| 47 |
<div class="dialog message">No plugins installed</div> |
82 |
<div class="dialog message">No plugins installed</div> |
|
Lines 161-166
Link Here
|
| 161 |
[% INCLUDE 'calendar.inc' %] |
196 |
[% INCLUDE 'calendar.inc' %] |
| 162 |
<script> |
197 |
<script> |
| 163 |
$(document).ready(function(){ |
198 |
$(document).ready(function(){ |
|
|
199 |
$(".btn-install-plugin").on("click", function() { alert("Sorry, this functionality doesn't exist yet!"); }); |
| 164 |
$(".uninstall_plugin").on("click", function(){ |
200 |
$(".uninstall_plugin").on("click", function(){ |
| 165 |
$(".dropdown").removeClass("open"); |
201 |
$(".dropdown").removeClass("open"); |
| 166 |
var plugin_name = $(this).data("plugin-name"); |
202 |
var plugin_name = $(this).data("plugin-name"); |