Skip to content

Commit

Permalink
Add caption field to tables
Browse files Browse the repository at this point in the history
  • Loading branch information
csebianlander committed Sep 20, 2024
1 parent 64fd8fc commit 929d73a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfgov/v1/atomic_elements/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class Table(blocks.StructBlock):
),
]
)
caption = blocks.RichTextBlock(required=False)

class Meta:
icon = "table"
Expand Down
2 changes: 2 additions & 0 deletions cfgov/v1/jinja2/v1/includes/organisms/tables/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,5 @@
{% endfor %}
</tbody>
</table>

{{ value.caption }}

0 comments on commit 929d73a

Please sign in to comment.