Layout tweask

This commit is contained in:
Oliver Walters 2021-02-16 16:04:24 +11:00
parent a416c56e5a
commit 81cac0927d

View File

@ -56,23 +56,23 @@ src="{% static 'img/blank_image.png' %}"
<li><a href='#' id='print-build-report'><span class='fas fa-file-pdf'></span> {% trans "Print Build Order" %}</a></li> <li><a href='#' id='print-build-report'><span class='fas fa-file-pdf'></span> {% trans "Print Build Order" %}</a></li>
</ul> </ul>
</div> </div>
<!-- Build actions -->
{% if roles.build.change %} {% if roles.build.change %}
<button type='button' class='btn btn-default' id='build-edit' title='{% trans "Edit Build" %}'> <div class='btn-group'>
<span class='fas fa-edit icon-green'/> <button id='build-options' title='{% trans "Build actions" %}' class='btn btn-default dropdown-toggle' type='button' data-toggle='dropdown'>
</button> <span class='fas fa-tools'></span> <span class='caret'></span>
{% if build.is_active %} </button>
<button type='button' class='btn btn-default' id='build-complete' title='{% trans "Complete Build" %}'> <ul class='dropdown-menu' role='menu'>
<span class='fas fa-tools'/> <li><a href='#' id='build-edit'><span class='fas fa-edit icon-green'></span> {% trans "Edit Build" %}</a></li>
</button> {% if build.is_active %}
<button type='button' class='btn btn-default btn-glyph' id='build-cancel' title='{% trans "Cancel Build" %}'> <li><a href='#' id='build-complete'><span class='fas fa-tools'></span> {% trans "Complete Build" %}</a></li>
<span class='fas fa-times-circle icon-red'/> <li><a href='#' id='build-cancel'><span class='fas fa-times-circle icon-red'></span> {% trans "Cancel Build" %}</a></li>
</button> {% endif %}
{% endif %} {% if build.status == BuildStatus.CANCELLED and roles.build.delete %}
{% endif %} <li><a href='#' id='build-delete'><span class='fas fa-trash-alt'></span> {% trans "Delete Build"% }</a>
{% if build.status == BuildStatus.CANCELLED and roles.build.delete %} {% endif %}
<button type='button' class='btn btn-default btn-glyph' id='build-delete' title='{% trans "Delete Build" %}'> </ul>
<span class='fas fa-trash-alt icon-red'/> </div>
</button>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}