|
Lines 167-173
h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
Link Here
|
| 167 |
[% IF ( op_save ) %] |
167 |
[% IF ( op_save ) %] |
| 168 |
<script type="text/javascript"> |
168 |
<script type="text/javascript"> |
| 169 |
// <![CDATA[ |
169 |
// <![CDATA[ |
| 170 |
$(document).ready(function() { calcNewsuggTotal(); }); |
170 |
$(document).ready(function(){ |
|
|
171 |
calcNewsuggTotal(); |
| 172 |
$("#quantity,#price,#currency").on("change",function(){ |
| 173 |
calcNewsuggTotal(); |
| 174 |
}); |
| 175 |
}); |
| 171 |
// ]]> |
176 |
// ]]> |
| 172 |
</script> |
177 |
</script> |
| 173 |
[% END %] |
178 |
[% END %] |
|
Lines 435-441
h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
Link Here
|
| 435 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %] |
440 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %] |
| 436 |
</select> |
441 |
</select> |
| 437 |
</li><li><label for="quantity">Copies:</label> |
442 |
</li><li><label for="quantity">Copies:</label> |
| 438 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" /> |
443 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" /> |
| 439 |
</li> |
444 |
</li> |
| 440 |
<li> |
445 |
<li> |
| 441 |
<label for="currency">Currency:</label> |
446 |
<label for="currency">Currency:</label> |
|
Lines 444-450
h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
Link Here
|
| 444 |
<input type="hidden" id="[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" /> |
449 |
<input type="hidden" id="[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" /> |
| 445 |
[% END %] |
450 |
[% END %] |
| 446 |
|
451 |
|
| 447 |
<select name="currency" id="currency" onchange="calcNewsuggTotal();"> |
452 |
<select name="currency" id="currency"> |
| 448 |
[% FOREACH c IN currencies %] |
453 |
[% FOREACH c IN currencies %] |
| 449 |
[% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %] |
454 |
[% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %] |
| 450 |
<option value="[% c.currency %]" selected="selected">[% c.currency %]</option> |
455 |
<option value="[% c.currency %]" selected="selected">[% c.currency %]</option> |
|
Lines 455-461
h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
Link Here
|
| 455 |
</select> |
460 |
</select> |
| 456 |
</li> |
461 |
</li> |
| 457 |
<li><label for="price">Price:</label> |
462 |
<li><label for="price">Price:</label> |
| 458 |
<input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" /> |
463 |
<input type="text" size="20" name="price" id="price" value="[% price %]" /> |
| 459 |
</li><li><label for="total">Total: </label> |
464 |
</li><li><label for="total">Total: </label> |
| 460 |
<input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/> |
465 |
<input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/> |
| 461 |
</li></ol> |
466 |
</li></ol> |
| 462 |
- |
|
|