anbar permission
This commit is contained in:
1 parent
489fda27d3
commit
8d5665a1dc
4 files changed
+15
No files matched your search
@@ -20,8 +20,10 @@
|
||||
<div class="select is-fullwidth">
|
||||
<select name="actionType" id="actionType" required>
|
||||
<option></option>
|
||||
{% if not user|has_group:"khadamat" %}
|
||||
<option value="vorod">ورود</option>
|
||||
<option value="khoroj">خروج</option>
|
||||
{% endif %}
|
||||
<option value="transfer">انتقال</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -93,8 +93,12 @@
|
||||
|
||||
<td>
|
||||
{% if perms.admin_panel.ViewStore or perms.admin_panel.OnlyAnbar %}
|
||||
|
||||
{% if not user|has_group:"khadamat" %}
|
||||
<span class="Oedit_prd" style="cursor: pointer;"><img style="width: 20px; height: 20px;" src="{% static 'admin_panel/icons/edit.png' %}"></span>
|
||||
<span class="delet_prd" style="cursor: pointer;"><img style="width: 20px; height: 20px;" src="{% static 'admin_panel/icons/delet.png' %}"></span>
|
||||
{% endif %}
|
||||
|
||||
<a href="{% url 'admin_panel:newOperation' s_id prd.id %}">
|
||||
<span><img style="width: 20px; height: 20px;" src="{% static 'admin_panel/icons/add.png' %}"></span>
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user