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 9-15 Link Here
9
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
10
[% INCLUDE 'doc-head-open.inc' %]
10
[% INCLUDE 'doc-head-open.inc' %]
11
<title>Koha &rsaquo; Acquisitions  &rsaquo;
11
<title>Koha &rsaquo; Acquisitions  &rsaquo;
12
    [% IF ( op_save ) %]
12
    [% IF op == 'save' %]
13
        [% IF ( suggestionid ) %]
13
        [% IF ( suggestionid ) %]
14
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
14
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
15
        [% ELSE %]
15
        [% ELSE %]
Lines 22-30 Link Here
22
    [% END %]
22
    [% END %]
23
</title>
23
</title>
24
[% INCLUDE 'doc-head-close.inc' %]
24
[% INCLUDE 'doc-head-close.inc' %]
25
[% IF ( op_else ) %]
25
[% IF op == 'else' %]
26
[% END %]
27
[% IF ( op_else ) %]
28
    <style>
26
    <style>
29
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
27
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
30
        .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; }
28
        .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 37-43 Link Here
37
[% INCLUDE 'cat-search.inc' %]
35
[% INCLUDE 'cat-search.inc' %]
38
<div id="breadcrumbs">
36
<div id="breadcrumbs">
39
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
37
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
40
    [% IF ( op_save ) %]
38
    [% IF op == 'save' %]
41
        [% IF ( suggestionid ) %]
39
        [% IF ( suggestionid ) %]
42
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
40
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
43
        [% ELSE %]
41
        [% ELSE %]
Lines 232-238 Link Here
232
</div>
230
</div>
233
[% ELSE %]
231
[% ELSE %]
234
232
235
[% IF ( op_save ) %]
233
[% IF op == 'save' %]
236
    <div class="main container-fluid">
234
    <div class="main container-fluid">
237
        <div class="row">
235
        <div class="row">
238
            <div class="col-md-8 col-md-offset-2">
236
            <div class="col-md-8 col-md-offset-2">
Lines 244-250 Link Here
244
242
245
[% END %]
243
[% END %]
246
244
247
[% IF ( op_save ) %]
245
[% IF op == 'save' %]
248
    [% FOR m IN messages %]
246
    [% FOR m IN messages %]
249
        <div class="dialog [% m.type | html %]">
247
        <div class="dialog [% m.type | html %]">
250
            [% SWITCH m.code %]
248
            [% SWITCH m.code %]
Lines 467-473 Link Here
467
    </form>
465
    </form>
468
[% END %]
466
[% END %]
469
467
470
[% IF ( op_else ) %]
468
[% IF op == 'else' %]
471
<div id="toolbar" class="btn-toolbar">
469
<div id="toolbar" class="btn-toolbar">
472
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
470
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
473
</div>
471
</div>
Lines 683-689 Link Here
683
[% END %]
681
[% END %]
684
[% END %]
682
[% END %]
685
683
686
[% UNLESS ( op_save ) %]
684
[% UNLESS op == 'save' %]
687
    [% UNLESS ( op == 'show' ) %]
685
    [% UNLESS ( op == 'show' ) %]
688
686
689
            </main>
687
            </main>
Lines 846-852 Link Here
846
844
847
[% MACRO jsinclude BLOCK %]
845
[% MACRO jsinclude BLOCK %]
848
    [% INCLUDE 'calendar.inc' %]
846
    [% INCLUDE 'calendar.inc' %]
849
    [% IF ( op == 'show' || op_else ) %]
847
    [% IF ( op == 'show' || op == 'else' ) %]
850
        <script>
848
        <script>
851
            $(document).ready(function(){
849
            $(document).ready(function(){
852
                $(".deletesuggestion").on("click",function(){
850
                $(".deletesuggestion").on("click",function(){
Lines 855-861 Link Here
855
            });
853
            });
856
        </script>
854
        </script>
857
    [% END %]
855
    [% END %]
858
    [% IF ( op_else ) %]
856
    [% IF op == 'else' %]
859
        [% INCLUDE 'datatables.inc' %]
857
        [% INCLUDE 'datatables.inc' %]
860
        [% INCLUDE 'columns_settings.inc' %]
858
        [% INCLUDE 'columns_settings.inc' %]
861
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
859
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
Lines 978-984 Link Here
978
            });
976
            });
979
        </script>
977
        </script>
980
    [% END %]
978
    [% END %]
981
    [% IF ( op_save )  %]
979
    [% IF op == 'save'  %]
982
        <script>
980
        <script>
983
981
984
            function editManagerPopup() {
982
            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