Lines 31-37
Link Here
|
31 |
<div class="span10"> |
31 |
<div class="span10"> |
32 |
<div id="usersuggestions" class="maincontent"> |
32 |
<div id="usersuggestions" class="maincontent"> |
33 |
[% IF ( op_add ) %] |
33 |
[% IF ( op_add ) %] |
34 |
[% IF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
34 |
[% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %] |
|
|
35 |
<h1 class="TooManySuggestions">You cannot place any more suggestions</h1> |
36 |
<h2 class="TooManySuggestionsText">You may have only [% Koha.Preference('MaxTotalSuggestions') | html %] suggestions in last [% Koha.Preference('NumberOfSuggestionDays') | html %] days.</h2> |
37 |
[% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
35 |
<h1 class="TooManySuggestions">You cannot place any more suggestions</h1> |
38 |
<h1 class="TooManySuggestions">You cannot place any more suggestions</h1> |
36 |
<h2 class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more.</h2> |
39 |
<h2 class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more.</h2> |
37 |
[% ELSE %] |
40 |
[% ELSE %] |
Lines 236-241
Link Here
|
236 |
[% FOR m IN messages %] |
239 |
[% FOR m IN messages %] |
237 |
<div class="alert alert-[% m.type | html %]"> |
240 |
<div class="alert alert-[% m.type | html %]"> |
238 |
[% SWITCH m.code %] |
241 |
[% SWITCH m.code %] |
|
|
242 |
[% CASE 'total_suggestions' %] |
243 |
The suggestion has not been added. You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxTotalSuggestions') | html %] last [% Koha.Preference('NumberOfSuggestionDays') | html %] days). |
239 |
[% CASE 'too_many' %] |
244 |
[% CASE 'too_many' %] |
240 |
The suggestion has not been added. You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more. |
245 |
The suggestion has not been added. You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]). Once the library has processed those suggestions you will be able to place more. |
241 |
[% CASE 'already_exists' %] |
246 |
[% CASE 'already_exists' %] |
Lines 278-284
Link Here
|
278 |
<input type="hidden" name="op" value="delete_confirm" /> |
283 |
<input type="hidden" name="op" value="delete_confirm" /> |
279 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
284 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
280 |
<div id="toolbar" class="toolbar clearfix"> |
285 |
<div id="toolbar" class="toolbar clearfix"> |
281 |
[% IF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
286 |
[% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %] |
|
|
287 |
<p class="TooManySuggestionsText">You may have only <b>[% Koha.Preference('MaxTotalSuggestions') | html %]</b> suggestions in last <b>[% Koha.Preference('NumberOfSuggestionDays') | html %]</b> days.</p> |
288 |
[% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
282 |
<p class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]).</br>Once the library has processed those suggestions you will be able to place more.</p> |
289 |
<p class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]).</br>Once the library has processed those suggestions you will be able to place more.</p> |
283 |
[% ELSE %] |
290 |
[% ELSE %] |
284 |
<a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a> |
291 |
<a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a> |
Lines 392-398
Link Here
|
392 |
<p>There are no pending purchase suggestions.</p> |
399 |
<p>There are no pending purchase suggestions.</p> |
393 |
[% END %] |
400 |
[% END %] |
394 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
401 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
395 |
[% IF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
402 |
[% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %] |
|
|
403 |
<p class="TooManySuggestionsText">You may have only <b>[% Koha.Preference('MaxTotalSuggestions') | html %]</b> suggestions in last <b>[% Koha.Preference('NumberOfSuggestionDays') | html %]</b> days.</p> |
404 |
[% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
396 |
<p class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time.</br>Once the library has processed those suggestions you will be able to place more.</p> |
405 |
<p class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time.</br>Once the library has processed those suggestions you will be able to place more.</p> |
397 |
[% ELSE %] |
406 |
[% ELSE %] |
398 |
<p><a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a></p> |
407 |
<p><a class="btn btn-link new" href="/cgi-bin/koha/opac-suggestions.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a></p> |