|
Lines 7-33
Link Here
|
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
| 8 |
<script type="text/javascript"> |
8 |
<script type="text/javascript"> |
| 9 |
//<![CDATA[ |
9 |
//<![CDATA[ |
| 10 |
function Check(f) { |
|
|
| 11 |
var _alertString=""; |
| 12 |
var alertString2; |
| 13 |
if (f.currency.value.length==0) { |
| 14 |
_alertString += _("- Currency name missing") + "\n"; |
| 15 |
} |
| 16 |
if (f.rate.value.length==0) { |
| 17 |
_alertString += _("- Rate missing") + "\n"; |
| 18 |
} |
| 19 |
if (f.symbol.value.length==0) { |
| 20 |
_alertString += _("- Symbol missing") + "\n"; |
| 21 |
} |
| 22 |
if (_alertString.length==0) { |
| 23 |
document.Aform.submit(); |
| 24 |
} else { |
| 25 |
alertString2 = _("Form not submitted because of the following problem(s)") + "\n"; |
| 26 |
alertString2 += "------------------------------------------------------------------------------------\n"; |
| 27 |
alertString2 += _alertString; |
| 28 |
alert(alertString2); |
| 29 |
} |
| 30 |
} |
| 31 |
|
10 |
|
| 32 |
function check_currency(val) { |
11 |
function check_currency(val) { |
| 33 |
if ( val == 1.0 ) { |
12 |
if ( val == 1.0 ) { |
|
Lines 76-82
Link Here
|
| 76 |
|
55 |
|
| 77 |
[% IF ( add_form ) %] |
56 |
[% IF ( add_form ) %] |
| 78 |
|
57 |
|
| 79 |
<form action="[% script_name %]" name="Aform" method="post"> |
58 |
<form action="[% script_name %]" name="Aform" method="post" class="validated"> |
| 80 |
<input type="hidden" name="op" value="save" /> |
59 |
<input type="hidden" name="op" value="save" /> |
| 81 |
<fieldset class="rows"> |
60 |
<fieldset class="rows"> |
| 82 |
<legend>[% IF ( searchfield ) %] |
61 |
<legend>[% IF ( searchfield ) %] |
|
Lines 90-106
Link Here
|
| 90 |
<span class="label">Currency: </span> |
69 |
<span class="label">Currency: </span> |
| 91 |
<input type="hidden" name="currency" id="currency" value="[% searchfield %]" />[% searchfield %] |
70 |
<input type="hidden" name="currency" id="currency" value="[% searchfield %]" />[% searchfield %] |
| 92 |
[% ELSE %] |
71 |
[% ELSE %] |
| 93 |
<label for="currency">Currency: </label> |
72 |
<label for="currency" class="required">Currency: </label> |
| 94 |
<input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" /> |
73 |
<input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" required="required" class="required" /> <span class="required">Required</span> |
| 95 |
[% END %] |
74 |
[% END %] |
| 96 |
</li> |
75 |
</li> |
| 97 |
<li> |
76 |
<li> |
| 98 |
<label for="rate">Rate: </label> |
77 |
<label for="rate" class="required">Rate: </label> |
| 99 |
<input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% rate %]" /> |
78 |
<input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% rate %]" required="required" class="required" /> <span class="required">Required</span> |
| 100 |
</li> |
79 |
</li> |
| 101 |
<li> |
80 |
<li> |
| 102 |
<label for="symbol">Symbol: </label> |
81 |
<label for="symbol" class="required">Symbol: </label> |
| 103 |
<input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% symbol %]" /> |
82 |
<input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% symbol %]" required="required" class="required" /> <span class="required">Required</span> |
| 104 |
</li> |
83 |
</li> |
| 105 |
|
84 |
|
| 106 |
<li> |
85 |
<li> |
|
Lines 120-126
Link Here
|
| 120 |
</fieldset> |
99 |
</fieldset> |
| 121 |
|
100 |
|
| 122 |
<fieldset class="action"> |
101 |
<fieldset class="action"> |
| 123 |
<input type="submit" value="Submit" onclick="Check(this.form); return false;" /> |
102 |
<input type="submit" value="Submit" /> |
| 124 |
<a href="/cgi-bin/koha/admin/currency.pl" class="cancel">Cancel</a> |
103 |
<a href="/cgi-bin/koha/admin/currency.pl" class="cancel">Cancel</a> |
| 125 |
</fieldset> |
104 |
</fieldset> |
| 126 |
</form> |
105 |
</form> |
| 127 |
- |
|
|