def idc(request): init = inittable(IDCTable) kwargs = { 'kwargs': init, 'html_title': ''.join([IDC._meta.verbose_name, '管理']), 'header_temp': 'header.html', 'add_url': reverse('cmdb:idc_add'), 'editor_url': reverse('cmdb:idc_editor', args=['']), 'data_url': reverse('cmdb:idc_data'), 'delete_url': reverse('cmdb:idc_delete'), } return render(request, 'table.html', kwargs)
def business(request): init = inittable(BusinessUnitTable) kwargs = { 'kwargs': init, 'html_title': ''.join([BusinessUnit._meta.verbose_name, '管理']), 'header_temp': 'header.html', 'add_url': reverse('cmdb:business_add'), 'editor_url': reverse('cmdb:business_editor', args=['']), 'data_url': reverse('cmdb:business_data'), 'delete_url': reverse('cmdb:business_delete'), } return render(request, 'table.html', kwargs)
def network(request): init = inittable(NetworkTable) kwargs = { 'kwargs': init, 'html_title': ''.join([NetworkDevice._meta.verbose_name, '管理']), 'header_temp': 'header.html', 'add_url': reverse('cmdb:network_add'), 'editor_url': reverse('cmdb:network_editor', args=['']), 'data_url': reverse('cmdb:network_data'), 'delete_url': reverse('cmdb:network_delete'), } return render(request, 'table.html', kwargs)
def contract(request): init = inittable(ContractTable) kwargs = { 'kwargs': init, 'html_title': ''.join([Contract._meta.verbose_name, '管理']), 'header_temp': 'header.html', 'add_url': reverse('cmdb:contract_add'), 'editor_url': reverse('cmdb:contract_editor', args=['']), 'data_url': reverse('cmdb:contract_data'), 'delete_url': reverse('cmdb:contract_delete'), } return render(request, 'cmdb/contract/contract.html', kwargs)
def user_list(request): kwargs = inittable(UserTable) header_temp = 'header.html' return render(request, 'accounts/user_list.html', locals())
def permission_list(request): kwargs = inittable(PermissionTable) return render(request, 'accounts/permission-list.html', locals())
def asset(request): kwargs = inittable(AssetTable) header_temp = 'header.html' return render(request, 'cmdb/asset/asset.html', locals())
def role_list(request): kwargs = inittable(RoleTable) return render(request, 'accounts/role_list.html', locals())
def nav_list(request): kwargs = inittable(NavTable) return render(request, 'navigation/nav-list.html', locals())