2
2
{% load static %}
3
3
{% load form_helpers %}
4
4
5
- {% block title %}{% if obj.pk %}Editing {{ obj }}{% else %}Add an Access List{% endif %}{% endblock %}
6
-
7
5
{% block form %}
8
6
{% render_errors form %}
9
- < div class ="field-group ">
10
- < h2 > Access List Details</ h2 >
7
+ < div class ="field-group my-5 ">
8
+ < div class ="row ">
9
+ < h2 class ="col-9 offset-3 "> Access List Details</ h2 >
10
+ </ div >
11
11
{% render_field form.name %}
12
12
{% render_field form.type %}
13
13
{% render_field form.default_action %}
14
14
{% render_field form.tags %}
15
15
</ div >
16
- < div class ="field-group ">
17
- < h2 > Host Assignment</ h2 >
18
- < ul class ="nav nav-pills " role ="tablist ">
19
- < li class ="nav-item " role ="presentation ">
20
- < button
21
- role ="tab "
22
- type ="button "
23
- id ="device_tab "
24
- data-bs-toggle ="tab "
25
- class ="nav-link {% if not form.initial.virtual_chassis and not form.initial.virtual_machine %}active{% endif %} "
26
- data-bs-target ="#device "
27
- aria-controls ="device "
28
- >
29
- Device
30
- </ button >
31
- </ li >
32
- < li class ="nav-item " role ="presentation ">
33
- < button
34
- role ="tab "
35
- type ="button "
36
- id ="vm_tab "
37
- data-bs-toggle ="tab "
38
- class ="nav-link {% if form.initial.virtual_chassis %}active{% endif %} "
39
- data-bs-target ="#virtualchassis "
40
- aria-controls ="virtualchassis "
41
- >
42
- Virtual Chassis
43
- </ button >
44
- </ li >
45
- < li class ="nav-item " role ="presentation ">
46
- < button
47
- role ="tab "
48
- type ="button "
49
- id ="vm_tab "
50
- data-bs-toggle ="tab "
51
- class ="nav-link {% if form.initial.virtual_machine %}active{% endif %} "
52
- data-bs-target ="#virtualmachine "
53
- aria-controls ="virtualmachine "
54
- >
55
- Virtual Machine
56
- </ button >
57
- </ li >
58
- </ ul >
59
- < div class ="tab-content ">
16
+ < div class ="field-group my-5 ">
17
+ < div class ="row ">
18
+ < h2 class ="col-9 offset-3 "> Host Assignment</ h2 >
19
+ </ div >
20
+ < div class ="row ">
21
+ < div class ="col-9 offset-3 ">
22
+ < ul class ="nav nav-pills mb-1 " role ="tablist ">
23
+ < li class ="nav-item " role ="presentation ">
24
+ < button
25
+ role ="tab "
26
+ type ="button "
27
+ id ="device_tab "
28
+ data-bs-toggle ="tab "
29
+ class ="nav-link {% if not form.initial.virtual_chassis and not form.initial.virtual_machine %}active{% endif %} "
30
+ data-bs-target ="#device "
31
+ aria-controls ="device "
32
+ >
33
+ Device
34
+ </ button >
35
+ </ li >
36
+ < li class ="nav-item " role ="presentation ">
37
+ < button
38
+ role ="tab "
39
+ type ="button "
40
+ id ="vm_tab "
41
+ data-bs-toggle ="tab "
42
+ class ="nav-link {% if form.initial.virtual_chassis %}active{% endif %} "
43
+ data-bs-target ="#virtualchassis "
44
+ aria-controls ="virtualchassis "
45
+ >
46
+ Virtual Chassis
47
+ </ button >
48
+ </ li >
49
+ < li class ="nav-item " role ="presentation ">
50
+ < button
51
+ role ="tab "
52
+ type ="button "
53
+ id ="vm_tab "
54
+ data-bs-toggle ="tab "
55
+ class ="nav-link {% if form.initial.virtual_machine %}active{% endif %} "
56
+ data-bs-target ="#virtualmachine "
57
+ aria-controls ="virtualmachine "
58
+ >
59
+ Virtual Machine
60
+ </ button >
61
+ </ li >
62
+ </ ul >
63
+ </ div >
64
+ </ div >
65
+ < div class ="tab-content p-0 border-0 ">
60
66
< div class ="tab-pane{% if not form.initial.virtual_chassis and not form.initial.virtualmachine %} active{% endif %} " id ="device ">
61
67
{% render_field form.region %}
62
68
{% render_field form.site_group %}
@@ -74,14 +80,18 @@ <h2>Host Assignment</h2>
74
80
</ div >
75
81
</ div >
76
82
</ div >
77
- < div class ="field-group ">
78
- < h2 > Comments</ h2 >
83
+ < div class ="field-group my-5 ">
84
+ < div class ="row ">
85
+ < h2 class ="col-9 offset-3 "> Comments</ h2 >
86
+ </ div >
79
87
{% render_field form.comments %}
80
88
</ div >
81
89
{% if form.custom_fields %}
82
- < div class ="card ">
83
- < h5 class ="card-header "> Custom Fields</ h5 >
84
- {% render_custom_fields form %}
90
+ < div class ="field-group my-5 ">
91
+ < div class ="row ">
92
+ < h2 class ="col-9 offset-3 "> Custom Fields</ h2 >
93
+ </ div >
94
+ {% render_custom_fields form %}
85
95
</ div >
86
96
{% endif %}
87
97
{% endblock %}
0 commit comments