Added Asset Create and Edit forms

This commit is contained in:
Matthew Smith
2020-02-05 15:35:07 +00:00
parent 39b22690f1
commit 5265ef835e
7 changed files with 189 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
</div>
<div class="panel-body">
{% if create or edit or duplicate %}
<div class="form-group">
<div class="form-group" id="parent-group">
<label for="selectpicker">Set Parent</label>
{% include 'partials/asset_picker.html' %}
</div>

View File

@@ -23,7 +23,7 @@
</div>
<div class="panel-body">
{% if create or edit or duplicate %}
<div class="form-group">
<div class="form-group" id="purchased-from-group">
<label for="{{ form.purchased_from.id_for_label }}">Supplier</label>
<select id="{{ form.purchased_from.id_for_label }}" name="{{ form.purchased_from.name }}" class="form-control selectpicker" data-live-search="true" data-sourceurl="{% url 'api_secure' model='supplier' %}">
{% if object.purchased_from %}