1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Renamed template

This commit is contained in:
Jeremy Stretch
2016-12-21 15:31:55 -05:00
parent 7b06f5e9fc
commit 0e4d02bd10
3 changed files with 2 additions and 15 deletions

View File

@@ -367,7 +367,7 @@ class ComponentTemplateCreateView(View):
devicetype = get_object_or_404(DeviceType, pk=pk)
return render(request, 'dcim/component_template_add.html', {
return render(request, 'dcim/devicetype_component_add.html', {
'devicetype': devicetype,
'component_type': self.model._meta.verbose_name,
'form': self.form(initial=request.GET),
@@ -400,7 +400,7 @@ class ComponentTemplateCreateView(View):
else:
return redirect('dcim:devicetype', pk=devicetype.pk)
return render(request, 'dcim/component_template_add.html', {
return render(request, 'dcim/devicetype_component_add.html', {
'devicetype': devicetype,
'component_type': self.model._meta.verbose_name,
'form': form,