Skip to content

Commit 06e7b01

Browse files
committed
Add 'tax_table' format to tax block
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
1 parent 694f644 commit 06e7b01

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/models/schema/definitions/tax.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"type": "object",
33
"required": ["tax_type"],
44
"additionalProperties": false,
5+
"x-formats": ["tax_table"],
56
"x-field-order": ["title", "abbreviation", "synonym", "tax_type", "description", "note"],
67
"properties": {
78
"abbreviation": {

0 commit comments

Comments
 (0)