class FuncFlowTable(BaseList.BaseTable): subfuncflow_flow = BadgesColumn(verbose_name="Sub functional flows", linkify_item=True) view_perms = {'subfuncflow_flow': 'funcmngt.view_subfuncflow'} class Meta(BaseList.BaseTable.Meta): model = FuncFlow
class ServerTable(BaseList.BaseTable): env_servers = BadgesColumn(verbose_name="Environment") view_perms = { 'env_servers': 'appmngt.view_environment' } class Meta(BaseList.BaseTable.Meta): model = Server
class UniversTable(BaseList.BaseTable): app_univers = BadgesColumn(verbose_name="Applications", linkify_item=True) view_perms = { 'app_univers': 'appmngt.view_application', } class Meta(BaseList.BaseTable.Meta): model = Univers
class PartnerTable(BaseList.BaseTable): app_partner = BadgesColumn(verbose_name="Applications", linkify_item=True) view_perms = { 'app_partner': 'appmngt.view_application', } class Meta(BaseList.BaseTable.Meta): model = Partner
class ReleaseTable(BaseList.BaseTable): release_date = tables.DateColumn(format="D d/m/Y") applications = BadgesColumn(linkify_item=True) view_perms = { 'applications': 'appmngt.view_application', } class Meta(BaseList.BaseTable.Meta): model = Release
class ApplicationTable(BaseList.BaseTable): univers = SingleBadgeColumn() partner = SingleBadgeColumn() env_app = BadgesColumn(verbose_name="Environments", linkify_item=True) release_app = BadgesColumn(verbose_name="Releases", linkify_item=True) subfuncflow_req_app = BadgesColumn(verbose_name="Receiver", linkify_item=True) subfuncflow_rec_app = BadgesColumn(verbose_name="Requester", linkify_item=True) view_perms = { 'univers': 'appmngt.view_univers', 'partner': 'appmngt.view_partner', 'env_app': 'appmngt.view_envrionment', 'release_app': 'appmngt.view_release', 'subfuncflow_req_app': 'funcmngt.view_subfuncflow', 'subfuncflow_rec_app': 'funcmngt.view_subfuncflow', } class Meta(BaseList.BaseTable.Meta): model = Application
class EnvironmentTable(BaseList.BaseTable): application = SingleBadgeColumn() servers = BadgesColumn(linkify_item=True) view_perms = { 'application': 'appmngt.view_application', 'servers': 'techmngt.view_server', } class Meta(BaseList.BaseTable.Meta): model = Environment