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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-12 / +10 lines)
Lines 8-14 Link Here
8
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
<title>Koha &rsaquo; Acquisitions  &rsaquo;
10
<title>Koha &rsaquo; Acquisitions  &rsaquo;
11
    [% IF ( op_save ) %]
11
    [% IF op == 'save' %]
12
        [% IF ( suggestionid ) %]
12
        [% IF ( suggestionid ) %]
13
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
13
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
14
        [% ELSE %]
14
        [% ELSE %]
Lines 21-29 Link Here
21
    [% END %]
21
    [% END %]
22
</title>
22
</title>
23
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
24
[% IF ( op_else ) %]
24
[% IF op == 'else' %]
25
[% END %]
26
[% IF ( op_else ) %]
27
    <style>
25
    <style>
28
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
26
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
29
        .overlay { top: 180px; left: 50%; position: absolute; margin-left: -100px; width: 200px; text-align: center; display: none; margin-top: -10px; background: #eeffd4; padding: .5em; color: #000; } div.note { background: transparent none; border-style: dotted; border-width: 1px 0 0 0; font-size : 90%; padding: 2px 0 0 0; } div.note i { color: #CCC; }
27
        .overlay { top: 180px; left: 50%; position: absolute; margin-left: -100px; width: 200px; text-align: center; display: none; margin-top: -10px; background: #eeffd4; padding: .5em; color: #000; } div.note { background: transparent none; border-style: dotted; border-width: 1px 0 0 0; font-size : 90%; padding: 2px 0 0 0; } div.note i { color: #CCC; }
Lines 36-42 Link Here
36
[% INCLUDE 'cat-search.inc' %]
34
[% INCLUDE 'cat-search.inc' %]
37
<div id="breadcrumbs">
35
<div id="breadcrumbs">
38
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
36
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
39
    [% IF ( op_save ) %]
37
    [% IF op == 'save' %]
40
        [% IF ( suggestionid ) %]
38
        [% IF ( suggestionid ) %]
41
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
39
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
42
        [% ELSE %]
40
        [% ELSE %]
Lines 227-233 Link Here
227
</div>
225
</div>
228
[% ELSE %]
226
[% ELSE %]
229
227
230
[% IF ( op_save ) %]
228
[% IF op == 'save' %]
231
    <div class="main container-fluid">
229
    <div class="main container-fluid">
232
        <div class="row">
230
        <div class="row">
233
            <div class="col-md-8 col-md-offset-2">
231
            <div class="col-md-8 col-md-offset-2">
Lines 239-245 Link Here
239
237
240
[% END %]
238
[% END %]
241
239
242
[% IF ( op_save ) %]
240
[% IF op == 'save' %]
243
    [% FOR m IN messages %]
241
    [% FOR m IN messages %]
244
        <div class="dialog [% m.type | html %]">
242
        <div class="dialog [% m.type | html %]">
245
            [% SWITCH m.code %]
243
            [% SWITCH m.code %]
Lines 462-468 Link Here
462
    </form>
460
    </form>
463
[% END %]
461
[% END %]
464
462
465
[% IF ( op_else ) %]
463
[% IF op == 'else' %]
466
<div id="toolbar" class="btn-toolbar">
464
<div id="toolbar" class="btn-toolbar">
467
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
465
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
468
</div>
466
</div>
Lines 678-684 Link Here
678
[% END %]
676
[% END %]
679
[% END %]
677
[% END %]
680
678
681
[% UNLESS ( op_save ) %]
679
[% UNLESS op == 'save' %]
682
    [% UNLESS ( op == 'show' ) %]
680
    [% UNLESS ( op == 'show' ) %]
683
681
684
            </main>
682
            </main>
Lines 841-847 Link Here
841
839
842
[% MACRO jsinclude BLOCK %]
840
[% MACRO jsinclude BLOCK %]
843
    [% INCLUDE 'calendar.inc' %]
841
    [% INCLUDE 'calendar.inc' %]
844
    [% IF ( op == 'show' || op_else ) %]
842
    [% IF ( op == 'show' || op == 'else' ) %]
845
        <script>
843
        <script>
846
            $(document).ready(function(){
844
            $(document).ready(function(){
847
                $(".deletesuggestion").on("click",function(){
845
                $(".deletesuggestion").on("click",function(){
Lines 850-856 Link Here
850
            });
848
            });
851
        </script>
849
        </script>
852
    [% END %]
850
    [% END %]
853
    [% IF ( op_else ) %]
851
    [% IF op == 'else' %]
854
        [% INCLUDE 'datatables.inc' %]
852
        [% INCLUDE 'datatables.inc' %]
855
        [% INCLUDE 'columns_settings.inc' %]
853
        [% INCLUDE 'columns_settings.inc' %]
856
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
854
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
Lines 973-979 Link Here
973
            });
971
            });
974
        </script>
972
        </script>
975
    [% END %]
973
    [% END %]
976
    [% IF ( op_save )  %]
974
    [% IF op == 'save'  %]
977
        <script>
975
        <script>
978
976
979
            function editManagerPopup() {
977
            function editManagerPopup() {
(-)a/suggestion/suggestion.pl (-2 lines)
Lines 334-340 $template->param( Link Here
334
334
335
$template->param(
335
$template->param(
336
    %$suggestion_ref,
336
    %$suggestion_ref,
337
    "op_$op"                => 1,
338
    "op"             =>$op,
337
    "op"             =>$op,
339
);
338
);
340
339
341
- 

Return to bug 23590