2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Buttonize the part category page

This commit is contained in:
Oliver Walters 2019-06-19 18:54:32 +10:00
parent 1fc39d56df
commit d837a1f9a2

View File

@ -13,26 +13,25 @@
{% endif %} {% endif %}
{% else %} {% else %}
<h3>Part Categories</h3> <h3>Part Categories</h3>
<p>All parts</p>
{% endif %} {% endif %}
<p>
<div class='btn-group'>
<button class='btn btn-default btn-glyph' id='cat-create' title='Create new part category'>
<span class='glyphicon glyphicon-plus'/>
</button>
{% if category %}
<button class='btn btn-default btn-glyph' id='cat-edit' title='Edit part category'>
<span class='glyphicon glyphicon-cog'/>
</button>
<button class='btn btn-default btn-glyph' id='cat-delete' title='Delete part category'>
<span class='glyphicon glyphicon-trash'/>
</button>
{% endif %}
</div>
</p>
</div> </div>
<div class='col-sm-6'> <div class='col-sm-6'>
<h3>
<div style='float: right;'>
<button class='btn btn-success' id='cat-create'>New Category</button>
{% if category %}
<div class="dropdown" style="float: right;">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
Options
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id='cat-edit' title='Edit part category'>Edit</a></li>
<li><a href="#" id='cat-delete' title='Delete part category'>Delete</a></li>
</ul>
</div>
{% endif %}
</div>
</h3>
</div> </div>
</div> </div>