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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl (-8 / +31 lines)
Lines 63-70 if (ok) { Link Here
63
ff.submit();
63
ff.submit();
64
64
65
}
65
}
66
66
$(document).ready(function() 
67
67
    {
68
        //We apply the fonction only for modify option
69
        <!--TMPL_IF NAME="quantityrec"-->
70
        $('#quantity').blur(function() 
71
        {
72
            // if user decreases the quantity
73
            if($(this).val() < <!-- TMPL_VAR name="quantityrec" -->) 
74
            {
75
                alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog");   
76
                return true;
77
            } 
78
            else 
79
            {
80
                // if user increases the quantity
81
                alert("You can't add a new item, please create a new order line");
82
                // and we replace the original value
83
                $(this).val(<!-- TMPL_VAR name="quantityrec" -->)
84
                return false;
85
            }
86
        });
87
        <!-- /TMPL_IF -->
88
    });
68
//]]>
89
//]]>
69
</script>
90
</script>
70
</head>
91
</head>
Lines 83-89 ff.submit(); Link Here
83
104
84
<h2>
105
<h2>
85
    <!-- TMPL_IF name="ordernumber" -->
106
    <!-- TMPL_IF name="ordernumber" -->
86
        Modify order details (line #<!-- TMPL_VAR NAME="ordernumber" -->)
107
        Modify order line
87
    <!-- TMPL_ELSE -->
108
    <!-- TMPL_ELSE -->
88
        New order
109
        New order
89
    <!-- /TMPL_IF -->
110
    <!-- /TMPL_IF -->
Lines 132-138 ff.submit(); Link Here
132
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform">
153
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" id="Aform">
133
154
134
<fieldset class="rows">
155
<fieldset class="rows">
135
        <legend>Catalog details</legend>
156
        <legend>
157
            Catalog details
158
            <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR NAME= "biblionumber"-->"> Edit record</a></span>
159
        </legend>
136
        <!-- TMPL_UNLESS name="existing" -->
160
        <!-- TMPL_UNLESS name="existing" -->
137
        <input type="hidden" name="existing" value="no" />
161
        <input type="hidden" name="existing" value="no" />
138
        <!-- /TMPL_UNLESS -->
162
        <!-- /TMPL_UNLESS -->
Lines 361-370 ff.submit(); Link Here
361
            </li>
385
            </li>
362
            <li>
386
            <li>
363
                <label for="notes">Notes: </label>
387
                <label for="notes">Notes: </label>
364
                <textarea id="notes" cols="30" rows="3" name="notes"><!-- TMPL_VAR NAME="notes" --></textarea>
388
                <textarea id="notes" cols="30" rows="3" name="notes"></textarea>
365
            </li>
389
            </li>
366
            <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
390
            <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
367
                <label for="sort1">Planning value1: </label>
391
                <label for="sort1">Statistic 1: </label>
368
392
369
                <!-- TMPL_IF Name="CGIsort1" -->
393
                <!-- TMPL_IF Name="CGIsort1" -->
370
                    <!-- TMPL_VAR Name="CGIsort1" -->
394
                    <!-- TMPL_VAR Name="CGIsort1" -->
Lines 374-380 ff.submit(); Link Here
374
                <!--/TMPL_IF -->
398
                <!--/TMPL_IF -->
375
            </li>
399
            </li>
376
            <li>
400
            <li>
377
                <label for="sort2">Planning value2: </label>
401
                <label for="sort2">Statistic 2: </label>
378
402
379
                <!-- TMPL_IF Name="CGIsort2" -->
403
                <!-- TMPL_IF Name="CGIsort2" -->
380
                    <!-- TMPL_VAR Name="CGIsort2" -->
404
                    <!-- TMPL_VAR Name="CGIsort2" -->
381
- 

Return to bug 5949