made the readme and example for the CSV import accessible from the form directly
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
name;manufacturer;component_type;pref_distri;description;datasheet_link;package;image_url;storage_uuid;substorage_path;amount;lot;watermark;param:Resistance;param:Temperature coefficient;param:Tolerance;distri:Mouser
|
||||
1K41;Phycomp;Resistor;;KVG - expired;;R0603;https://t3.ftcdn.net/jpg/02/95/44/22/360_F_295442295_OXsXOmLmqBUfZreTnGo9PREuAPSLQhff.jpg;a4909bb4-4d69-4e58-8fbd-fba4fa62d9fb;bew;1111;4000;0;1330;100;1;gggg
|
|
14
shimatta_kenkyusho/static/example/import_csv/readme.md
Normal file
14
shimatta_kenkyusho/static/example/import_csv/readme.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# The shimatta kenkyusho can import components from a CSV file uploaded to the website
|
||||
|
||||
All parameters are passed as names (e.g. package, manufacturer etc.).
|
||||
|
||||
Component parameters can be set using a prefix ``param:`` followed by the
|
||||
parameter name. The value is then parsed bysed on the parameter type.
|
||||
|
||||
Distributor part numbers can be set similarly by prepending ``distri:``.
|
||||
|
||||
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.
|
||||
|
||||
See example for details.
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user