mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Renamed label_system templates folder to recommended snake_style style
This commit is contained in:
parent
06f86176b6
commit
12d4c2f4d9
16 changed files with 12 additions and 12 deletions
|
@ -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,
|
||||
'pdf_data' => $pdf_data,
|
||||
'filename' => $filename,
|
||||
|
|
|
@ -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,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ final class LabelHTMLGenerator
|
|||
++$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]),
|
||||
'elements' => $twig_elements,
|
||||
'options' => $options,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% 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 %}
|
||||
<i class="fas fa-cube fa-fw"></i> {% trans %}storelocation.labelp{% endtrans %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="description" content="Label for {{ meta_title }}">
|
||||
<meta name="keywords" content="Part-DB, Label, Barcode">
|
||||
<style>
|
||||
{% include("LabelSystem/labels/label_style.css.twig") %}
|
||||
{% include("label_system/labels/label_style.css.twig") %}
|
||||
{{ options.additionalCss | escape("html") }}
|
||||
</style>
|
||||
</head>
|
||||
|
@ -15,11 +15,11 @@
|
|||
{% for element in elements %}
|
||||
<div class="page">
|
||||
{% 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'] %}
|
||||
{% include "LabelSystem/labels/label_page_qr.html.twig" %}
|
||||
{% include "label_system/labels/label_page_qr.html.twig" %}
|
||||
{% 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 %}
|
||||
</div>
|
||||
{% endfor %}
|
|
@ -1,5 +1,5 @@
|
|||
{% 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" %}
|
||||
|
||||
|
|
|
@ -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) %}
|
||||
<a href="{{ entity_url(part, 'edit') }}" class="btn btn-primary mt-3">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% 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) }}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% 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) }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue