mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Add StatusTagColumn component
This commit is contained in:
parent
46bb760319
commit
613f71837b
@ -0,0 +1,3 @@
|
||||
<td {% if column.classname %}class="{{ column.classname }}"{% endif %}>
|
||||
<div class="status-tag primary">{{ value }}</div>
|
||||
</td>
|
@ -177,6 +177,12 @@ class StatusFlagColumn(Column):
|
||||
self.false_label = false_label
|
||||
|
||||
|
||||
class StatusTagColumn(Column):
|
||||
"""Represents a status tag"""
|
||||
|
||||
cell_template_name = "wagtailadmin/tables/status_tag_cell.html"
|
||||
|
||||
|
||||
class DateColumn(Column):
|
||||
"""Outputs a date in human-readable format"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user