diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-15 18:21:17 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-15 18:26:54 -0700 |
commit | 0be54958813c9a4a5e24e32707b92e49881c7c0a (patch) | |
tree | 3ce114440378a64f6de3c54abd9f32a1bb8b45e4 /httemplate/search/report_tax.html | |
parent | fbb0b4a9c32444f89e0b5aacfebdf883070c3b21 (diff) |
tax report showing all taxes, #41656
Diffstat (limited to 'httemplate/search/report_tax.html')
-rwxr-xr-x | httemplate/search/report_tax.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index 8d8d1084c..f920adbac 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -8,6 +8,20 @@ <& /elements/tr-input-beginning_ending.html &> + <tr> + <td></td> + <td colspan=2 style="font-weight: bold"> + <& /elements/radio.html, + 'field' => 'all', + 'value' => 1, + 'curr_value' => 1, + &> All taxes + <& /elements/radio.html, + 'field' => 'all', + 'value' => 0, + &> A specific tax + </td> + </tr> <& /elements/tr-select.html, 'label' => 'Country', 'field' => 'country', @@ -49,6 +63,21 @@ </FORM> +<script> +$(document).ready(function() { + $('[name=all]').on('change', function(ev) { + // disable country/taxname/breakdown if 'all' = 1 + if (this.checked) { + var disabled = (this.value == 1); + $('[name=country').prop('disabled', disabled); + $('[name=taxname').prop('disabled', disabled); + $('[name=breakdown').prop('disabled', disabled); + } + }); + $('[name=all]').change(); +}); +</script> + <% include('/elements/footer.html') %> <%init> |