mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Update build page
This commit is contained in:
parent
372958d939
commit
12daf15406
@ -1,31 +1,27 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "two_column.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load status_codes %}
|
{% load status_codes %}
|
||||||
|
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
InvenTree | Build - {{ build }}
|
InvenTree | {% trans "Build" %} - {{ build }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block thumbnail %}
|
||||||
|
<img class="part-thumb"
|
||||||
|
{% if build.part.image %}
|
||||||
|
src="{{ build.part.image.url }}"
|
||||||
|
{% else %}
|
||||||
|
src="{% static 'img/blank_image.png' %}"
|
||||||
|
{% endif %}/>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<div class='row'>
|
{% block page_data %}
|
||||||
<div class='col-sm-6'>
|
<h3>{% trans "Build" %}</h3>
|
||||||
<div class="media">
|
<hr>
|
||||||
<div class="media-left">
|
<h4>{{ build.quantity }} x {{ build.part.full_name }}</h4>
|
||||||
<div class='dropzone' id='part-thumb'>
|
<div class='btn-row'>
|
||||||
<img class="part-thumb"
|
|
||||||
{% if build.part.image %}
|
|
||||||
src="{{ build.part.image.url }}"
|
|
||||||
{% else %}
|
|
||||||
src="{% static 'img/blank_image.png' %}"
|
|
||||||
{% endif %}/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class='media-body'>
|
|
||||||
<h4>{% trans "Build" %}</h4>
|
|
||||||
<div class='btn-row'>
|
|
||||||
<div class='btn-group'>
|
<div class='btn-group'>
|
||||||
<button type='button' class='btn btn-default btn-glyph' id='build-edit' title='Edit Build'>
|
<button type='button' class='btn btn-default btn-glyph' id='build-edit' title='Edit Build'>
|
||||||
<span class='glyphicon glyphicon-edit'/>
|
<span class='glyphicon glyphicon-edit'/>
|
||||||
@ -44,13 +40,13 @@ InvenTree | Build - {{ build }}
|
|||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endblock %}
|
||||||
</div>
|
|
||||||
</div>
|
{% block page_details %}
|
||||||
<div class='col-sm-6'>
|
|
||||||
<h4>{% trans "Build Details" %}</h4>
|
<h4>{% trans "Build Details" %}</h4>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>{% trans "Build Title" %}</td>
|
<td>{% trans "Build Title" %}</td>
|
||||||
@ -85,20 +81,7 @@ InvenTree | Build - {{ build }}
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class='container-fluid'>
|
|
||||||
{% block details %}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
{% block js_load %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user