Example #1
0
 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&nbsp;z\u0142</a> %s' % (
             self.onclick(obj.id, obj),
             self.no_icon,
             count_payment(obj),
             self.anim_icon(obj.id),
         )
Example #2
0
 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&nbsp;z\u0142" % (r, (count_payment(obj) + 40))