Created
January 22, 2015 19:19
-
-
Save eugene-goldberg/6497d745e641e2933d9c to your computer and use it in GitHub Desktop.
Tables
This file contains 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
class UpdateWorkload(tables.LinkAction): | |
name = "update" | |
verbose_name = _("Edit Workload") | |
url = "horizon:mydashboard:workloads_panel:update" | |
classes = ("ajax-modal",) | |
icon = "pencil" | |
class WorkloadsTable(tables.DataTable): | |
name = tables.Column("name", verbose_name=_("Name")) | |
description = tables.Column("description", verbose_name=_("Description")) | |
image = tables.Column("image", verbose_name=_("Image")) | |
flavor = tables.Column("flavor", verbose_name=_("Flavor")) | |
class Meta: | |
name = "workloads_table" | |
verbose_name = _("Workloads Table") | |
table_actions = (CreateNewWorkload, DeleteWorkload) | |
row_actions = (UpdateWorkload, DeleteWorkload) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment