|
@@ -459,10 +459,14 @@ class ServiceTariffsTable(tables.Table):
|
|
|
|
|
|
|
|
|
class ServiceCategoriesTable(tables.Table):
|
|
|
- id = tables.Column(attrs={"td": {"width": "50px"}})
|
|
|
+ id = tables.LinkColumn(
|
|
|
+ 'sharix_admin:service_category_detail',
|
|
|
+ args=[tables.A('pk')],
|
|
|
+ attrs={"td": {"width": "50px"}}
|
|
|
+ )
|
|
|
|
|
|
caption = tables.LinkColumn(
|
|
|
- 'sharix_admin:service_category/edit/',
|
|
|
+ 'sharix_admin:service_category_detail',
|
|
|
verbose_name='Услуга',
|
|
|
orderable=False,
|
|
|
text=lambda record: record.caption,
|
|
@@ -486,11 +490,11 @@ class ServiceCategoriesTable(tables.Table):
|
|
|
# "td": {"class": "name_col"}
|
|
|
# }
|
|
|
#)
|
|
|
- description = tables.LinkColumn(
|
|
|
- 'sharix_admin:service_category/edit/',
|
|
|
- orderable=False, verbose_name='Описание',
|
|
|
- text=lambda record: record.description,
|
|
|
- args=[tables.A('pk')],
|
|
|
+ description = tables.Column(
|
|
|
+ orderable=False,
|
|
|
+ #verbose_name='Описание',
|
|
|
+ #text=lambda record: record.description,
|
|
|
+ #args=[tables.A('pk')],
|
|
|
attrs={
|
|
|
"a": {"style": "pointer-events: none;"},
|
|
|
'th': {'scope': 'col'},
|
|
@@ -499,7 +503,7 @@ class ServiceCategoriesTable(tables.Table):
|
|
|
)
|
|
|
|
|
|
metaservice_comission = tables.Column(
|
|
|
- verbose_name=_('Комиссия Сервиса'),
|
|
|
+ #verbose_name=_('Комиссия Сервиса'),
|
|
|
attrs={
|
|
|
'th': {'scope': 'col'},
|
|
|
"td": {"width": "15%"}}
|