mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-18 08:38:33 +02:00
Added basic admin page for Label profiles.
This commit is contained in:
parent
b23dec0262
commit
a8a92b9c5d
20 changed files with 1688 additions and 857 deletions
15
templates/AdminPages/LabelProfileAdmin.html.twig
Normal file
15
templates/AdminPages/LabelProfileAdmin.html.twig
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "AdminPages/EntityAdminBase.html.twig" %}
|
||||
|
||||
{% block card_title %}
|
||||
<i class="fas fa-qr fa-fw"></i> {% trans %}label_profile.caption{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block additional_pills %}
|
||||
<li class="nav-item"><a data-toggle="tab" class="nav-link link-anchor" href="#tab_options">{% trans %}admin.options{% endtrans %}</a></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block additional_panes %}
|
||||
<div class="tab-pane" id="tab_options">
|
||||
{{ form_widget(form.options) }}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -46,6 +46,24 @@
|
|||
{{ form_errors(form.value) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block label_options_widget %}
|
||||
<div class="form-group row">
|
||||
{{ form_label(form.width) }}
|
||||
<div class="input-group col-9">
|
||||
{{ form_widget(form.width) }}
|
||||
<div class="input-group-append input-group-prepend">
|
||||
<span class="input-group-text">x</span>
|
||||
</div>
|
||||
{{ form_widget(form.height) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">mm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_row(form.barcode_type) }}
|
||||
{{ form_row(form.lines) }}
|
||||
{% endblock %}
|
||||
|
||||
{#######################################################################################
|
||||
#
|
||||
# Definitions for Tristate Checkbox Type (mostly based on bootstrap checkbox type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue