mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Refactor build order display
This commit is contained in:
		| @@ -12,7 +12,7 @@ | |||||||
| {% block breadcrumbs %} | {% block breadcrumbs %} | ||||||
| <li class='breadcrumb-item'><a href='{% url "build-index" %}'>{% trans "Build Orders" %}</a></li> | <li class='breadcrumb-item'><a href='{% url "build-index" %}'>{% trans "Build Orders" %}</a></li> | ||||||
| <li class="breadcrumb-item active" aria-current="page"><a href='{% url "build-detail" build.id %}'>{{ build }}</a></li> | <li class="breadcrumb-item active" aria-current="page"><a href='{% url "build-detail" build.id %}'>{{ build }}</a></li> | ||||||
| {% endblock %} | {% endblock breadcrumbs %} | ||||||
|  |  | ||||||
| {% block thumbnail %} | {% block thumbnail %} | ||||||
| <img class="part-thumb" | <img class="part-thumb" | ||||||
| @@ -21,7 +21,7 @@ src="{{ build.part.image.url }}" | |||||||
| {% else %} | {% else %} | ||||||
| src="{% static 'img/blank_image.png' %}" | src="{% static 'img/blank_image.png' %}" | ||||||
| {% endif %}/>             | {% endif %}/>             | ||||||
| {% endblock %} | {% endblock thumbnail %} | ||||||
|  |  | ||||||
| {% block heading %} | {% block heading %} | ||||||
| {% trans "Build Order" %} {{ build }} | {% trans "Build Order" %} {{ build }} | ||||||
| @@ -66,11 +66,23 @@ src="{% static 'img/blank_image.png' %}" | |||||||
| </button> | </button> | ||||||
| {% endif %} | {% endif %} | ||||||
| {% endif %} | {% endif %} | ||||||
| {% endblock %} | {% endblock actions %} | ||||||
|  |  | ||||||
| {% block details %} | {% block details %} | ||||||
|  |  | ||||||
| <p>{{ build.title }}</p> | <table class='table table-striped table-condensed'> | ||||||
|  |     <col width='25'> | ||||||
|  |     <tr> | ||||||
|  |         <td><span class='fas fa-shapes'></span></td> | ||||||
|  |         <td>{% trans "Part" %}</td> | ||||||
|  |         <td><a href="{% url 'part-detail' build.part.id %}?display=build-orders">{{ build.part.full_name }}</a></td> | ||||||
|  |     </tr> | ||||||
|  |     <tr> | ||||||
|  |         <td><span class='fas fa-info-circle'></span></td> | ||||||
|  |         <td>{% trans "Build Description" %}</td> | ||||||
|  |         <td>{{ build.title }}</td> | ||||||
|  |     </tr> | ||||||
|  | </table> | ||||||
|  |  | ||||||
| <div class='info-messages'> | <div class='info-messages'> | ||||||
|     {% if build.sales_order %} |     {% if build.sales_order %} | ||||||
| @@ -114,11 +126,7 @@ src="{% static 'img/blank_image.png' %}" | |||||||
|  |  | ||||||
| {% block details_right %} | {% block details_right %} | ||||||
| <table class='table table-striped table-condensed'> | <table class='table table-striped table-condensed'> | ||||||
|     <tr> |     <col width='25'> | ||||||
|         <td><span class='fas fa-shapes'></span></td> |  | ||||||
|         <td>{% trans "Part" %}</td> |  | ||||||
|         <td><a href="{% url 'part-detail' build.part.id %}?display=build-orders">{{ build.part.full_name }}</a></td> |  | ||||||
|     </tr> |  | ||||||
|     <tr> |     <tr> | ||||||
|         <td></td> |         <td></td> | ||||||
|         <td>{% trans "Quantity" %}</td> |         <td>{% trans "Quantity" %}</td> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user