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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-24 / +26 lines)
Lines 240-274 Link Here
240
        </fieldset>
240
        </fieldset>
241
241
242
        [% IF languages.size %]
242
        [% IF languages.size %]
243
            <div style="clear:both"></div>
243
            <div id="tabs" class="toptabs">
244
            <div id="tabs">
244
                <ul class="nav nav-tabs" role="tablist">
245
                <ul>
246
                    [% FOR language IN languages %]
245
                    [% FOR language IN languages %]
247
                        [% IF language.lang == 'default' %]
246
                        [% IF language.lang == 'default' %]
248
                            <li><a href="#lang_default">Default</a></li>
247
                            <li role="presentation"><a href="#lang_default" aria-controls="lang_default" role="tab" data-toggle="tab">Default</a></li>
249
                        [% ELSE %]
248
                        [% ELSE %]
250
                            <li><a href="#lang_[% language.lang | uri %]">[% language.description | html %]</a></li>
249
                            <li role="presentation"><a href="#lang_[% language.lang | uri %]" aria-controls="lang_[% language.lang | uri %]" role="tab" data-toggle="tab">[% language.description | html %]</a></li>
251
                        [% END %]
250
                        [% END %]
252
                    [% END %]
251
                    [% END %]
253
                </ul>
252
                </ul>
254
253
                <div class="tab-content">
255
                [% FOR language IN languages %]
254
                    [% FOR language IN languages %]
256
                    <div id="lang_[% language.lang | uri %]" class="lang clearfix" data-lang="[% language.description | html %]">
255
                        <div id="lang_[% language.lang | uri %]" class="lang clearfix tab-pane" data-lang="[% language.description | html %]">
257
                        <fieldset class="rows">
256
                            <fieldset class="rows">
258
                            <ol>
257
                                <ol>
259
                                <li style="list-style: none;">
258
                                    <li>
260
                                    <label for="title_[% language.lang | html %]">Title: </label>
259
                                        <label for="title_[% language.lang | html %]">Title: </label>
261
                                    <input id="title_[% language.lang| html %]" size="100" maxlength="250" type="text" name="title_[% language.lang | html %]" value="[% translated_contents.item(language.lang).title | html %]">
260
                                        <input id="title_[% language.lang| html %]" size="100" maxlength="250" type="text" name="title_[% language.lang | html %]" value="[% translated_contents.item(language.lang).title | html %]">
262
                                </li>
261
                                    </li>
263
                                <li style="list-style: none;">
262
                                    <li>
264
                                    <label for="content_[% language.lang | html %]">Content: </label>
263
                                        <label for="content_[% language.lang | html %]">Content: </label>
265
                                    <textarea name="content_[% language.lang | html %]" id="content_[% language.lang | html %]" data-lang="[% language.lang | html%]" cols="75" rows="10">[% translated_contents.item(language.lang).content | html %]</textarea>
264
                                        <textarea name="content_[% language.lang | html %]" id="content_[% language.lang | html %]" data-lang="[% language.lang | html%]" cols="75" rows="10">[% translated_contents.item(language.lang).content | html %]</textarea>
266
                                    <input type="hidden" name="lang" value="[% language.lang | html %]" />
265
                                        <input type="hidden" name="lang" value="[% language.lang | html %]" />
267
                                </li>
266
                                    </li>
268
                            </ol>
267
                                </ol>
269
                        </fieldset>
268
                            </fieldset>
270
                    </div>
269
                        </div>
271
                [% END %]
270
                    [% END %]
271
                </div> <!-- /.tab-content -->
272
            </div>
272
            </div>
273
        [% ELSE %]
273
        [% ELSE %]
274
            <div id="lang_default">
274
            <div id="lang_default">
Lines 567-573 Link Here
567
    [% ELSE %]
567
    [% ELSE %]
568
        <script>
568
        <script>
569
            $(document).ready(function() {
569
            $(document).ready(function() {
570
                $("#tabs").tabs();
570
                if( $("#tabs .tab-pane.active").length < 1 ){
571
                    $("#tabs a:first").tab("show");
572
                }
571
                [% IF category == 'news' %]
573
                [% IF category == 'news' %]
572
                $("#add_additional_content").validate({
574
                $("#add_additional_content").validate({
573
                    submitHandler: function(form){
575
                    submitHandler: function(form){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-12 / +19 lines)
Lines 66-79 Link Here
66
        </ol>
66
        </ol>
67
      </fieldset>
67
      </fieldset>
68
68
69
      <div id="batch_del_form" class="toptabs" style="clear:both">
69
      <div id="batch_del_form" class="toptabs">
70
        <ul>
70
        <ul class="nav nav-tabs" role="tablist">
71
          <li><a href="#uploadfile_tab">Upload a file</a></li>
71
          <li role="presentation" class="active">
72
          [% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %]
72
              <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
73
          <li><a href="#enterlist_tab">Enter a list of record IDs</a></li>
73
          </li>
74
          [% IF lists.count %]
75
            <li id="show_list_option" role="presentation">
76
                <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
77
            </li>
78
          [% END %]
79
          <li role="presentation">
80
            <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
81
          </li>
74
        </ul>
82
        </ul>
75
83
76
        <div id="uploadfile_tab">
84
    <div class="tab-content">
85
        <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
77
          <fieldset class="rows">
86
          <fieldset class="rows">
78
            <ol>
87
            <ol>
79
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
88
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
Lines 83-89 Link Here
83
        </div>
92
        </div>
84
93
85
        [% IF lists.count %]
94
        [% IF lists.count %]
86
            <div id="shelves_tab">
95
            <div id="shelves_tab" role="tabpanel" class="tab-pane">
87
              <fieldset class="rows">
96
              <fieldset class="rows">
88
                <ol>
97
                <ol>
89
                  <li>
98
                  <li>
Lines 93-99 Link Here
93
                        [% FOREACH list IN lists %]
102
                        [% FOREACH list IN lists %]
94
                          <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
103
                          <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
95
                        [% END %]
104
                        [% END %]
96
                      </option>
97
                    </select>
105
                    </select>
98
                  </li>
106
                  </li>
99
                </ol>
107
                </ol>
Lines 102-108 Link Here
102
            </div>
110
            </div>
103
        [% END %]
111
        [% END %]
104
112
105
        <div id="enterlist_tab">
113
        <div id="enterlist_tab" role="tabpanel" class="tab-pane">
106
          <fieldset class="rows">
114
          <fieldset class="rows">
107
            <ol>
115
            <ol>
108
              <li>
116
              <li>
Lines 115-121 Link Here
115
          &nbsp;
123
          &nbsp;
116
        </div>
124
        </div>
117
125
118
      </div>
126
      </div> <!-- /.tab-content -->
127
    </div>
119
128
120
      <fieldset class="action">
129
      <fieldset class="action">
121
        <input type="hidden" name="op" value="list" />
130
        <input type="hidden" name="op" value="list" />
Lines 227-234 Link Here
227
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
236
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
228
        $(document).ready(function() {
237
        $(document).ready(function() {
229
238
230
          $("#batch_del_form").tabs();
231
232
          $("input[type='radio']").click(function(){
239
          $("input[type='radio']").click(function(){
233
            if ($(this).attr('id') == 'authority_type') {
240
            if ($(this).attr('id') == 'authority_type') {
234
              $("#show_list_option").hide();
241
              $("#show_list_option").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-40 / +46 lines)
Lines 75-128 Link Here
75
                            <br><br>
75
                            <br><br>
76
76
77
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
77
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
78
                                <ul>
78
                                <ul class="nav nav-tabs" role="tablist">
79
                                    <li><a href="#uploadfile_tab">Upload a file</a></li>
79
                                    <li role="presentation" class="active">
80
                                        [% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %]
80
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
81
                                    <li><a href="#enterlist_tab">Enter a list of record IDs</a></li>
81
                                    </li>
82
                                    [% IF lists.count %]
83
                                        <li id="show_list_option">
84
                                            <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
85
                                        </li>
86
                                    [% END %]
87
                                    <li role="presentation">
88
                                        <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
89
                                    </li>
82
                                </ul>
90
                                </ul>
83
91
84
                                <div id="uploadfile_tab">
92
                                <div class="tab-content">
85
                                    <fieldset class="rows">
93
                                    <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
86
                                        <ol>
94
                                        <fieldset class="rows">
87
                                            <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
95
                                            <ol>
88
                                        </ol>
96
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
89
                                    </fieldset>
97
                                            </ol>
90
                                    &nbsp;
98
                                        </fieldset>
91
                                </div>
99
                                        &nbsp;
100
                                    </div>
92
101
93
                                [% IF lists.count %]
102
                                    [% IF lists.count %]
94
                                    <div id="shelves_tab">
103
                                        <div id="shelves_tab" role="tabpanel" class="tab-pane">
104
                                            <fieldset class="rows">
105
                                                <ol>
106
                                                    <li>
107
                                                        <label for="shelf_number">List: </label>
108
                                                        <select name="shelf_number" id="shelf_number">
109
                                                            <option value="">Select a list</option>
110
                                                            [% FOREACH list IN lists %]
111
                                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
112
                                                            [% END %]
113
                                                            </option>
114
                                                        </select>
115
                                                    </li>
116
                                                </ol>
117
                                            </fieldset>
118
                                            &nbsp;
119
                                        </div>
120
                                    [% END %]
121
122
                                    <div id="enterlist_tab" role="tabpanel" class="tab-pane">
95
                                        <fieldset class="rows">
123
                                        <fieldset class="rows">
96
                                            <ol>
124
                                            <ol>
97
                                                <li>
125
                                                <li>
98
                                                    <label for="shelf_number">List: </label>
126
                                                    <label for="recordnumber_list">Record numbers: </label>
99
                                                    <select name="shelf_number" id="shelf_number">
127
                                                    <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
100
                                                        <option value="">Select a list</option>
128
                                                    <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
101
                                                        [% FOREACH list IN lists %]
102
                                                        <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
103
                                                        [% END %]
104
                                                        </option>
105
                                                    </select>
106
                                                </li>
129
                                                </li>
107
                                            </ol>
130
                                            </ol>
108
                                        </fieldset>
131
                                        </fieldset>
109
                                        &nbsp;
132
                                        &nbsp;
110
                                    </div>
133
                                    </div>
111
                                [% END %]
134
                                </div> <!-- /.tab-content -->
112
113
                                <div id="enterlist_tab">
114
                                    <fieldset class="rows">
115
                                        <ol>
116
                                            <li>
117
                                                <label for="recordnumber_list">IDs: </label>
118
                                                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
119
                                                <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
120
                                            </li>
121
                                        </ol>
122
                                    </fieldset>
123
                                    &nbsp;
124
                                </div>
125
126
                            </div> <!-- /#batch_mod_form -->
135
                            </div> <!-- /#batch_mod_form -->
127
136
128
                            <fieldset class="rows">
137
                            <fieldset class="rows">
Lines 277-284 Link Here
277
    <script>
286
    <script>
278
        $(document).ready(function() {
287
        $(document).ready(function() {
279
288
280
            $("#batch_mod_form").tabs();
281
282
            $("input[type='radio']").click(function() {
289
            $("input[type='radio']").click(function() {
283
                if ($(this).attr('id') == 'authority_type') {
290
                if ($(this).attr('id') == 'authority_type') {
284
                    $("#show_list_option").hide();
291
                    $("#show_list_option").hide();
285
- 

Return to bug 30474