mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix buttons in attachment table
This commit is contained in:
parent
d837a1f9a2
commit
6e1b7bf3f0
@ -31,8 +31,12 @@
|
|||||||
<td>{{ attachment.comment }}</td>
|
<td>{{ attachment.comment }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div class='btn-group' style='float: right;'>
|
<div class='btn-group' style='float: right;'>
|
||||||
<button type='button' class='btn btn-primary attachment-edit-button' url="{% url 'part-attachment-edit' attachment.id %}" data-toggle='tooltip' title='Edit attachment ({{ attachment.basename }})'><span class='glyphicon glyphicon-small glyphicon-edit'></span></button>
|
<button type='button' class='btn btn-default btn-glyph' url="{% url 'part-attachment-edit' attachment.id %}" data-toggle='tooltip' title='Edit attachment ({{ attachment.basename }})'>
|
||||||
<button type='button' class='btn btn-danger attachment-delete-button' url="{% url 'part-attachment-delete' attachment.id %}" data-toggle='tooltip' title='Delete attachment ({{ attachment.basename }})'><span class='glyphicon glyphicon-small glyphicon-trash'></span></button>
|
<span class='glyphicon glyphicon-edit'/>
|
||||||
|
</button>
|
||||||
|
<button type='button' class='btn btn-default btn-glyph' url="{% url 'part-attachment-delete' attachment.id %}" data-toggle='tooltip' title='Delete attachment ({{ attachment.basename }})'>
|
||||||
|
<span class='glyphicon glyphicon-trash'/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
</h4>
|
</h4>
|
||||||
<p><i>{{ part.description }}</i></p>
|
<p><i>{{ part.description }}</i></p>
|
||||||
<p>
|
<p>
|
||||||
|
<div class='btn-row'>
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
<button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'>
|
<button type='button' class='btn btn-default btn-glyph' id='toggle-starred' title='Star this part'>
|
||||||
<span id='part-star-icon' class='starred-part glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/>
|
<span id='part-star-icon' class='starred-part glyphicon {% if starred %}glyphicon-star{% else %}glyphicon-star-empty{% endif %}'/>
|
||||||
@ -50,6 +51,11 @@
|
|||||||
<button type='button' class='btn btn-default btn-glyph' id='price-button' title='Show pricing information'>
|
<button type='button' class='btn btn-default btn-glyph' id='price-button' title='Show pricing information'>
|
||||||
<span id='part-price-icon' class='part-price glyphicon glyphicon-usd'/>
|
<span id='part-price-icon' class='part-price glyphicon glyphicon-usd'/>
|
||||||
</button>
|
</button>
|
||||||
|
{% if not part.virtual %}
|
||||||
|
<button type='button' class='btn btn-default btn-glyph' id='part-count' title='Count part stock'>
|
||||||
|
<span class='glyphicon glyphicon-ok-circle'/>
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% if part.purchaseable %}
|
{% if part.purchaseable %}
|
||||||
<button type='button' class='btn btn-default btn-glyph' id='part-order' title='Order part'>
|
<button type='button' class='btn btn-default btn-glyph' id='part-order' title='Order part'>
|
||||||
<span id='part-order-icon' class='part-order glyphicon glyphicon-shopping-cart'/>
|
<span id='part-order-icon' class='part-order glyphicon glyphicon-shopping-cart'/>
|
||||||
@ -61,7 +67,7 @@
|
|||||||
<span id='part-duplicate-icon' class='part-duplicate glyphicon glyphicon-duplicate'/>
|
<span id='part-duplicate-icon' class='part-duplicate glyphicon glyphicon-duplicate'/>
|
||||||
</button>
|
</button>
|
||||||
<button type='button' class='btn btn-default btn-glyph' id='part-edit' title='Edit part'>
|
<button type='button' class='btn btn-default btn-glyph' id='part-edit' title='Edit part'>
|
||||||
<span id='part-edit-icon' class='glyphicon glyphicon-cog part-cog'/>
|
<span id='part-edit-icon' class='glyphicon glyphicon-edit'/>
|
||||||
</button>
|
</button>
|
||||||
{% if not part.active %}
|
{% if not part.active %}
|
||||||
<button type='button' class='btn btn-default btn-glyph' id='part-delete' title='Delete part'>
|
<button type='button' class='btn btn-default btn-glyph' id='part-delete' title='Delete part'>
|
||||||
@ -69,6 +75,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<table class='table table-condensed'>
|
<table class='table table-condensed'>
|
||||||
{% if part.IPN %}
|
{% if part.IPN %}
|
||||||
@ -171,6 +178,16 @@
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#part-count").click(function() {
|
||||||
|
launchModalForm("/stock/adjust/", {
|
||||||
|
data: {
|
||||||
|
action: "count",
|
||||||
|
part: {{ part.id }},
|
||||||
|
reload: true,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$("#price-button").click(function() {
|
$("#price-button").click(function() {
|
||||||
launchModalForm(
|
launchModalForm(
|
||||||
"{% url 'part-pricing' part.id %}",
|
"{% url 'part-pricing' part.id %}",
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
color: #5C5;
|
color: #5C5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.glyphicon-ok-circle {
|
||||||
|
color: #55c;
|
||||||
|
}
|
||||||
|
|
||||||
.glyphicon-remove {
|
.glyphicon-remove {
|
||||||
color: #C55;
|
color: #C55;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user