From 21f0727509f84626e7c4755c378ad23157b4abee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 3 Jun 2020 22:09:13 +0200 Subject: [PATCH] [ReelCalculator] Added the possibility to load common presets. --- templates/Tools/ReelCalculator/main.html.twig | 124 ++++++++++++------ translations/messages.en.xlf | 12 ++ 2 files changed, 93 insertions(+), 43 deletions(-) diff --git a/templates/Tools/ReelCalculator/main.html.twig b/templates/Tools/ReelCalculator/main.html.twig index de6d5cc7..e830cdc2 100644 --- a/templates/Tools/ReelCalculator/main.html.twig +++ b/templates/Tools/ReelCalculator/main.html.twig @@ -1,5 +1,7 @@ {% extends "main_card.html.twig" %} +{# Reel and tape values according to this PDF: https://www.vishay.com/docs/20014/smdpack.pdf #} + {% block title %}{% trans %}tools.reel_calc.title{% endtrans %}{% endblock %} {% block card_title %} @@ -7,6 +9,7 @@ {% endblock %} {% block card_content %} +

{% trans %}tools.reel_calc.explanation{% endtrans %}

Sizes explanation @@ -15,7 +18,15 @@
- +
+ + +
+
mm
@@ -33,7 +44,20 @@
- +
+ + +
+
mm
@@ -42,7 +66,15 @@
- +
+ + +
+ +
mm
@@ -79,48 +111,54 @@ {% endblock %} {% block scripts %} - + {% endblock %} \ No newline at end of file diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 184f8379..15b0cfa0 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -9291,5 +9291,17 @@ Element 3 Please fill in all values! + + + tools.reel_calc.load_preset + Load preset + + + + + tools.reel_calc.explanation + This calculator gives you an estimation, how many parts are remaining on an SMD reel. Measure the noted the dimensions on the reel (or use some of the presets) and click "Update" to get an result. + +