Lines 27-32
Link Here
|
27 |
$("#branches option:first").attr("selected", "selected"); |
27 |
$("#branches option:first").attr("selected", "selected"); |
28 |
} |
28 |
} |
29 |
$('#icons').tabs(); |
29 |
$('#icons').tabs(); |
|
|
30 |
|
31 |
$("#authval_form").validate({ |
32 |
rules: { |
33 |
"category": { |
34 |
required: true, |
35 |
alphanumeric: true |
36 |
}, |
37 |
"authorised_value": { |
38 |
required: true, |
39 |
alphanumeric: true |
40 |
} |
41 |
} |
42 |
}); |
43 |
|
30 |
}); |
44 |
}); |
31 |
//]]> |
45 |
//]]> |
32 |
</script> |
46 |
</script> |
Lines 75-98
$(document).ready(function() {
Link Here
|
75 |
|
89 |
|
76 |
[% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %] |
90 |
[% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %] |
77 |
|
91 |
|
78 |
<form action="[% script_name %]" name="Aform" method="post"> |
92 |
<form action="[% script_name %]" name="Aform" method="post" id="authval_form"> |
79 |
<input type="hidden" name="op" value="add_validate" /> |
93 |
<input type="hidden" name="op" value="add_validate" /> |
80 |
<input type="hidden" name="offset" value="[% offset %]" /> |
94 |
<input type="hidden" name="offset" value="[% offset %]" /> |
81 |
<fieldset class="rows"><ol> |
95 |
<fieldset class="rows"><ol> |
82 |
<li> |
96 |
<li> |
83 |
[% IF ( action_add_category ) %]<label for="category">Category: </label> |
97 |
[% IF ( action_add_category ) %]<label for="category" class="required">Category: </label> |
84 |
<input type="text" name="category" id="category" size="10" maxlength="10" class="focus" /> |
98 |
<input type="text" name="category" id="category" size="10" maxlength="10" class="focus" required="required" /> |
85 |
[% ELSE %]<span class="label">Category</span> |
99 |
[% ELSE %]<span class="label">Category</span> |
86 |
<input type="hidden" name="category" value="[% category %]" /> [% category %] |
100 |
<input type="hidden" name="category" value="[% category %]" /> [% category %] |
87 |
[% END %] |
101 |
[% END %] |
88 |
</li> |
102 |
</li> |
89 |
<li> |
103 |
<li> |
90 |
<label for="authorised_value">Authorized value: </label> |
104 |
<label for="authorised_value" class="required">Authorized value: </label> |
91 |
[% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %] |
105 |
[% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %] |
92 |
[% IF ( action_add_category ) %] |
106 |
[% IF ( action_add_category ) %] |
93 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" /> |
107 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" required="required"/> |
94 |
[% ELSE %] |
108 |
[% ELSE %] |
95 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" /> |
109 |
<input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" required="required"/> |
96 |
[% END %] |
110 |
[% END %] |
97 |
</li> |
111 |
</li> |
98 |
<li> |
112 |
<li> |
99 |
- |
|
|