2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Replace some cog icons

This commit is contained in:
Oliver Walters
2019-06-20 21:28:00 +10:00
parent 5ab3c386bb
commit d5119e1aff
4 changed files with 16 additions and 5 deletions

View File

@ -26,12 +26,12 @@ InvenTree | Company - {{ company.name }}
<p>{{ company.description }}</p>
<div class='btn-group'>
{% if company.is_supplier %}
<button type='button' class='btn btn-default btn-glyph' id='company-order' title='Create purchase order'>
<button type='button' class='btn btn-default btn-glyph' id='company-order-2' title='Create purchase order'>
<span class='glyphicon glyphicon-shopping-cart'/>
</button>
{% endif %}
<button type='button' class='btn btn-default btn-glyph' id='company-edit' title='Edit company information'>
<span class='glyphicon glyphicon-cog'/>
<span class='glyphicon glyphicon-edit'/>
</button>
<button type='button' class='btn btn-default btn-glyph' id='company-delete' title='Delete company'>
<span class='glyphicon glyphicon-trash'/>
@ -98,6 +98,17 @@ InvenTree | Company - {{ company.name }}
});
});
$("#company-order-2").click(function() {
launchModalForm("{% url 'purchase-order-create' %}",
{
data: {
supplier: {{ company.id }},
},
follow: true,
});
});
$('#company-delete').click(function() {
launchModalForm(
"{% url 'company-delete' company.id %}",