Add 'tax_table' format to tax block#661
Open
edavey wants to merge 2 commits into
Open
Conversation
We now offer a "tax_table" format to display a table of bands and rates
using a single embed code, e.g.
```
{{embed:content_block_tax:income-tax#tax_table}}
```
Given a tax object for income tax as per https://www.gov.uk/income-tax-rates
this will render a table of 12 values like:
```
| Band | Taxable income | Tax rate |
| ------------------ | ------------------- | -------- |
| Personal Allowance | Up to £12,570 | 0% |
| Basic rate | £12,571 to £50,270 | 20% |
| Higher rate | £50,271 to £125,140 | 40% |
| Additional rate | over £125,140 | 45% |
```
See [Content Block Tools PR 155][] for the tax table format
[Content Block Tools PR 155]:
alphagov/govuk_content_block_tools#155
06e7b01 to
4c19ad4
Compare
This version provides the "tax_table" format.
4c19ad4 to
ee8bd4a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Jira CM-932:
User story
We now offer a "tax_table" format to display a table of bands and rates using a single embed code, e.g.
Given a tax object for income tax as per https://www.gov.uk/income-tax-rates this will render a table of 12 values like:
See Content Block Tools PR 155 for the tax table format