def ZOSIA_cost(self, obj): if obj.paid: return u"%s %s z\u0142" % (self.yes_icon, count_payment(obj)) else: return u'<a href="#" onclick="{%s}">%s %s z\u0142</a> %s' % ( self.onclick(obj.id, obj), self.no_icon, count_payment(obj), self.anim_icon(obj.id), )
def total_cost(self, obj): r = self.no_icon if obj.paid and (obj.paid_for_bus or not obj.bus): r = self.yes_icon return u"%s %s z\u0142" % (r, (count_payment(obj) + 40))