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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-17 / +18 lines)
Lines 18-28 Link Here
18
</title>
18
</title>
19
[% INCLUDE 'doc-head-close.inc' %]
19
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'calendar.inc' %]
20
[% INCLUDE 'calendar.inc' %]
21
[% IF ( op == 'show' ) %]
21
[% IF ( op == 'show' || op_else ) %]
22
<script type="text/javascript">
22
<script type="text/javascript">
23
    // <![CDATA[
23
    // <![CDATA[
24
    $(document).ready(function(){
24
    $(document).ready(function(){
25
        $("#deletesuggestion").on("click",function(){
25
        $(".deletesuggestion").on("click",function(){
26
            return confirm(_("Are you sure you want to delete this suggestion?"));
26
            return confirm(_("Are you sure you want to delete this suggestion?"));
27
        });
27
        });
28
    });
28
    });
Lines 53-59 $(document).ready(function() { Link Here
53
    });
53
    });
54
    $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
54
    $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, {
55
        "aoColumnDefs": [
55
        "aoColumnDefs": [
56
            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
56
            { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
57
            { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
57
            { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
58
        ],
58
        ],
59
        "sPaginationType": "four_button"
59
        "sPaginationType": "four_button"
Lines 204-210 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o Link Here
204
204
205
    <div id="toolbar" class="btn-toolbar">
205
    <div id="toolbar" class="btn-toolbar">
206
        <a class="btn btn-default btn-sm" id="editsuggestion" href="suggestion.pl?op=edit&amp;suggestionid=[% suggestionid %]"><i class="fa fa-pencil"></i> Edit</a>
206
        <a class="btn btn-default btn-sm" id="editsuggestion" href="suggestion.pl?op=edit&amp;suggestionid=[% suggestionid %]"><i class="fa fa-pencil"></i> Edit</a>
207
        <a class="btn btn-default btn-sm" id="deletesuggestion" href="suggestion.pl?op=delete&amp;edit_field=[% suggestionid %]"><i class="fa fa-trash"></i> Delete</a>
207
        <a class="btn btn-default btn-sm deletesuggestion" href="suggestion.pl?op=delete&amp;edit_field=[% suggestionid %]"><i class="fa fa-trash"></i> Delete</a>
208
    </div>
208
    </div>
209
209
210
    <fieldset class="rows">
210
    <fieldset class="rows">
Lines 525-538 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o Link Here
525
<p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
525
<p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p>
526
    <table id="[% suggestion.suggestiontype %]t" class="sorted">
526
    <table id="[% suggestion.suggestiontype %]t" class="sorted">
527
        <thead>
527
        <thead>
528
            <tr><th>&nbsp;</th>
528
            <tr>
529
            <th>No.</th>
529
                <th class="NoSort">&nbsp;</th>
530
            <th class="anti-the">Suggestion</th>
530
                <th class="anti-the">Suggestion</th>
531
            <th>Suggested by - on</th>
531
                <th>Suggested by - on</th>
532
            <th>Managed by - on</th>
532
                <th>Managed by - on</th>
533
            <th>Library</th>
533
                <th>Library</th>
534
            <th>Fund</th>
534
                <th>Fund</th>
535
            <th>Status</th></tr>
535
                <th>Status</th>
536
                <th class="NoSort">&nbsp;</th>
537
            </tr>
536
    </thead>
538
    </thead>
537
        <tbody>
539
        <tbody>
538
            [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
540
            [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
Lines 541-552 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o Link Here
541
                    <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
543
                    <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
542
                </td>
544
                </td>
543
                <td>
545
                <td>
544
                    [% suggestions_loo.suggestionid %]
545
                </td>
546
                <td>
547
                    <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=show" title="suggestion" >
546
                    <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=show" title="suggestion" >
548
                        [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
547
                        [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]</a>
549
                    [<a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=edit" title="suggestion" >edit</a>]
550
                    <br />
548
                    <br />
551
                    [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate |html %] [% END %]
549
                    [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate |html %] [% END %]
552
                        [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc |html %]</i> [% END %]
550
                        [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc |html %]</i> [% END %]
Lines 587-592 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o Link Here
587
                        <br />([% suggestions_loo.reason %])
585
                        <br />([% suggestions_loo.reason %])
588
                    [% END %]
586
                    [% END %]
589
                </td>
587
                </td>
588
                <td class="actions">
589
                    <a class="btn btn-xs btn-default" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=edit"><i class="fa fa-pencil"></i> Edit</a>
590
                    <a class="btn btn-default btn-xs deletesuggestion" href="suggestion.pl?op=delete&amp;edit_field=[% suggestions_loo.suggestionid %]"><i class="fa fa-trash"></i> Delete</a>
591
                </td>
590
        </tr>
592
        </tr>
591
        [% END %]</tbody>
593
        [% END %]</tbody>
592
        </table>  <fieldset>
594
        </table>  <fieldset>
593
- 

Return to bug 18581