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 120-126 fieldset.rows label.viewlog { Link Here
120
							</li>
120
							</li>
121
                            [% UNLESS src == "circ" %]
121
                            [% UNLESS src == "circ" %]
122
                                <li>
122
                                <li>
123
                                    <label for="modules">Modules:</label>
123
                                    <label>Modules:</label>
124
                                    <div class="log_modules">
124
                                    <div class="log_modules">
125
                                        [% IF modules.size == 0 %]
125
                                        [% IF modules.size == 0 %]
126
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
126
                                            <label for="moduleALL" class="viewlog"><input type="checkbox" id="moduleALL" name="modules" value="" checked="checked"> All</label>
Lines 141-147 fieldset.rows label.viewlog { Link Here
141
                                <input type="hidden" name="modules" value="CIRCULATION" />
141
                                <input type="hidden" name="modules" value="CIRCULATION" />
142
                            [% END %]
142
                            [% END %]
143
                            <li>
143
                            <li>
144
                                <label for="actions">Actions:</label>
144
                                <label>Actions:</label>
145
                                <div class="log_modules">
145
                                <div class="log_modules">
146
                                    [% IF actions.length == 0 %]
146
                                    [% IF actions.length == 0 %]
147
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
147
                                        <label for="actionALL" class="viewlog"><input type="checkbox" id="actionALL" name="actions" value="" checked="checked"> All</label>
Lines 151-159 fieldset.rows label.viewlog { Link Here
151
151
152
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' ] %]
152
                                    [% FOREACH actx IN [ 'ADD' 'DELETE' 'MODIFY' 'ISSUE' 'RETURN' 'RENEW' 'CREATE' 'CANCEL' 'SUSPEND' 'RESUME' 'ADDCIRCMESSAGE' 'DELCIRCMESSAGE' 'STATUS_CHANGE' 'CHANGE PASS' 'Run' ] %]
153
                                        [% IF actions.grep(actx).size %]
153
                                        [% IF actions.grep(actx).size %]
154
                                            <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>
154
                                            <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>
155
                                        [% ELSE %]
155
                                        [% ELSE %]
156
                                            <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>
156
                                            <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>
157
                                        [% END %]
157
                                        [% END %]
158
                                    [% END %]
158
                                    [% END %]
159
                                </div>
159
                                </div>
Lines 172-178 fieldset.rows label.viewlog { Link Here
172
                                <input type="text" id="info" name="info" value="[% info | html %]" />
172
                                <input type="text" id="info" name="info" value="[% info | html %]" />
173
							</li>
173
							</li>
174
                            <li>
174
                            <li>
175
                                <label for="interfaces">Interface:</label>
175
                                <label>Interface:</label>
176
                                [% IF interfaces.size == 0 %]
176
                                [% IF interfaces.size == 0 %]
177
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
177
                                    <label for="interfaceALL" class="viewlog"><input type="checkbox" id="interfaceALL" name="interfaces" value="" checked="checked"> All</label>
178
                                [% ELSE %]
178
                                [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/viewlog.js (-1 / +23 lines)
Lines 67-70 $(document).ready(function(){ Link Here
67
        "order": [[0, "desc"]],
67
        "order": [[0, "desc"]],
68
        "pagingType" : "full"
68
        "pagingType" : "full"
69
    }, columns_settings);
69
    }, columns_settings);
70
71
    var obj = $("#user").autocomplete({
72
        source: "/cgi-bin/koha/circ/ysearch.pl",
73
        minLength: 3,
74
        select: function ( event, ui ) {
75
            $("#user").val( ui.item.borrowernumber );
76
            return false;
77
        }
78
    }).data("ui-autocomplete");
79
    if (obj) {
80
        obj._renderItem = function (ul, item) {
81
            var cardnumber = "";
82
            if (item.cardnumber != "") {
83
                // Display card number in parentheses if it exists
84
                cardnumber = " (" + item.cardnumber + ") ";
85
            }
86
            return $("<li></li>")
87
                .data("ui-autocomplete-item", item)
88
                .append("<a href=\"#\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>")
89
                .appendTo(ul);
90
        };
91
    }
92
70
});
93
});
71
- 

Return to bug 26572