Lines 28-33
Link Here
|
28 |
<div class="span10"> |
28 |
<div class="span10"> |
29 |
<div id="usersuggestions" class="maincontent"> |
29 |
<div id="usersuggestions" class="maincontent"> |
30 |
[% IF ( op_add ) %] |
30 |
[% IF ( op_add ) %] |
|
|
31 |
[% IF ( Koha.Preference('MaxOpenSuggestions') && own_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
32 |
<h1 class="TooManySuggestions">You cannot place any more suggestions</h1> |
33 |
<h2 class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') %]). Once the library has processed those suggestions you will be able to place more.</h2> |
34 |
[% ELSE %] |
31 |
<h1>Enter a new purchase suggestion</h1> |
35 |
<h1>Enter a new purchase suggestion</h1> |
32 |
|
36 |
|
33 |
<p>Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion</p> |
37 |
<p>Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion</p> |
Lines 88-93
Link Here
|
88 |
<input type="submit" onclick="Check(this.form); return false;" class="btn" value="Submit your suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a> |
92 |
<input type="submit" onclick="Check(this.form); return false;" class="btn" value="Submit your suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a> |
89 |
</fieldset> |
93 |
</fieldset> |
90 |
</form> |
94 |
</form> |
|
|
95 |
[% END %] |
91 |
[% END # IF op_add %] |
96 |
[% END # IF op_add %] |
92 |
|
97 |
|
93 |
[% IF ( op_else ) %] |
98 |
[% IF ( op_else ) %] |
Lines 105-110
Link Here
|
105 |
[% FOR m IN messages %] |
110 |
[% FOR m IN messages %] |
106 |
<div class="alert alert-[% m.type %]"> |
111 |
<div class="alert alert-[% m.type %]"> |
107 |
[% SWITCH m.code %] |
112 |
[% SWITCH m.code %] |
|
|
113 |
[% CASE 'too_many' %] |
114 |
The suggestion has not been added. You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') %]). Once the library has processed those suggestions you will be able to place more. |
108 |
[% CASE 'already_exists' %] |
115 |
[% CASE 'already_exists' %] |
109 |
The suggestion has not been added. A suggestion with this title already exists. |
116 |
The suggestion has not been added. A suggestion with this title already exists. |
110 |
[% CASE 'success_on_inserted' %] |
117 |
[% CASE 'success_on_inserted' %] |
Lines 145-151
Link Here
|
145 |
<input type="hidden" name="op" value="delete_confirm" /> |
152 |
<input type="hidden" name="op" value="delete_confirm" /> |
146 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
153 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
147 |
<div id="toolbar" class="toolbar clearfix"> |
154 |
<div id="toolbar" class="toolbar clearfix"> |
148 |
<a class="new" href="/cgi-bin/koha/opac-suggestions.pl?op=add">New purchase suggestion</a> |
155 |
[% IF ( Koha.Preference('MaxOpenSuggestions') && own_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
|
|
156 |
<p class="TooManySuggestionsText">You have reached your limit of suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') %]).</br>Once the library has processed those suggestions you will be able to place more.</p> |
157 |
[% ELSE %] |
158 |
<a class="new" href="/cgi-bin/koha/opac-suggestions.pl?op=add">New purchase suggestion</a> |
159 |
[% END %] |
149 |
</div> |
160 |
</div> |
150 |
[% END %] |
161 |
[% END %] |
151 |
|
162 |
|
Lines 245-251
Link Here
|
245 |
<p>There are no pending purchase suggestions.</p> |
256 |
<p>There are no pending purchase suggestions.</p> |
246 |
[% END %] |
257 |
[% END %] |
247 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
258 |
[% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] |
248 |
<p><a class="new" href="/cgi-bin/koha/opac-suggestions.pl?op=add">New purchase suggestion</a></p> |
259 |
[% IF ( Koha.Preference('MaxOpenSuggestions') && own_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %] |
|
|
260 |
<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> |
261 |
[% ELSE %] |
262 |
<p><a class="new" href="/cgi-bin/koha/opac-suggestions.pl?op=add">New purchase suggestion</a></p> |
263 |
[% END %] |
249 |
[% END %] |
264 |
[% END %] |
250 |
[% END # / IF suggestions_loop %] |
265 |
[% END # / IF suggestions_loop %] |
251 |
|
266 |
|