diff --git a/public/img/smd_reel/smd_reel.svg b/public/img/smd_reel/smd_reel.svg new file mode 100644 index 00000000..97fccf99 --- /dev/null +++ b/public/img/smd_reel/smd_reel.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + d0 + + + a + + + b + + + d1 + + + + + + + + + + + + + + + diff --git a/src/Controller/ToolsController.php b/src/Controller/ToolsController.php new file mode 100644 index 00000000..427928d1 --- /dev/null +++ b/src/Controller/ToolsController.php @@ -0,0 +1,26 @@ +render("Tools/ReelCalculator/main.html.twig"); + } +} \ No newline at end of file diff --git a/templates/Tools/ReelCalculator/main.html.twig b/templates/Tools/ReelCalculator/main.html.twig new file mode 100644 index 00000000..de6d5cc7 --- /dev/null +++ b/templates/Tools/ReelCalculator/main.html.twig @@ -0,0 +1,126 @@ +{% extends "main_card.html.twig" %} + +{% block title %}{% trans %}tools.reel_calc.title{% endtrans %}{% endblock %} + +{% block card_title %} + {% trans %}tools.reel_calc.title{% endtrans %} +{% endblock %} + +{% block card_content %} +
+
+ Sizes explanation +
+
+
+ +
+ +
+ mm +
+
+
+
+ +
+ +
+ mm +
+
+
+
+ +
+ +
+ mm +
+
+
+
+ +
+ +
+ mm +
+
+
+
+
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} \ No newline at end of file diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index c51aa3a5..184f8379 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -9225,5 +9225,71 @@ Element 3 File extension not allowed for this attachment type. + + + tools.reel_calc.title + SMD Reel calculator + + + + + tools.reel_calc.inner_dia + Inner diameter + + + + + tools.reel_calc.outer_dia + Outer diameter + + + + + tools.reel_calc.tape_thick + Tape thickness + + + + + tools.reel_calc.part_distance + Part distance + + + + + tools.reel_calc.update + Update + + + + + tools.reel_calc.parts_per_meter + Parts per meter + + + + + tools.reel_calc.result_length + Tape length + + + + + tools.reel_calc.result_amount + Approx. parts count + + + + + tools.reel_calc.outer_greater_inner_error + Error: Outer diameter must be greater than inner diameter! + + + + + tools.reel_calc.missing_values.error + Please fill in all values! + +