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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt (-37 / +33 lines)
Lines 51-93 Link Here
51
            <!-- Filters & Navigation -->
51
            <!-- Filters & Navigation -->
52
            <div class="col-md-2 order-sm-2 order-md-1">
52
            <div class="col-md-2 order-sm-2 order-md-1">
53
                <aside>
53
                <aside>
54
                    <div id="filters">
54
                    <form id="bookingsf">
55
                        <form id="bookingsf">
55
                        <fieldset class="brief">
56
                            <fieldset class="brief">
56
                            <h4>Refine results</h4>
57
                                <h4>Refine results</h4>
57
                            <ol>
58
                                <ol>
58
                                <li>
59
                                    <li>
59
                                    <label for="library">Holding library:</label>
60
                                        <label for="library">Holding library:</label>
60
                                    <select name="library" id="library">
61
                                        <select name="library" id="library">
61
                                        [% SET libraries = Branches.all( only_from_group => 1 ) %]
62
                                            [% SET libraries = Branches.all( only_from_group => 1 ) %]
62
                                        [% IF libraries.size != 1 %]
63
                                            [% IF libraries.size != 1 %]
63
                                            <option value="">Any</option>
64
                                                <option value="">Any</option>
64
                                        [% END %]
65
                                        [% FOREACH l IN libraries %]
66
                                            [% IF (l.branchcode == branchcode) %]
67
                                                <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
68
                                            [% ELSE %]
69
                                                <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
65
                                            [% END %]
70
                                            [% END %]
66
                                            [% FOREACH l IN libraries %]
71
                                        [% END %]
67
                                                [% IF (l.branchcode == branchcode) %]
72
                                    </select>
68
                                                    <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
73
                                </li>
69
                                                [% ELSE %]
74
                                <li>
70
                                                    <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
75
                                    <label for="from">Starts after: </label>
71
                                                [% END %]
76
                                    <input type="text" size="10" id="from" name="from" value="[% from | html %]" class="flatpickr" data-date_to="to"/>
72
                                            [% END %]
77
                                </li>
73
                                        </select>
78
                                <li>
74
                                    </li>
79
                                    <label for="to">Starts before: </label>
75
                                    <li>
80
                                    <input type="text" size="10" id="to" name="to" value="[% to | html %]" class="flatpickr"/>
76
                                        <label for="from">Starts after: </label>
81
                                </li>
77
                                        <input type="text" size="10" id="from" name="from" value="[% from | html %]" class="flatpickr" data-date_to="to"/>
82
                            </ol>
78
                                    </li>
83
                        </fieldset>
79
                                    <li>
84
                        <fieldset class="action">
80
                                        <label for="to">Starts before: </label>
85
                            <input type="submit" name="run_report" value="Submit" class="btn btn-primary "/>
81
                                        <input type="text" size="10" id="to" name="to" value="[% to | html %]" class="flatpickr"/>
86
                        </fieldset>
82
                                    </li>
87
                    </form>
83
                                </ol>
84
85
                                <fieldset class="action">
86
                                    <input type="submit" name="run_report" value="Submit" class="submit"/>
87
                                </fieldset>
88
                            </fieldset>
89
                        </form>
90
                    </div>
91
                    [% INCLUDE 'circ-nav.inc' %]
88
                    [% INCLUDE 'circ-nav.inc' %]
92
                </aside>
89
                </aside>
93
            </div>
90
            </div>
94
- 

Return to bug 38347