added CSV upload to enable fast creation of similar components #14
|
@ -78,6 +78,11 @@
|
||||
<script type="text/javascript" src="{% static 'js/kenyusho-api-v1.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/autocomplete.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/autocomplete-foreign-key-field.js' %}"></script>
|
||||
<!-- Initialize bootstrap popovers -->
|
||||
<script type="text/javascript">
|
||||
const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
|
||||
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
|
||||
</script>
|
||||
{% block custom_scripts %}
|
||||
{% endblock custom_scripts %}
|
||||
|
||||
|
@ -6,6 +6,22 @@
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h2>Import Component CSV</h2>
|
||||
<button type="button"
|
||||
class="btn"
|
||||
data-bs-toggle="popover"
|
||||
data-bs-title="Import Component CSV"
|
||||
data-bs-html="true"
|
||||
data-bs-content="The shimatta kenkyusho can import components from a CSV file uploaded to the website.<br>
|
||||
All parameters are passed as names (e.g. package, manufacturer etc.).<br><br>
|
||||
Component parameters can be set using a prefix <code>param:</code> followed by the
|
||||
parameter name. The value is then parsed bysed on the parameter type.<br><br>
|
||||
Distributor part numbers can be set similarly by prepending <code>distri:</code>.<br><br>
|
||||
It is also possible to create initial stocks to one storage by passing the
|
||||
storage uuid and/or the path to the storage (as printed in the breadcrumbs) or
|
||||
a combination of a storage uuid and the path from this storage.<br><br>
|
||||
See <a href='{% static 'example/import_csv/import_csv.csv' %}'>example</a> for details.">
|
||||
<i class="bi bi-info-circle"></i>
|
||||
</button>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
|
Loading…
Reference in New Issue
Block a user