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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_mixins.scss (+9 lines)
Lines 76-78 $nav-menu-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/s Link Here
76
        background-color: white;
76
        background-color: white;
77
    }
77
    }
78
}
78
}
79
80
/* Copied from Bootstrap 5 */
81
@mixin clearfix() {
82
    &::after {
83
        clear: both;
84
        content: "";
85
        display: block;
86
    }
87
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+6 lines)
Lines 4307-4312 div .suggestion_note { Link Here
4307
    margin: .5em;
4307
    margin: .5em;
4308
}
4308
}
4309
4309
4310
.tab-pane {
4311
    &.active {
4312
        @include clearfix();
4313
    }
4314
}
4315
4310
@import "header";
4316
@import "header";
4311
@import "toolbar";
4317
@import "toolbar";
4312
@import "forms";
4318
@import "forms";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-63 / +54 lines)
Lines 69-133 Link Here
69
        </ol>
69
        </ol>
70
      </fieldset>
70
      </fieldset>
71
71
72
      <div id="batch_del_form" class="toptabs">
72
        [% WRAPPER tabs id= "batch_del_form" %]
73
        <ul class="nav nav-tabs" role="tablist">
73
            [% WRAPPER tabs_nav %]
74
          <li role="presentation" class="active">
74
                [% WRAPPER tab_item tabname= "uploadfile_tab" bt_active= 1 %] <span>Upload a file</span> [% END %]
75
              <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
75
                [% IF lists.count %]
76
          </li>
76
                    [% WRAPPER tab_item tabname= "shelves_tab" %] <span>Select a list of records</span> [% END %]
77
          [% IF lists.count %]
77
                [% END %]
78
            <li id="show_list_option" role="presentation">
78
                [% WRAPPER tab_item tabname= "enterlist_tab" %] <span>Enter a list of record numbers</span> [% END %]
79
                <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
79
            [% END # /WRAPPER tabs_nav %]
80
            </li>
81
          [% END %]
82
          <li role="presentation">
83
            <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
84
          </li>
85
        </ul>
86
80
87
    <div class="tab-content">
81
            [% WRAPPER tab_panels %]
88
        <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
82
                [% WRAPPER tab_panel tabname="uploadfile_tab" bt_active= 1 %]
89
          <fieldset class="rows">
83
                    <fieldset class="rows">
90
            <ol>
84
                        <ol>
91
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
85
                        <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
92
            </ol>
86
                        </ol>
93
          </fieldset>
87
                    </fieldset>
94
          &nbsp;
88
                [% END # /WRAPPER tab_panel %]
95
        </div>
96
89
97
        [% IF lists.count %]
90
                [% IF lists.count %]
98
            <div id="shelves_tab" role="tabpanel" class="tab-pane">
91
                    [% WRAPPER tab_panel tabname="shelves_tab" %]
99
              <fieldset class="rows">
92
                        <fieldset class="rows">
100
                <ol>
93
                            <ol>
101
                  <li>
94
                                <li>
102
                    <label for="shelf_number">List: </label>
95
                                    <label for="shelf_number">List: </label>
103
                    <select name="shelf_number" id="shelf_number">
96
                                    <select name="shelf_number" id="shelf_number">
104
                      <option value="">Select a list</option>
97
                                        <option value="">Select a list</option>
105
                        [% FOREACH list IN lists %]
98
                                        [% FOREACH list IN lists %]
106
                          <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
99
                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
107
                        [% END %]
100
                                        [% END %]
108
                    </select>
101
                                    </select>
109
                  </li>
102
                                </li>
110
                </ol>
103
                            </ol>
111
              </fieldset>
104
                        </fieldset>
112
              &nbsp;
105
                    [% END # /WRAPPER tab_panel %]
113
            </div>
106
                [% END # /IF lists.count %]
114
        [% END %]
115
107
116
        <div id="enterlist_tab" role="tabpanel" class="tab-pane">
108
                [% WRAPPER tab_panel tabname="enterlist_tab" %]
117
          <fieldset class="rows">
109
                    <fieldset class="rows">
118
            <ol>
110
                        <ol>
119
              <li>
111
                            <li>
120
                <label for="recordnumber_list">IDs: </label>
112
                                <label for="recordnumber_list">IDs: </label>
121
                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
113
                                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
122
                <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
114
                                <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
123
              </li>
115
                            </li>
124
            </ol>
116
                        </ol>
125
          </fieldset>
117
                    </fieldset>
126
          &nbsp;
118
                [% END # /WRAPPER tab_panel %]
127
        </div>
119
            [% END # /WRAPPER tab_panels %]
128
120
        [% END # /WRAPPER tabs %]
129
      </div> <!-- /.tab-content -->
130
    </div>
131
121
132
      <fieldset class="action">
122
      <fieldset class="action">
133
        <input type="hidden" name="op" value="list" />
123
        <input type="hidden" name="op" value="list" />
Lines 238-250 Link Here
238
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
228
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
239
        $(document).ready(function() {
229
        $(document).ready(function() {
240
230
241
          $("input[type='radio']").click(function(){
231
            $("input[type='radio']").click(function() {
242
            if ($(this).attr('id') == 'authority_type') {
232
                if ($(this).attr('id') == 'authority_type') {
243
              $("#show_list_option").hide();
233
                    $("a[href='#shelves_tab_panel']").parent().hide();
244
            } else if ($(this).attr('id') == 'biblio_type') {
234
                } else if ($(this).attr('id') == 'biblio_type') {
245
              $("#show_list_option").show();
235
                    $("a[href='#shelves_tab_panel']").parent().show();
246
            }
236
                }
247
          });
237
            });
238
248
            $("#selectall").click(function(e){
239
            $("#selectall").click(function(e){
249
                e.preventDefault();
240
                e.preventDefault();
250
                $(".records input[type='checkbox']:not(:disabled)").each(function(){
241
                $(".records input[type='checkbox']:not(:disabled)").each(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-32 / +20 lines)
Lines 81-113 Link Here
81
81
82
                            <br><br>
82
                            <br><br>
83
83
84
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
84
                            [% WRAPPER tabs id= "batch_mod_form" %]
85
                                <ul class="nav nav-tabs" role="tablist">
85
                                [% WRAPPER tabs_nav %]
86
                                    <li role="presentation" class="active">
86
                                    [% WRAPPER tab_item tabname= "uploadfile_tab" bt_active= 1 %] <span>Upload a file</span> [% END %]
87
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
88
                                    </li>
89
                                    [% IF lists.count %]
87
                                    [% IF lists.count %]
90
                                        <li id="show_list_option">
88
                                        [% WRAPPER tab_item tabname= "shelves_tab" %] <span>Select a list of records</span> [% END %]
91
                                            <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
89
                                        <!-- <li id="show_list_option"> -->
92
                                        </li>
93
                                    [% END %]
90
                                    [% END %]
94
                                    <li role="presentation">
91
                                    [% WRAPPER tab_item tabname= "enterlist_tab" %] <span>Enter a list of record numbers</span> [% END %]
95
                                        <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
92
                                [% END # /WRAPPER tabs_nav %]
96
                                    </li>
93
                                [% WRAPPER tab_panels %]
97
                                </ul>
94
                                    [% WRAPPER tab_panel tabname="uploadfile_tab" bt_active= 1 %]
98
99
                                <div class="tab-content">
100
                                    <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
101
                                        <fieldset class="rows">
95
                                        <fieldset class="rows">
102
                                            <ol>
96
                                            <ol>
103
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
97
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
104
                                            </ol>
98
                                            </ol>
105
                                        </fieldset>
99
                                        </fieldset>
106
                                        &nbsp;
100
                                    [% END # /tab_panel %]
107
                                    </div>
108
101
109
                                    [% IF lists.count %]
102
                                    [% IF lists.count %]
110
                                        <div id="shelves_tab" role="tabpanel" class="tab-pane">
103
                                        [% WRAPPER tab_panel tabname="shelves_tab" %]
111
                                            <fieldset class="rows">
104
                                            <fieldset class="rows">
112
                                                <ol>
105
                                                <ol>
113
                                                    <li>
106
                                                    <li>
Lines 117-132 Link Here
117
                                                            [% FOREACH list IN lists %]
110
                                                            [% FOREACH list IN lists %]
118
                                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
111
                                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
119
                                                            [% END %]
112
                                                            [% END %]
120
                                                            </option>
121
                                                        </select>
113
                                                        </select>
122
                                                    </li>
114
                                                    </li>
123
                                                </ol>
115
                                                </ol>
124
                                            </fieldset>
116
                                            </fieldset>
125
                                            &nbsp;
117
                                        [% END # /tab_panel %]
126
                                        </div>
127
                                    [% END %]
118
                                    [% END %]
128
119
                                    [% WRAPPER tab_panel tabname="enterlist_tab" %]
129
                                    <div id="enterlist_tab" role="tabpanel" class="tab-pane">
130
                                        <fieldset class="rows">
120
                                        <fieldset class="rows">
131
                                            <ol>
121
                                            <ol>
132
                                                <li>
122
                                                <li>
Lines 136-145 Link Here
136
                                                </li>
126
                                                </li>
137
                                            </ol>
127
                                            </ol>
138
                                        </fieldset>
128
                                        </fieldset>
139
                                        &nbsp;
129
                                    [% END # /tab_panel %]
140
                                    </div>
130
                                [% END # /WRAPPER tab_panels %]
141
                                </div> <!-- /.tab-content -->
131
                            [% END # /WRAPPER tabs %]
142
                            </div> <!-- /#batch_mod_form -->
143
132
144
                            <fieldset class="rows">
133
                            <fieldset class="rows">
145
                                <legend>MARC modification template</legend>
134
                                <legend>MARC modification template</legend>
Lines 300-308 Link Here
300
289
301
            $("input[type='radio']").click(function() {
290
            $("input[type='radio']").click(function() {
302
                if ($(this).attr('id') == 'authority_type') {
291
                if ($(this).attr('id') == 'authority_type') {
303
                    $("#show_list_option").hide();
292
                    $("a[href='#shelves_tab_panel']").parent().hide();
304
                } else if ($(this).attr('id') == 'biblio_type') {
293
                } else if ($(this).attr('id') == 'biblio_type') {
305
                    $("#show_list_option").show();
294
                    $("a[href='#shelves_tab_panel']").parent().show();
306
                }
295
                }
307
            });
296
            });
308
297
Lines 356-365 Link Here
356
345
357
            $("#record_ids_selection").on("submit", function(e) {
346
            $("#record_ids_selection").on("submit", function(e) {
358
                var tab = $(this).find('#batch_mod_form li.active:first a').attr('href');
347
                var tab = $(this).find('#batch_mod_form li.active:first a').attr('href');
359
                if (tab == '#uploadfile_tab') {
348
                if (tab == '#uploadfile_tab_panel') {
360
                    $("#shelf_number").empty('');
349
                    $("#shelf_number").empty('');
361
                    $("#recordnumber_list").val('');
350
                    $("#recordnumber_list").val('');
362
                } else if (tab == '#shelves_tab') {
351
                } else if (tab == '#shelves_tab_panel') {
363
                    $("#uploadfile").val('')
352
                    $("#uploadfile").val('')
364
                    $("#recordnumber_list").val('');
353
                    $("#recordnumber_list").val('');
365
                } else { // enterlist
354
                } else { // enterlist
366
- 

Return to bug 32914