|
@@ -114,13 +114,13 @@ class ServiceTariffTable(tables.Table):
|
|
|
|
|
|
class ServiceTypeTable(tables.Table):
|
|
|
|
|
|
- id = tables.Column( attrs={"td":{"width":"50%"}})
|
|
|
- codename = tables.LinkColumn('service_type/edit/', verbose_name='Услуга', text = lambda record: record.codename,
|
|
|
- args=[tables.A('pk')], attrs={'th':{'scope':'col'}, "td":{"width":"100%"},})
|
|
|
- description = tables.LinkColumn('service_type/edit/', verbose_name='Описание', text = lambda record: record.description,
|
|
|
- args=[tables.A('pk')], attrs={'th':{'scope':'col'}, "td":{"width":"100%"},})
|
|
|
+ id = tables.Column( attrs={"td":{"width":"5%"}})
|
|
|
+ codename = tables.LinkColumn('service_type/edit/', verbose_name='Услуга', orderable=False, text = lambda record: record.codename,
|
|
|
+ args=[tables.A('pk')], attrs={'th':{'scope':'col'},})
|
|
|
+ description = tables.LinkColumn('service_type/edit/', orderable=False, verbose_name='Описание', text = lambda record: record.description,
|
|
|
+ args=[tables.A('pk')], attrs={'th':{'scope':'col'}, })
|
|
|
deletee = tables.LinkColumn('service_type/delete/', verbose_name='', text = "Удалить",
|
|
|
- args=[tables.A('pk')], attrs={'th':{'scope':'col'}, "td":{"width":"auto"},})
|
|
|
+ args=[tables.A('pk')], attrs={'th':{'scope':'col'},})
|
|
|
|
|
|
class Meta:
|
|
|
model = ServiceType
|