Renamed label_system templates folder to recommended snake_style style

This commit is contained in:
Jan Böhmer 2023-02-04 23:15:11 +01:00
parent 06f86176b6
commit 12d4c2f4d9
16 changed files with 12 additions and 12 deletions

View file

@ -146,7 +146,7 @@ class LabelController extends AbstractController
} }
} }
return $this->renderForm('LabelSystem/dialog.html.twig', [ return $this->renderForm('label_system/dialog.html.twig', [
'form' => $form, 'form' => $form,
'pdf_data' => $pdf_data, 'pdf_data' => $pdf_data,
'filename' => $filename, 'filename' => $filename,

View file

@ -91,7 +91,7 @@ class ScanController extends AbstractController
} }
} }
return $this->renderForm('LabelSystem/Scanner/dialog.html.twig', [ return $this->renderForm('label_system/scanner/scanner.html.twig', [
'form' => $form, 'form' => $form,
]); ]);
} }

View file

@ -115,7 +115,7 @@ final class LabelHTMLGenerator
++$page; ++$page;
} }
return $this->twig->render('LabelSystem/labels/base_label.html.twig', [ return $this->twig->render('label_system/labels/base_label.html.twig', [
'meta_title' => $this->getPDFTitle($options, $elements[0]), 'meta_title' => $this->getPDFTitle($options, $elements[0]),
'elements' => $twig_elements, 'elements' => $twig_elements,
'options' => $options, 'options' => $options,

View file

@ -1,5 +1,5 @@
{% extends "AdminPages/EntityAdminBase.html.twig" %} {% extends "AdminPages/EntityAdminBase.html.twig" %}
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %} {% import "label_system/dropdown_macro.html.twig" as dropdown %}
{% block card_title %} {% block card_title %}
<i class="fas fa-cube fa-fw"></i> {% trans %}storelocation.labelp{% endtrans %} <i class="fas fa-cube fa-fw"></i> {% trans %}storelocation.labelp{% endtrans %}

View file

@ -7,7 +7,7 @@
<meta name="description" content="Label for {{ meta_title }}"> <meta name="description" content="Label for {{ meta_title }}">
<meta name="keywords" content="Part-DB, Label, Barcode"> <meta name="keywords" content="Part-DB, Label, Barcode">
<style> <style>
{% include("LabelSystem/labels/label_style.css.twig") %} {% include("label_system/labels/label_style.css.twig") %}
{{ options.additionalCss | escape("html") }} {{ options.additionalCss | escape("html") }}
</style> </style>
</head> </head>
@ -15,11 +15,11 @@
{% for element in elements %} {% for element in elements %}
<div class="page"> <div class="page">
{% if options.barcodeType == 'none' %} {% if options.barcodeType == 'none' %}
{% include "LabelSystem/labels/label_page_none.html.twig" %} {% include "label_system/labels/label_page_none.html.twig" %}
{% elseif options.barcodeType in ['qr', 'datamatrix'] %} {% elseif options.barcodeType in ['qr', 'datamatrix'] %}
{% include "LabelSystem/labels/label_page_qr.html.twig" %} {% include "label_system/labels/label_page_qr.html.twig" %}
{% elseif options.barcodeType in ['code39', 'code93', 'code128'] %} {% elseif options.barcodeType in ['code39', 'code93', 'code128'] %}
{% include "LabelSystem/labels/label_page_1d.html.twig" %} {% include "label_system/labels/label_page_1d.html.twig" %}
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}

View file

@ -1,5 +1,5 @@
{% import "helper.twig" as helper %} {% import "helper.twig" as helper %}
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %} {% import "label_system/dropdown_macro.html.twig" as dropdown %}
{% include "parts/info/_withdraw_modal.html.twig" %} {% include "parts/info/_withdraw_modal.html.twig" %}

View file

@ -1,4 +1,4 @@
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %} {% import "label_system/dropdown_macro.html.twig" as dropdown %}
{% if is_granted('edit', part) %} {% if is_granted('edit', part) %}
<a href="{{ entity_url(part, 'edit') }}" class="btn btn-primary mt-3"> <a href="{{ entity_url(part, 'edit') }}" class="btn btn-primary mt-3">

View file

@ -1,5 +1,5 @@
{% import "helper.twig" as helper %} {% import "helper.twig" as helper %}
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %} {% import "label_system/dropdown_macro.html.twig" as dropdown %}
{{ helper.breadcrumb_entity_link(entity) }} {{ helper.breadcrumb_entity_link(entity) }}

View file

@ -1,5 +1,5 @@
{% import "helper.twig" as helper %} {% import "helper.twig" as helper %}
{% import "LabelSystem/dropdown_macro.html.twig" as dropdown %} {% import "label_system/dropdown_macro.html.twig" as dropdown %}
{{ helper.breadcrumb_entity_link(project) }} {{ helper.breadcrumb_entity_link(project) }}