mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Refactor build page
This commit is contained in:
		| @@ -564,8 +564,6 @@ | ||||
|     margin: 2px; | ||||
|     padding: 3px; | ||||
|     object-fit: contain; | ||||
|     border: 1px solid #ddd; | ||||
|     border-radius: 3px; | ||||
| } | ||||
|  | ||||
| .part-thumb-container:hover .part-thumb-overlay { | ||||
| @@ -974,6 +972,10 @@ input[type="submit"] { | ||||
|     display: none; | ||||
| } | ||||
|  | ||||
| .panel-inventree .card { | ||||
|     padding: 10px; | ||||
| } | ||||
|  | ||||
| .float-right { | ||||
|     float: right; | ||||
| } | ||||
|   | ||||
| @@ -14,18 +14,9 @@ | ||||
| <li class="breadcrumb-item active" aria-current="page"><a href='{% url "build-detail" build.id %}'>{{ build }}</a></li> | ||||
| {% endblock %} | ||||
|  | ||||
| {% block heading %} | ||||
| <h4> | ||||
|     {% trans "Build Order" %} | ||||
|     {% if user.is_staff and roles.build.change %} | ||||
|     <a  href="{% url 'admin:build_build_change' build.pk %}"><span title="{% trans 'Admin view' %}" class='fas fa-user-shield'></span></a> | ||||
|     {% endif %} | ||||
| </h4> | ||||
| {% endblock %} | ||||
|  | ||||
| {% block details_left %} | ||||
|  | ||||
| <div class='media-left'> | ||||
| <div class='row g-0'> | ||||
|     <div class='col-md-4'> | ||||
|         <img class="part-thumb" | ||||
|         {% if build.part.image %} | ||||
|         src="{{ build.part.image.url }}" | ||||
| @@ -33,8 +24,13 @@ | ||||
|         src="{% static 'img/blank_image.png' %}" | ||||
|         {% endif %}/>             | ||||
|     </div> | ||||
|  | ||||
| <div class='media-body'> | ||||
|     <div class='col-md-8'> | ||||
|         <h4> | ||||
|             {% trans "Build Order" %} {{ build }} | ||||
|             {% if user.is_staff and roles.build.change %} | ||||
|             <a  href="{% url 'admin:build_build_change' build.pk %}"><span title="{% trans 'Admin view' %}" class='fas fa-user-shield'></span></a> | ||||
|             {% endif %} | ||||
|         </h4> | ||||
|         <div class='btn-group' role='group'> | ||||
|             <!-- Printing options --> | ||||
|             <div class='btn-group'> | ||||
| @@ -69,7 +65,7 @@ | ||||
|             {% endif %} | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
| </div> | ||||
|  | ||||
| {% endblock %} | ||||
|  | ||||
|   | ||||
| @@ -5,29 +5,27 @@ | ||||
|  | ||||
| {% block content %} | ||||
|  | ||||
| <div class='panel panel-default panel-inventree'> | ||||
|     <div class='panel-heading'> | ||||
|         {% block heading %} | ||||
|         block heading | ||||
|         {% endblock %} | ||||
|     </div> | ||||
| <div class='panel panel-inventree'> | ||||
|     <div class='panel-content'> | ||||
|         {% block details %} | ||||
|         <div class='row'> | ||||
|             <div class='col-sm-6' id='detail-panel-left'> | ||||
|                 <div class='card'> | ||||
|                     {% block details_left %} | ||||
|                     block details_left | ||||
|                     {% endblock %} | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class='col-sm-6' id='detail-panel-right'> | ||||
|                 <div class='card'> | ||||
|                     {% block details_right %} | ||||
|                     block details_right | ||||
|                     {% endblock %} | ||||
|                 </div> | ||||
|             </div> | ||||
|         {% endblock %} | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
|  | ||||
| {% block page_content %} | ||||
| block page_content | ||||
|   | ||||
		Reference in New Issue
	
	Block a user