src/pyams_skin/table.py
changeset 116 89efe1933eb5
parent 95 cfdcf86462f5
child 180 4ab1f514b9f0
equal deleted inserted replaced
115:2de951190b08 116:89efe1933eb5
   251             return viewlet.render()
   251             return viewlet.render()
   252         else:
   252         else:
   253             return ''
   253             return ''
   254 
   254 
   255 
   255 
   256 class TrashColumn(ActionColumn):
   256 class TrashColumn(JsActionColumn):
   257     """Trash action icon column"""
   257     """Trash action icon column"""
   258 
   258 
   259     url = 'MyAMS.container.deleteElement'
   259     url = 'MyAMS.container.deleteElement'
   260     icon_class = 'fa fa-fw fa-trash'
   260     icon_class = 'fa fa-fw fa-trash'
   261     icon_hint = _("Delete object")
   261     icon_hint = _("Delete object")
   262     permission = MANAGE_PERMISSION
   262     permission = MANAGE_PERMISSION
   263     weight = 9999
   263     weight = 9999
   264 
       
   265     def get_url(self, item):
       
   266         return self.url