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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt (-5 / +5 lines)
Lines 147-153 Link Here
147
							</li>
147
							</li>
148
                            [% UNLESS src == "circ" %]
148
                            [% UNLESS src == "circ" %]
149
                                <li>
149
                                <li>
150
                                    <label for="modules">Modules:</label>
150
                                    <label>Modules:</label>
151
                                    <div class="log_modules">
151
                                    <div class="log_modules">
152
                                        [% IF modules.size == 0 %]
152
                                        [% IF modules.size == 0 %]
153
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
153
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
Lines 168-174 Link Here
168
                                <input type="hidden" name="modules" value="CIRCULATION" />
168
                                <input type="hidden" name="modules" value="CIRCULATION" />
169
                            [% END %]
169
                            [% END %]
170
                            <li>
170
                            <li>
171
                                <label for="actions">Actions:</label>
171
                                <label>Actions:</label>
172
                                <div class="log_modules">
172
                                <div class="log_modules">
173
                                    [% IF actions.length == 0 %]
173
                                    [% IF actions.length == 0 %]
174
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
174
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
Lines 178-186 Link Here
178
178
179
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' ] %]
179
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' ] %]
180
                                        [% IF actions.grep(actx).size %]
180
                                        [% IF actions.grep(actx).size %]
181
                                            <label for="action[% actx | html %]" class="viewlog"><input type="checkbox" id="action[% actx | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
181
                                            <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]" checked="checked"> [% PROCESS translate_log_action action=actx %]</label>
182
                                        [% ELSE %]
182
                                        [% ELSE %]
183
                                            <label for="action[% actx | html %]" class="viewlog"><input type="checkbox" id="action[% actx | html %]" name="actions" value="[% actx | html %]"> [% PROCESS translate_log_action action=actx %]</label>
183
                                            <label for="action[% actx| replace('\s+', '_') | html %]" class="viewlog"><input type="checkbox" id="action[% actx | replace('\s+', '_') | html %]" name="actions" value="[% actx | html %]"> [% PROCESS translate_log_action action=actx %]</label>
184
                                        [% END %]
184
                                        [% END %]
185
                                    [% END %]
185
                                    [% END %]
186
                                </div>
186
                                </div>
Lines 199-205 Link Here
199
                                <input type="text" id="info" name="info" value="[% info | html %]" />
199
                                <input type="text" id="info" name="info" value="[% info | html %]" />
200
							</li>
200
							</li>
201
                            <li>
201
                            <li>
202
                                <label for="interfaces">Interface:</label>
202
                                <label>Interface:</label>
203
                                [% IF interfaces.size == 0 %]
203
                                [% IF interfaces.size == 0 %]
204
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
204
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
205
                                [% ELSE %]
205
                                [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js (-1 / +22 lines)
Lines 144-147 $(document).ready(function(){ Link Here
144
        e.preventDefault();
144
        e.preventDefault();
145
        $(".compare:checked").prop("checked", false).change();
145
        $(".compare:checked").prop("checked", false).change();
146
    });
146
    });
147
    var obj = $("#user").autocomplete({
148
        source: "/cgi-bin/koha/circ/ysearch.pl",
149
        minLength: 3,
150
        select: function ( event, ui ) {
151
            $("#user").val( ui.item.borrowernumber );
152
            return false;
153
        }
154
    }).data("ui-autocomplete");
155
    if (obj) {
156
        obj._renderItem = function (ul, item) {
157
            var cardnumber = "";
158
            if (item.cardnumber != "") {
159
                // Display card number in parentheses if it exists
160
                cardnumber = " (" + item.cardnumber + ") ";
161
            }
162
            return $("<li></li>")
163
                .data("ui-autocomplete-item", item)
164
                .append("<a href=\"#\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>")
165
                .appendTo(ul);
166
        };
167
    }
168
147
});
169
});
148
- 

Return to bug 26572