@@ -78,7 +78,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
78
78
< tr >
79
79
< th scope ="row " class ="text-nowrap "> Status:</ th >
80
80
< td >
81
- {% if request.user.is_superuser %}
81
+ {% if request.user.is_superuser or request.user.is_staff %}
82
82
{{ form.status }}
83
83
{% else %}
84
84
{{ allocation.status }}
@@ -88,7 +88,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
88
88
< tr >
89
89
< th scope ="row " class ="text-nowrap "> Start Date:</ th >
90
90
< td >
91
- {% if request.user.is_superuser %}
91
+ {% if request.user.is_superuser or request.user.is_staff %}
92
92
{{ form.start_date }}
93
93
{% else %}
94
94
{{ allocation.start_date }}
@@ -98,7 +98,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
98
98
< tr >
99
99
< th scope ="row " class ="text-nowrap "> End Date:</ th >
100
100
< td >
101
- {% if request.user.is_superuser %}
101
+ {% if request.user.is_superuser or request.user.is_staff %}
102
102
{{ form.end_date }}
103
103
{% else %}
104
104
{{ allocation.end_date }}
@@ -119,7 +119,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
119
119
< tr >
120
120
< th scope ="row " class ="text-nowrap "> Description:</ th >
121
121
< td >
122
- {% if request.user.is_superuser %}
122
+ {% if request.user.is_superuser or request.user.is_staff %}
123
123
{{ form.description }}
124
124
{% else %}
125
125
{{ allocation.description|default_if_none:"" }}
@@ -160,7 +160,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
160
160
{% endif %}
161
161
</ table >
162
162
</ div >
163
- {% if request.user.is_superuser %}
163
+ {% if request.user.is_superuser or request.user.is_staff %}
164
164
< div class ="float-right ">
165
165
{% if allocation.status.name == 'New' or allocation.status.name == 'Renewal Requested' %}
166
166
< button type ="submit " name ="action " value ="approve " class ="btn btn-success mr-1 confirm-activate "> Approve</ button >
@@ -173,12 +173,12 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
173
173
</ div >
174
174
</ div >
175
175
176
- {% if attributes or attributes_with_usage or request.user.is_superuser %}
176
+ {% if attributes or attributes_with_usage or request.user.is_superuser or request.user.is_staff %}
177
177
< div class ="card mb-3 ">
178
178
< div class ="card-header ">
179
179
< h3 class ="d-inline "> < i class ="fas fa-info-circle " aria-hidden ="true "> </ i > Allocation Attributes</ h3 >
180
180
< div class ="float-right ">
181
- {% if request.user.is_superuser %}
181
+ {% if request.user.is_superuser or request.user.is_staff %}
182
182
< a class ="btn btn-success " href ="{% url 'allocation-attribute-add' allocation.pk %} " role ="button ">
183
183
< i class ="fas fa-plus " aria-hidden ="true "> </ i > Add Allocation Attribute
184
184
</ a >
0 commit comments