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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt (-24 / +4 lines)
Lines 8-33 Link Here
8
</title>
8
</title>
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
10
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
11
<script type="text/javascript">
12
//<![CDATA[
13
// to check if the data are correctly entered.
14
function Check(ff) {
15
    var ok=0;
16
    var _alertString="Form not submitted because of the following problem(s)";
17
    _alertString +="\n-------------------------------------------------------------------\n\n";
18
    if (!(isNotNull(ff.basketname,0))){
19
        ok=1;
20
        _alertString += "- name missing\n";
21
    }
22
    if (ok) { // if there is a problem
23
        alert(_alertString);
24
    return false;
25
}
26
// if all is good
27
    ff.submit();
28
}
29
//]]>
30
</script>
31
</head>
11
</head>
32
<body id="acq_basketheader" class="acq">
12
<body id="acq_basketheader" class="acq">
33
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
Lines 54-60 function Check(ff) { Link Here
54
            <h1>Edit basket [% basketname %]</h1>
34
            <h1>Edit basket [% basketname %]</h1>
55
        [% ELSE %]<h1>Add a basket to [% booksellername %]</h1>
35
        [% ELSE %]<h1>Add a basket to [% booksellername %]</h1>
56
        [% END %]
36
        [% END %]
57
    <form name="Aform" action="[% script_name %]" method="post">
37
    <form name="Aform" action="[% script_name %]" method="post" class="validated">
58
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
38
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
59
        <fieldset class="rows">
39
        <fieldset class="rows">
60
            <ol>
40
            <ol>
Lines 66-72 function Check(ff) { Link Here
66
                [% END %]
46
                [% END %]
67
                <li>
47
                <li>
68
                    <label for="basketname" class="required">Basket name: </label> &nbsp;
48
                    <label for="basketname" class="required">Basket name: </label> &nbsp;
69
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" class="focus" />
49
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" required="required" class="required" />
50
                        <span class="required">Required</span>
70
                </li>
51
                </li>
71
                 <li>
52
                 <li>
72
                    <label for="billingplace">Billing place:</label>
53
                    <label for="billingplace">Billing place:</label>
Lines 136-142 function Check(ff) { Link Here
136
        </fieldset>
117
        </fieldset>
137
        <fieldset class="action">
118
        <fieldset class="action">
138
            <input type="hidden" name="op" value="add_validate" />
119
            <input type="hidden" name="op" value="add_validate" />
139
            <input type="button" value="Save" onclick="Check(this.form);" />
120
            <input type="submit" value="Save" />
140
            <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
121
            <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
141
        </fieldset>
122
        </fieldset>
142
    </form>
123
    </form>
143
- 

Return to bug 11805