Lines 10-30
Link Here
|
10 |
|
10 |
|
11 |
<script type="text/javascript"> |
11 |
<script type="text/javascript"> |
12 |
//<![CDATA[ |
12 |
//<![CDATA[ |
13 |
function Check(f) { |
|
|
14 |
var _alertString=""; |
15 |
var alertString2; |
16 |
if (f.tagfield.value.length==0) { |
17 |
_alertString += "\n- " + _("tag number missing"); |
18 |
} |
19 |
if (_alertString.length==0) { |
20 |
document.Aform.submit(); |
21 |
} else { |
22 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
23 |
alertString2 += "\n------------------------------------------------------------------------------------\n"; |
24 |
alertString2 += _alertString; |
25 |
alert(alertString2); |
26 |
} |
27 |
} |
28 |
|
13 |
|
29 |
$(document).ready(function() { |
14 |
$(document).ready(function() { |
30 |
$("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { |
15 |
$("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { |
Lines 76-95
$(document).ready(function() {
Link Here
|
76 |
|
61 |
|
77 |
[% IF ( add_form ) %] |
62 |
[% IF ( add_form ) %] |
78 |
|
63 |
|
79 |
<form action="[% script_name %]" name="Aform" method="post"> |
64 |
<form action="[% script_name %]" name="Aform" method="post" class="validated"> |
80 |
|
65 |
|
81 |
<fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend> <input type="hidden" name="op" value="add_validate" /> |
66 |
<fieldset class="rows"><legend>[% IF ( use_heading_flags_p ) %][% IF ( heading_modify_tag_p ) %]Modify tag <input type="hidden" name="modif" value="1" />[% searchfield %][% END %][% IF ( heading_add_tag_p ) %]Add tag[% END %][% ELSE %][% action %][% END %]</legend> <input type="hidden" name="op" value="add_validate" /> |
82 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
67 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
83 |
|
68 |
|
84 |
<ol> <li><label for="tagfield">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" /></li> |
69 |
<ol> <li><label for="tagfield" class="required">Tag: </label><input id="tagfield" type="text" name="tagfield" value="[% searchfield %]" maxlength="3" size="3" required="required" class="required" /> <span class="required">Required</span></li> |
85 |
<li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li> |
70 |
<li><label for="liblibrarian">Label for lib: </label><input type="text" id="liblibrarian" name="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li> |
86 |
<li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li> |
71 |
<li><label for="libopac">Label for opac: </label><input type="text" id="libopac" name="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li> |
87 |
<li><label for="repeatable">Repeatable: </label>[% repeatable %]</li> |
72 |
<li><label for="repeatable">Repeatable: </label> |
88 |
<li><label for="mandatory">Mandatory: </label>[% mandatory %]</li> |
73 |
[% IF ( repeatable ) %] |
|
|
74 |
<input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" /> |
75 |
[% ELSE %] |
76 |
<input type="checkbox" name="repeatable" id="repeatable" value="1" /> |
77 |
[% END %] |
78 |
</li> |
79 |
<li><label for="mandatory">Mandatory: </label> |
80 |
[% IF ( mandatory ) %] |
81 |
<input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" /> |
82 |
[% ELSE %] |
83 |
<input type="checkbox" name="mandatory" id="mandatory" value="1" /> |
84 |
[% END %] |
85 |
</li> |
89 |
<li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li> |
86 |
<li><label for="authorised_value">Authorized value: </label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li> |
90 |
</ol></fieldset> |
87 |
</ol></fieldset> |
91 |
<fieldset class="action"> |
88 |
<fieldset class="action"> |
92 |
<input type="submit" value="Save Changes" onclick="Check(this.form)" /> |
89 |
<input type="submit" value="Save changes" /> |
93 |
<a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a> |
90 |
<a class="cancel" href="[% script_name %]?frameworkcode=[% frameworkcode %]">Cancel</a> |
94 |
</fieldset> |
91 |
</fieldset> |
95 |
</form> |
92 |
</form> |
96 |
- |
|
|