View | Details | Raw Unified | Return to bug 17082
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/noadd-warnings.inc (+11 lines)
Line 0 Link Here
1
[% IF ( no_add ) %]
2
    <div class="dialog alert">
3
        <h3>Cannot add patron</h3>
4
        [% IF ( no_branches ) %]
5
            <p><strong>There are no libraries defined. </strong>[% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/branches.pl">Please add a library</a>.[% ELSE %]An administrator must define at least one library.[% END %]</p>
6
        [% END %]
7
        [% IF ( no_categories ) %]
8
            <p><strong>There are no patron categories defined. </strong>[% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/categories.pl">Please add a patron category</a>.[% ELSE %]An administrator must define at least one patron category.[% END %]</p>
9
        [% END %]
10
    </div>
11
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-11 / +2 lines)
Lines 334-350 function filterByFirstLetterSurname(letter) { Link Here
334
          [% END %]
334
          [% END %]
335
335
336
          [% INCLUDE 'patron-toolbar.inc' %]
336
          [% INCLUDE 'patron-toolbar.inc' %]
337
          [% IF ( no_add ) %]
337
          [% INCLUDE 'noadd-warnings.inc' %]
338
            <div class="dialog alert">
338
339
              <h3>Cannot add patron</h3>
340
              [% IF ( no_branches ) %]
341
                <p>There are <strong>no libraries defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/branches.pl">add a library</a>.[% ELSE %]An administrator must define at least one library.[% END %]</p>
342
              [% END %]
343
              [% IF ( no_categories ) %]
344
                <p>There are <strong>no patron categories defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/categories.pl">add a patron category</a>.[% ELSE %]An administrator must define at least one patron category.[% END %]</p>
345
              [% END %]
346
            </div>
347
          [% END %]
348
          <div class="browse">
339
          <div class="browse">
349
            Browse by last name:
340
            Browse by last name:
350
            [% FOREACH letter IN alphabet.split(' ') %]
341
            [% FOREACH letter IN alphabet.split(' ') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-4 / +1 lines)
Lines 125-133 $(document).ready(function() { Link Here
125
        <div class="dialog message">Email has been sent.</div>
125
        <div class="dialog message">Email has been sent.</div>
126
    [% END %]
126
    [% END %]
127
127
128
	[% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
128
    [% INCLUDE 'noadd-warnings.inc' %]
129
            [% IF ( no_branches ) %]<p><strong>There are no libraries defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/branches.pl">Please add a library.</a>[% ELSE %]An administrator must define at least one library.[% END %]</p>[% END %]
130
            [% IF ( no_categories ) %]<p><strong>There are no patron categories defined.</strong> [% IF ( CAN_user_parameters ) %]<a href="/cgi-bin/koha/admin/categories.pl">Please add a patron category.</a>[% ELSE %]An administrator must define at least one patron category.</p>[% END %][% END %]</div>[% END %]
131
129
132
	[% UNLESS ( no_add ) %]
130
	[% UNLESS ( no_add ) %]
133
    <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1>
131
    <h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1>
134
- 

Return to bug 17082