Bug 20489: Remove warnings from the interface
Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
d68fe07bf8
commit
3277ca88fd
|
|
@ -35,13 +35,6 @@
|
|||
[% END %]
|
||||
</div> <!-- /.col-sm-2 -->
|
||||
<div class="col-sm-9">
|
||||
[% IF adminWarning %]
|
||||
<div id="adminwarning" class="dialog alert">
|
||||
<p><strong>Warning:</strong> You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
|
||||
<p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p>
|
||||
<p><a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-plus"> </i> Create patron</a></p>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<ul class="biglinks-list">
|
||||
|
|
|
|||
|
|
@ -39,17 +39,6 @@
|
|||
<div class="span10">
|
||||
<div id="userdetails" class="maincontent">
|
||||
|
||||
[% IF adminWarning %]
|
||||
<div id="adminwarning" class="dialog alert">
|
||||
<p>
|
||||
<strong><i class="fa fa-exclamation-triangle"> </i> Warning:</strong>
|
||||
Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account.
|
||||
<a class="btn btn-small" href="/cgi-bin/koha/opac-main.pl?logout.x=1">
|
||||
<i class="fa fa-sign-out"> </i> Log out</a>
|
||||
</p>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'opac-note.inc' %]
|
||||
|
||||
<h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]
|
||||
|
|
|
|||
|
|
@ -84,11 +84,4 @@ $template->param(
|
|||
pending_article_requests => $pending_article_requests,
|
||||
);
|
||||
|
||||
#
|
||||
# warn user if they are using mysql/admin login
|
||||
#
|
||||
unless ($loggedinuser) {
|
||||
$template->param(adminWarning => 1);
|
||||
}
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
|
|
@ -88,10 +88,6 @@ my $canrenew = 1;
|
|||
|
||||
$template->param( shibbolethAuthentication => C4::Context->config('useshibboleth') );
|
||||
|
||||
if (!$borrowernumber) {
|
||||
$template->param( adminWarning => 1 );
|
||||
}
|
||||
|
||||
# get borrower information ....
|
||||
my $patron = Koha::Patrons->find( $borrowernumber );
|
||||
my $borr = $patron->unblessed;
|
||||
|
|
|
|||
Loading…
Reference in New Issue