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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-63 / +62 lines)
Lines 69-85 Link Here
69
                        ([% file_name | html %] staged on [% upload_timestamp | $KohaDates  with_hours => 1 %])
69
                        ([% file_name | html %] staged on [% upload_timestamp | $KohaDates  with_hours => 1 %])
70
                    </h1>
70
                    </h1>
71
                    <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
71
                    <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
72
                        <div id="tabs" class="toptabs">
72
                        [% WRAPPER tabs id= "tabs" %]
73
                            <ul class="nav nav-tabs" role="tablist">
73
                            [% WRAPPER tabs_nav %]
74
                                <li role="presentation" class="active"><a href="#records_to_import" aria-controls="records_to_import" role="tab" data-toggle="tab">Select to import</a></li>
74
                                [% WRAPPER tab_item tabname= "records_to_import" active= 1 %] Select to import [% END %]
75
                                [% IF items %]
75
                                [% IF items %]
76
                                    <li role="presentation"><a href="#items_info" class="items_info" aria-controls="items_info" role="tab" data-toggle="tab">Item information</a></li>
76
                                    [% WRAPPER tab_item tabname= "items_info" %] Item information [% END %]
77
                                [% END %]
77
                                [% END %]
78
                                <li role="presentation"><a href="#accounting_details" aria-controls="accounting_details" role="tab" data-toggle="tab">Default accounting details</a></li>
78
                                [% WRAPPER tab_item tabname= "accounting_details" %] Default accounting details [% END %]
79
                            </ul>
79
                            [% END %]
80
80
81
                            <div class="tab-content">
81
                            [% WRAPPER tab_panels %]
82
                                <div id="records_to_import" role="tabpanel" class="tab-pane active" >
82
                                [% WRAPPER tab_panel tabname= "records_to_import" active= 1 %]
83
                                    <div id="searchheader" class="searchheader">
83
                                    <div id="searchheader" class="searchheader">
84
                                        <div>
84
                                        <div>
85
                                            <span class="checkall"><a id="checkAll" href="#">Select all</a></span>
85
                                            <span class="checkall"><a id="checkAll" href="#">Select all</a></span>
Lines 368-433 Link Here
368
                                            </div> <!-- /.modal-content -->
368
                                            </div> <!-- /.modal-content -->
369
                                        </div> <!-- /.modal-dialog -->
369
                                        </div> <!-- /.modal-dialog -->
370
                                    </div> <!-- /#dataPreview -->
370
                                    </div> <!-- /#dataPreview -->
371
                                </div> <!-- /#records_to_import -->
371
                                [% END # /#records_to_import %]
372
372
373
                                [% IF ( items ) %]
373
                                [% IF ( items ) %]
374
                                    <div id="items_info" role="tabpanel" class="tab-pane">
374
                                    [% WRAPPER tab_panel tabname= "items_info" %]
375
                                        <h2>Item information</h2>
375
                                        <h2>Item information</h2>
376
                                        <p>Import all the checked items in the basket with the following parameters:</p>
376
                                        <p>Import all the checked items in the basket with the following parameters:</p>
377
377
378
                                                <fieldset class="rows" style="float:none;">
378
                                        <fieldset class="rows" style="float:none;">
379
                                                    <legend>Item</legend>
379
                                            <legend>Item</legend>
380
                                                    [% IF ( NoACQframework ) %]
380
                                            [% IF ( NoACQframework ) %]
381
                                                        <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
381
                                                <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
382
                                                    [% END %]
382
                                            [% END %]
383
                                                    <div class="item_edit_form">
383
                                            <div class="item_edit_form">
384
                                                        [% FOREACH item IN items %]
384
                                                [% FOREACH item IN items %]
385
                                                            <div id="outeritemblock">
385
                                                    <div id="outeritemblock">
386
                                                                <div id="itemblock">
386
                                                        <div id="itemblock">
387
                                                                    <ol>
387
                                                            <ol>
388
                                                                        [% FOREACH iteminformatio IN item.iteminformation %]
388
                                                                [% FOREACH iteminformatio IN item.iteminformation %]
389
                                                                            <li style="[% iteminformatio.hidden | html %];">
389
                                                                    <li style="[% iteminformatio.hidden | html %];">
390
                                                                                <div class="subfield_line" id="subfield[% iteminformatio.serialid | html %][% iteminformatio.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]">
390
                                                                        <div class="subfield_line" id="subfield[% iteminformatio.serialid | html %][% iteminformatio.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]">
391
                                                                                    [% IF (iteminformatio.mandatory) %]
391
                                                                            [% IF (iteminformatio.mandatory) %]
392
                                                                                        <label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
392
                                                                                <label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
393
                                                                                    [% ELSE %]
393
                                                                            [% ELSE %]
394
                                                                                        <label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
394
                                                                                <label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
395
                                                                                    [% END %]
395
                                                                            [% END %]
396
396
397
                                                                                    [% IF ( iteminformatio.marc_value.type == 'select' ) %]
397
                                                                            [% IF ( iteminformatio.marc_value.type == 'select' ) %]
398
                                                                                        <select name="field_value" class="input_marceditor">
398
                                                                                <select name="field_value" class="input_marceditor">
399
                                                                                            [% FOREACH value IN iteminformatio.marc_value.values %]
399
                                                                                    [% FOREACH value IN iteminformatio.marc_value.values %]
400
                                                                                                [% IF ( value == iteminformatio.marc_value.default ) %]
400
                                                                                        [% IF ( value == iteminformatio.marc_value.default ) %]
401
                                                                                                    <option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
401
                                                                                            <option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
402
                                                                                                [% ELSE %]
402
                                                                                        [% ELSE %]
403
                                                                                                    <option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
403
                                                                                            <option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
404
                                                                                                [% END %]
404
                                                                                        [% END %]
405
                                                                                            [% END %]
406
                                                                                        </select>
407
                                                                                    [% ELSE %]
408
                                                                                    [% iteminformatio.marc_value | $raw %]
409
                                                                                    [% END %]
410
                                                                                    <input type="hidden" name="itemid" value="1" />
411
                                                                                    <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
412
                                                                                    <input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
413
                                                                                    <input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
414
                                                                                    <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
415
                                                                                    [% IF ( iteminformatio.mandatory ) %]
416
                                                                                        <span class="required">Required</span>
417
                                                                                    [% END %]
405
                                                                                    [% END %]
418
                                                                                </div>
406
                                                                                </select>
419
                                                                            </li>
407
                                                                            [% ELSE %]
420
                                                                        [% END %]
408
                                                                                [% iteminformatio.marc_value | $raw %]
421
                                                                    </ol>
409
                                                                            [% END %]
422
                                                                </div><!-- /#itemblock -->
410
                                                                            <input type="hidden" name="itemid" value="1" />
423
                                                            </div> <!-- /#outeritemblock -->
411
                                                                            <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
424
                                                        [% END #/FOREACH item %]
412
                                                                            <input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
425
                                                    </div> <!-- /.item_edit_form -->
413
                                                                            <input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
426
                                                </fieldset>
414
                                                                            <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
427
                                    </div> <!-- /#items_info -->
415
                                                                            [% IF ( iteminformatio.mandatory ) %]
416
                                                                                <span class="required">Required</span>
417
                                                                            [% END %]
418
                                                                        </div>
419
                                                                    </li>
420
                                                                [% END %]
421
                                                            </ol>
422
                                                        </div><!-- /#itemblock -->
423
                                                    </div> <!-- /#outeritemblock -->
424
                                                [% END #/FOREACH item %]
425
                                            </div> <!-- /.item_edit_form -->
426
                                        </fieldset>
427
                                    [% END # /#items_info %]
428
                                [% END # /IF items %]
428
                                [% END # /IF items %]
429
429
430
                                <div id="accounting_details" role="tabpanel" class="tab-pane">
430
                                [% WRAPPER tab_panel tabname= "accounting_details" %]
431
                                    <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
431
                                    <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
432
                                    <fieldset class="rows" style="float:none;">
432
                                    <fieldset class="rows" style="float:none;">
433
                                        <legend>Accounting details</legend>
433
                                        <legend>Accounting details</legend>
Lines 491-499 Link Here
491
                                            </li>
491
                                            </li>
492
                                        </ol>
492
                                        </ol>
493
                                    </fieldset> <!-- /.rows -->
493
                                    </fieldset> <!-- /.rows -->
494
                                </div> <!-- /#accounting_details -->
494
                                [% END # /#accounting_details %]
495
                        </div> <!-- /#tabs -->
495
                            [% END #/WRAPPER tab_panels %]
496
496
                        [% END # /WRAPPER tabs %]
497
                        <fieldset class="action">
497
                        <fieldset class="action">
498
                            <input type="submit" id="add_order" class="btn btn-primary" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
498
                            <input type="submit" id="add_order" class="btn btn-primary" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
499
                        </fieldset>
499
                        </fieldset>
500
- 

Return to bug 32658