Bug 38714: systempreferences - remove localuse

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-16 12:37:42 +01:00 committed by Katrin Fischer
parent 49e9ca73e1
commit ab20d9371c
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 10 additions and 16 deletions

View File

@ -345,7 +345,7 @@ if ( $op eq 'add_form' ) {
################## DEFAULT ##################################
} else { # DEFAULT
#Adding tab management for system preferences
my $tab = $input->param('tab')||'local_use';
my $tab = 'local_use';
$template->param( $tab => 1 );
my ( $count, $results ) = StringSearch( $searchfield, $tab );
my @loop_data = ();

View File

@ -310,20 +310,15 @@
<a class="btn btn-default" id="newstopword" href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form"><i class="fa fa-plus"></i> New system preference</a>
</div>
[% IF ( tab != 'local_use' ) %]
<p>Please click on one of the tabs at the left side of this form.</p>
<table>
[% ELSE %]
<h1>Local use system preferences</h1>
<div class="page-section">
<table id="sysprefst">
<thead><tr>
<th>Preference</th>
<th>Explanation</th>
<th>Value</th>
<th class="noExport">Actions</th>
</tr></thead>
[% END %]
<h1>Local use system preferences</h1>
<div class="page-section">
<table id="sysprefst">
<thead><tr>
<th>Preference</th>
<th>Explanation</th>
<th>Value</th>
<th class="noExport">Actions</th>
</tr></thead>
<tbody>[% FOREACH loo IN loop %]
<tr>
@ -442,7 +437,6 @@
[% END %]
</tbody>
</table>
[% IF tab == 'local_use' %]</div>[% END %]
[% END %]
</main>