mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Company index: swapped 'title' for 'pagetype' for adding company button
This commit is contained in:
parent
46b889c572
commit
9131edc43d
@ -12,7 +12,7 @@ InvenTree | {% trans "Supplier List" %}
|
|||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{% if title == 'Manufacturers' and roles.purchase_order.add or title == 'Suppliers' and roles.purchase_order.add or title == 'Customers' and roles.sales_order.add %}
|
{% if pagetype == 'manufacturers' and roles.purchase_order.add or pagetype == 'suppliers' and roles.purchase_order.add or pagetype == 'customers' and roles.sales_order.add %}
|
||||||
<div id='button-toolbar'>
|
<div id='button-toolbar'>
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
<button type='button' class="btn btn-success" id='new-company'>{{ button_text }}</button>
|
<button type='button' class="btn btn-success" id='new-company'>{{ button_text }}</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user