Visual style improvements

This commit is contained in:
Oliver Walters 2019-05-06 08:35:02 +10:00
parent 7e81d9021f
commit e58bed41b0
9 changed files with 74 additions and 32 deletions

View File

@ -5,12 +5,12 @@
<div class='row'> <div class='row'>
<div class='col-sm-6'> <div class='col-sm-6'>
<h4>Part Builds</h4> <h3>Part Builds</h3>
</div> </div>
<div class='col-sm-6'> <div class='col-sm-6'>
<div class='container' id='active-build-toolbar' style='float: right;'> <div class='container' id='active-build-toolbar' style='float: right;'>
<div class='btn-group' style='float: right;'> <div class='btn-group' style='float: right;'>
<button class="btn btn-success" id='new-build'>Start New Build</button> <button type='button' class="btn btn-success" id='new-build'>Start New Build</button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -4,11 +4,21 @@
{% block content %} {% block content %}
<h3>Companies</h3> <div class='row'>
<div id='button-toolbar'> <div class='col-sm-6'>
<button style='float: right;' class="btn btn-success" id='new-company'>New Company</button> <h3>Company List</h3>
</div>
<div class='col-sm-6'>
<div class='container' id='active-build-toolbar' style='float: right;'>
<div class='btn-group' style='float: right;'>
<button type='button' class="btn btn-success" id='new-company'>New Company</button>
</div>
</div>
</div>
</div> </div>
<hr>
<table class='table table-striped' id='company-table' data-toolbar='#button-toolbar'> <table class='table table-striped' id='company-table' data-toolbar='#button-toolbar'>
</table> </table>

View File

@ -5,12 +5,19 @@
{% include 'part/tabs.html' with tab='attachments' %} {% include 'part/tabs.html' with tab='attachments' %}
<h4>Attachments</h4> <div class='row'>
<div class='col-sm-6'>
<div id='toolbar' class='btn-group'> <h4>Part Attachments</h4>
</div>
<div class='col-sm-6'>
<div class="btn-group" style="float: right;">
<button type='button' class='btn btn-success' id='new-attachment'>Add Attachment</button> <button type='button' class='btn btn-success' id='new-attachment'>Add Attachment</button>
</div>
</div>
</div> </div>
<hr>
<table class='table table-striped table-condensed' data-toolbar='#toolbar' id='attachment-table'> <table class='table table-striped table-condensed' data-toolbar='#toolbar' id='attachment-table'>
<tr> <tr>
<th>File</th> <th>File</th>

View File

@ -6,11 +6,10 @@
<div class='row'> <div class='row'>
<div class='col-sm-6'> <div class='col-sm-6'>
<h3>Part Details</h3> <h4>Part Details</h4>
</div> </div>
<div class='col-sm-6'> <div class='col-sm-6'>
<h3> <div class="btn-group" style="float: right;">
<div class="dropdown" style="float: right;">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options
<span class="caret"></span></button> <span class="caret"></span></button>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@ -25,7 +24,6 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</h3>
</div> </div>
</div> </div>

View File

@ -4,7 +4,14 @@
{% include 'part/tabs.html' with tab='stock' %} {% include 'part/tabs.html' with tab='stock' %}
<h3>Part Stock</h3> <div class='row'>
<div class='col-sm-6'>
<h4>Part Stock</h4>
</div>
<div class='col-sm-6'>
</div>
</div>
<hr>
<div id='button-toolbar'> <div id='button-toolbar'>
{% if part.active %} {% if part.active %}

View File

@ -4,7 +4,15 @@
{% include 'part/tabs.html' with tab='suppliers' %} {% include 'part/tabs.html' with tab='suppliers' %}
<h3>Part Suppliers</h3> <div class='row'>
<div class='col-sm-6'>
<h4>Part Suppliers</h4>
</div>
<div class='col-sm-6'>
</div>
</div>
<hr>
<div id='button-toolbar'> <div id='button-toolbar'>
<button class="btn btn-success" id='supplier-create'>New Supplier Part</button> <button class="btn btn-success" id='supplier-create'>New Supplier Part</button>

View File

@ -38,3 +38,5 @@
<a href="{% url 'part-attachments' part.id %}">Attachments {% if part.attachments.all|length > 0 %}<span class="badge">{{ part.attachments.all|length }}</span>{% endif %}</a> <a href="{% url 'part-attachments' part.id %}">Attachments {% if part.attachments.all|length > 0 %}<span class="badge">{{ part.attachments.all|length }}</span>{% endif %}</a>
</li> </li>
</ul> </ul>
<br>

View File

@ -4,7 +4,17 @@
{% include 'part/tabs.html' with tab='used' %} {% include 'part/tabs.html' with tab='used' %}
<h3>Used In</h3> <div class='row'>
<div class='col-sm-6'>
<h4>Used to Build</h4>
</div>
<div class='col-sm-6'>
<div class="btn-group" style="float: right;">
</div>
</div>
</div>
<hr>
<table class="table table-striped table-condensed" id='used-table'> <table class="table table-striped table-condensed" id='used-table'>
</table> </table>

View File

@ -2,7 +2,7 @@
{% block content %} {% block content %}
<h3>InvenTree</h3> <h3>InvenTree</h3>
<hr>
{% include "InvenTree/starred_parts.html" with collapse_id="starred" %} {% include "InvenTree/starred_parts.html" with collapse_id="starred" %}
{% if to_order %} {% if to_order %}