mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-05 04:39:37 +00:00
Add custom KiCad autocomplete list settings (#1342)
* Add admin editor for KiCad autocomplete lists * Add custom KiCad autocomplete list settings * Ignore the footprints_custom.txt and symbols_custom.txt in git and create them on the fly if needed Otherwise it breaks the update mechanism * Added comments * Include kicad custom files in config backup command --------- Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
This commit is contained in:
parent
35dcb298e7
commit
58a34e3628
14 changed files with 665 additions and 3 deletions
28
templates/settings/kicad_list_editor.html.twig
Normal file
28
templates/settings/kicad_list_editor.html.twig
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{% extends "main_card.html.twig" %}
|
||||
|
||||
{% block title %}{% trans %}settings.misc.kicad_eda.editor.title{% endtrans %}{% endblock %}
|
||||
|
||||
{% block card_title %}<i class="fa-solid fa-pen-to-square fa-fw"></i> {% trans %}settings.misc.kicad_eda.editor.title{% endtrans %}{% endblock %}
|
||||
|
||||
{% block card_content %}
|
||||
<p class="text-muted">
|
||||
{% trans %}settings.misc.kicad_eda.editor.description{% endtrans %}
|
||||
</p>
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.useCustomList) }}
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-12 col-xl-6">
|
||||
{{ form_row(form.customFootprints) }}
|
||||
{{ form_row(form.customSymbols) }}
|
||||
</div>
|
||||
<div class="col-12 col-xl-6">
|
||||
{{ form_row(form.defaultFootprints) }}
|
||||
{{ form_row(form.defaultSymbols) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ form_row(form.save) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue