Re: Change color of table cell based in another cell value django-tables2

2014-08-21 Thread Mario Gudelj
I have never used "django-tables2" package but traditionally you'd do something like class="color_{{item.reception_status}}" which will render class="color_3" or class="color_1" and then use CSS to style it. What does cell render? Can you access reception_status from it as in {{ cell.reception_stat

Change color of table cell based in another cell value django-tables2

2014-08-21 Thread Jose Elvir
I have a html table (django-tables2) based on a model class MasterTable(tables.Table): class Meta: model = Master fields = ("name","reception_date","reception_status","amount_files") I need to change the color of some cell based in the value of others cell. Example : name will b