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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-21 / +2 lines)
Lines 40-46 Link Here
40
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post">
40
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post">
41
                                <fieldset class="rows">
41
                                <fieldset class="rows">
42
                                    <ol>
42
                                    <ol>
43
                                        <li><label class="required" for="title">Title:</label><input type="text" id="title" name="title" class="span6" maxlength="255" /></li>
43
                                        <li><label class="required" for="title">Title:</label><input type="text" id="title" name="title" class="span6" maxlength="255" required="required" /> <span class="required">Required</span></li>
44
                                        <li><label for="author">Author:</label><input type="text" id="author" name="author" class="span6" maxlength="80" /></li>
44
                                        <li><label for="author">Author:</label><input type="text" id="author" name="author" class="span6" maxlength="80" /></li>
45
                                        <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li>
45
                                        <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" /></li>
46
                                        <li><label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" /></li>
46
                                        <li><label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn"  maxlength="80" /></li>
Lines 89-95 Link Here
89
                                <fieldset class="action">
89
                                <fieldset class="action">
90
                                    <input type="hidden" name="suggested_by_anyone" value="[% suggested_by_anyone %]" />
90
                                    <input type="hidden" name="suggested_by_anyone" value="[% suggested_by_anyone %]" />
91
                                    <input type="hidden" name="op" value="add_confirm" />
91
                                    <input type="hidden" name="op" value="add_confirm" />
92
                                    <input type="submit" onclick="Check(this.form); return false;" class="btn" value="Submit your suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a>
92
                                    <input type="submit" class="btn" value="Submit your suggestion" /> <a class="action" href="/cgi-bin/koha/opac-suggestions.pl">Cancel</a>
93
                                </fieldset>
93
                                </fieldset>
94
                            </form>
94
                            </form>
95
                            [% END %]
95
                            [% END %]
Lines 338-361 Link Here
338
        });
338
        });
339
        [% END %]
339
        [% END %]
340
    });
340
    });
341
342
    function Check(f) {
343
        var _alertString="";
344
        var alertString2;
345
346
        if(f.title.value.length ==0){
347
            _alertString += _("- You must enter a Title") + "\n";
348
        }
349
350
        if (_alertString.length==0) {
351
            f.submit();
352
        } else {
353
            alertString2 = _("Form not submitted because of the following problem(s)");
354
            alertString2 += "\n------------------------------------------------------------------------------------\n\n";
355
            alertString2 += _alertString;
356
            alert(alertString2);
357
        }
358
    }
359
//]]>
341
//]]>
360
</script>
342
</script>
361
[% END %]
343
[% END %]
362
- 

Return to bug 17166