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 7-13 Link Here
7
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Acquisitions  &rsaquo;
9
<title>Koha &rsaquo; Acquisitions  &rsaquo;
10
    [% IF ( op_save ) %]
10
    [% IF op == 'save' %]
11
        [% IF ( suggestionid ) %]
11
        [% IF ( suggestionid ) %]
12
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
12
            Suggestions &rsaquo;  Edit suggestion #[% suggestionid | html %]
13
        [% ELSE %]
13
        [% ELSE %]
Lines 20-28 Link Here
20
    [% END %]
20
    [% END %]
21
</title>
21
</title>
22
[% INCLUDE 'doc-head-close.inc' %]
22
[% INCLUDE 'doc-head-close.inc' %]
23
[% IF ( op_else ) %]
23
[% IF op == 'else' %]
24
[% END %]
25
[% IF ( op_else ) %]
26
    <style>
24
    <style>
27
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
25
        h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
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; }
26
        .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 35-41 Link Here
35
[% INCLUDE 'cat-search.inc' %]
33
[% INCLUDE 'cat-search.inc' %]
36
<div id="breadcrumbs">
34
<div id="breadcrumbs">
37
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
35
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
38
    [% IF ( op_save ) %]
36
    [% IF op == 'save' %]
39
        [% IF ( suggestionid ) %]
37
        [% IF ( suggestionid ) %]
40
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
38
            <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo;  Edit suggestion #[% suggestionid | html %]
41
        [% ELSE %]
39
        [% ELSE %]
Lines 226-232 Link Here
226
</div>
224
</div>
227
[% ELSE %]
225
[% ELSE %]
228
226
229
[% IF ( op_save ) %]
227
[% IF op == 'save' %]
230
    <div class="main container-fluid">
228
    <div class="main container-fluid">
231
        <div class="row">
229
        <div class="row">
232
            <div class="col-md-8 col-md-offset-2">
230
            <div class="col-md-8 col-md-offset-2">
Lines 238-244 Link Here
238
236
239
[% END %]
237
[% END %]
240
238
241
[% IF ( op_save ) %]
239
[% IF op == 'save' %]
242
    [% FOR m IN messages %]
240
    [% FOR m IN messages %]
243
        <div class="dialog [% m.type | html %]">
241
        <div class="dialog [% m.type | html %]">
244
            [% SWITCH m.code %]
242
            [% SWITCH m.code %]
Lines 461-467 Link Here
461
    </form>
459
    </form>
462
[% END %]
460
[% END %]
463
461
464
[% IF ( op_else ) %]
462
[% IF op == 'else' %]
465
<div id="toolbar" class="btn-toolbar">
463
<div id="toolbar" class="btn-toolbar">
466
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
464
    <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a>
467
</div>
465
</div>
Lines 671-677 Link Here
671
[% END %]
669
[% END %]
672
[% END %]
670
[% END %]
673
671
674
[% UNLESS ( op_save ) %]
672
[% UNLESS op == 'save' %]
675
    [% UNLESS ( op == 'show' ) %]
673
    [% UNLESS ( op == 'show' ) %]
676
674
677
            </main>
675
            </main>
Lines 834-840 Link Here
834
832
835
[% MACRO jsinclude BLOCK %]
833
[% MACRO jsinclude BLOCK %]
836
    [% INCLUDE 'calendar.inc' %]
834
    [% INCLUDE 'calendar.inc' %]
837
    [% IF ( op == 'show' || op_else ) %]
835
    [% IF ( op == 'show' || op == 'else' ) %]
838
        <script type="text/javascript">
836
        <script type="text/javascript">
839
            $(document).ready(function(){
837
            $(document).ready(function(){
840
                $(".deletesuggestion").on("click",function(){
838
                $(".deletesuggestion").on("click",function(){
Lines 843-849 Link Here
843
            });
841
            });
844
        </script>
842
        </script>
845
    [% END %]
843
    [% END %]
846
    [% IF ( op_else ) %]
844
    [% IF op == 'else' %]
847
        [% INCLUDE 'datatables.inc' %]
845
        [% INCLUDE 'datatables.inc' %]
848
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
846
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
849
        <script type="text/javascript">
847
        <script type="text/javascript">
Lines 962-968 Link Here
962
            });
960
            });
963
        </script>
961
        </script>
964
    [% END %]
962
    [% END %]
965
    [% IF ( op_save )  %]
963
    [% IF op == 'save'  %]
966
        <script type="text/javascript">
964
        <script type="text/javascript">
967
965
968
            function editManagerPopup() {
966
            function editManagerPopup() {
(-)a/suggestion/suggestion.pl (-2 lines)
Lines 335-341 $template->param( Link Here
335
335
336
$template->param(
336
$template->param(
337
    %$suggestion_ref,
337
    %$suggestion_ref,
338
    "op_$op"                => 1,
339
    "op"             =>$op,
338
    "op"             =>$op,
340
);
339
);
341
340
342
- 

Return to bug 23590