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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt (-16 / +31 lines)
Lines 58-67 Link Here
58
        <h1>[% list.name | html %]</h1>
58
        <h1>[% list.name | html %]</h1>
59
59
60
        [% IF ( not_found.size > 0 ) %]
60
        [% IF ( not_found.size > 0 ) %]
61
        <div class="dialog alert"><p>Warning, the following [% id_column | html %] were not found:</p></div>
61
        [% IF id_column == 'borrowernumbers' %]
62
            <div class="dialog alert"><p>Warning, the following borrowernumbers were not found:</p></div>
63
        [% ELSE %]
64
            <div class="dialog alert"><p>Warning, the following cardnumbers were not found:</p></div>
65
        [% END %]
62
        <table style="margin:auto;">
66
        <table style="margin:auto;">
63
            <thead>
67
            <thead>
64
                <tr><th>[% id_column | html FILTER ucfirst %] not found</th></tr>
68
                [% IF id_column == 'borrowernumbers' %]
69
                    <tr><th>Borrowernumbers not found</th></tr>
70
                [% ELSE %]
71
                    <tr><th>Cardnumbers not found</th></tr>
72
                [% END %]
65
            </thead>
73
            </thead>
66
            <tbody>
74
            <tbody>
67
            [% FOREACH nf IN not_found %]
75
            [% FOREACH nf IN not_found %]
Lines 72-81 Link Here
72
        [% END %]
80
        [% END %]
73
81
74
        [% IF ( existed.size > 0 ) %]
82
        [% IF ( existed.size > 0 ) %]
75
        <div class="dialog alert"><p>Warning, the following [% id_column | html %] were already in this list:</p></div>
83
        [% IF id_column == 'borrowernumbers' %]
84
            <div class="dialog alert"><p>Warning, the following borrowernumbers were already in this list:</p></div>
85
        [% ELSE %]
86
            <div class="dialog alert"><p>Warning, the following cardnumbers were already in this list:</p></div>
87
        [% END %]
76
        <table style="margin:auto;">
88
        <table style="margin:auto;">
77
            <thead>
89
            <thead>
78
                <tr><th>[% id_column | html FILTER ucfirst %] already in list</th></tr>
90
                [% IF id_column == 'borrowernumbers' %]
91
                    <tr><th>Borrowernumbers already in list</th></tr>
92
                [% ELSE %]
93
                    <tr><th>Cardnumbers already in list</th></tr>
94
                [% END %]
79
            </thead>
95
            </thead>
80
            <tbody>
96
            <tbody>
81
            [% FOREACH ed IN existed %]
97
            [% FOREACH ed IN existed %]
Lines 99-121 Link Here
99
                    <li id="add_patrons_by_id"><a href="#">
115
                    <li id="add_patrons_by_id"><a href="#">
100
                        <span class="label">&nbsp;</span>
116
                        <span class="label">&nbsp;</span>
101
                        <i class="fa fa-plus"></i> Add multiple patrons</a></li>
117
                        <i class="fa fa-plus"></i> Add multiple patrons</a></li>
102
                    <li id="patron_ids_line">
118
                    <span id="patron_ids_line">
103
                    <fieldset class="rows">
119
                        <li><strong>Choose type of IDs to enter:</strong></li>
104
                        <legend>Choose type of ID to enter</legend>
120
                        <li class="radio">
105
                        <span class="radio">
121
                            <label class="id_choice" for="add_by_cardnumbers">
106
                            <label for "cardnumbers">
107
                                <input id="add_by_cardnumbers" type="radio" name="id_column" value="cardnumbers" checked="checked">
122
                                <input id="add_by_cardnumbers" type="radio" name="id_column" value="cardnumbers" checked="checked">
108
                                <span class="add_by_cardnumbers">Cardnumbers</span>
123
                                <span class="add_by_cardnumbers">Cardnumbers</span>
109
                            </label>
124
                            </label>
110
                            <label for "borrowernumbers">
125
                            <label class="id_choice" for="add_by_borrowernumbers">
111
                                <input id="add_by_borrwernumbers" type="radio" name="id_column" value="borrowernumbers">
126
                                <input id="add_by_borrwernumbers" type="radio" name="id_column" value="borrowernumbers">
112
                                <span class="add_by_borrowernumbers">Borrowernumbers</span>
127
                                <span class="add_by_borrowernumbers">Borrowernumbers</span>
113
                            </label>
128
                            </label>
114
                        </span>
129
                        </li>
115
                    </fieldset>
130
                        <li>
116
                        <label for="patrons_by_id">List (one barcode per line):</label>
131
                            <label for="patrons_by_id">List (one ID per line):</label>
117
                        <textarea id="patrons_by_id" name="patrons_by_id" id="" cols="30" rows="10"></textarea>
132
                            <textarea id="patrons_by_id" name="patrons_by_id" id="" cols="30" rows="10"></textarea>
118
                    </li>
133
                        </li>
134
                    </span>
119
                </ol>
135
                </ol>
120
            </fieldset>
136
            </fieldset>
121
            <fieldset id="patron_ids_submit" class="action">
137
            <fieldset id="patron_ids_submit" class="action">
122
- 

Return to bug 16446