|
@@ -256,11 +256,24 @@ class ResourcesTable(tables.Table):
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ edit = tables.LinkColumn(
|
|
|
|
+ 'sharix_admin:resource/edit/',
|
|
|
|
+ verbose_name='',
|
|
|
|
+ orderable=False,
|
|
|
|
+ text="E",
|
|
|
|
+ args=[tables.A('pk')],
|
|
|
|
+ attrs={
|
|
|
|
+ 'th': {'scope': 'col'},
|
|
|
|
+ "td": {"class": "edit_col"},
|
|
|
|
+ "td": {"width": "10%"}
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+
|
|
check = tables.BooleanColumn(
|
|
check = tables.BooleanColumn(
|
|
verbose_name='',
|
|
verbose_name='',
|
|
attrs={
|
|
attrs={
|
|
'th': {'scope': 'col'},
|
|
'th': {'scope': 'col'},
|
|
- "td": {"width": "40%"}
|
|
|
|
|
|
+ "td": {"width": "10%"}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -336,6 +349,18 @@ class ProvidersTable(tables.Table):
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ #edit = tables.LinkColumn(
|
|
|
|
+ # 'sharix_admin:provider/edit/',
|
|
|
|
+ # verbose_name='',
|
|
|
|
+ # orderable=False,
|
|
|
|
+ # text="E",
|
|
|
|
+ # args=[tables.A('pk')],
|
|
|
|
+ # attrs={
|
|
|
|
+ # 'th': {'scope': 'col'},
|
|
|
|
+ # "td": {"class": "edit_col"}
|
|
|
|
+ # }
|
|
|
|
+ #)
|
|
|
|
+
|
|
check = tables.BooleanColumn(
|
|
check = tables.BooleanColumn(
|
|
verbose_name='',
|
|
verbose_name='',
|
|
attrs={
|
|
attrs={
|
|
@@ -384,7 +409,7 @@ class ServiceTariffsTable(tables.Table):
|
|
}
|
|
}
|
|
)
|
|
)
|
|
codename = tables.LinkColumn(
|
|
codename = tables.LinkColumn(
|
|
- 'sharix_admin:service_tariff/edit/',
|
|
|
|
|
|
+ 'sharix_admin:service_tariff_detail',
|
|
verbose_name=_('Кодовое название'),
|
|
verbose_name=_('Кодовое название'),
|
|
text=lambda record: record.caption,
|
|
text=lambda record: record.caption,
|
|
args=[tables.A('pk')],
|
|
args=[tables.A('pk')],
|
|
@@ -395,8 +420,8 @@ class ServiceTariffsTable(tables.Table):
|
|
)
|
|
)
|
|
#service_category = tables.Column(
|
|
#service_category = tables.Column(
|
|
service_category = tables.LinkColumn(
|
|
service_category = tables.LinkColumn(
|
|
- 'sharix_admin:service_category/edit/',
|
|
|
|
- verbose_name=_('Название схемы услуги'),
|
|
|
|
|
|
+ 'sharix_admin:service_category_detail',
|
|
|
|
+ verbose_name=_('Название Типа услуги'),
|
|
text=lambda record: record.service_category.caption,
|
|
text=lambda record: record.service_category.caption,
|
|
args=[tables.A('pk')],
|
|
args=[tables.A('pk')],
|
|
attrs={
|
|
attrs={
|
|
@@ -405,7 +430,7 @@ class ServiceTariffsTable(tables.Table):
|
|
}
|
|
}
|
|
)
|
|
)
|
|
resource_type = tables.Column(
|
|
resource_type = tables.Column(
|
|
- verbose_name=_('Тип ресурса'),
|
|
|
|
|
|
+ #verbose_name=_('Тип ресурса'),
|
|
attrs={
|
|
attrs={
|
|
'th': {'scope': 'col'},
|
|
'th': {'scope': 'col'},
|
|
"td": {"width": "20%"}
|
|
"td": {"width": "20%"}
|
|
@@ -413,13 +438,25 @@ class ServiceTariffsTable(tables.Table):
|
|
)
|
|
)
|
|
|
|
|
|
company_comission = tables.Column(
|
|
company_comission = tables.Column(
|
|
- verbose_name=_('Комиссия партнера'),
|
|
|
|
|
|
+ #verbose_name=_('Комиссия партнера'),
|
|
attrs={
|
|
attrs={
|
|
'th': {'scope': 'col'},
|
|
'th': {'scope': 'col'},
|
|
"td": {"width": "20%"}
|
|
"td": {"width": "20%"}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ edit = tables.LinkColumn(
|
|
|
|
+ 'sharix_admin:service_tariff/edit/',
|
|
|
|
+ verbose_name='',
|
|
|
|
+ orderable=False,
|
|
|
|
+ text="E",
|
|
|
|
+ args=[tables.A('pk')],
|
|
|
|
+ attrs={
|
|
|
|
+ 'th': {'scope': 'col'},
|
|
|
|
+ "td": {"class": "edit_col"}
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+
|
|
check = tables.BooleanColumn(
|
|
check = tables.BooleanColumn(
|
|
verbose_name=_('Activity'),
|
|
verbose_name=_('Activity'),
|
|
orderable=False,
|
|
orderable=False,
|