mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-08 00:09:37 +00:00
* Initial plan * Make form column layout configurable with global Twig variables Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Rename form column Twig globals to shorter names: label_col, input_col, offset_col Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Fixed remaining places where offsets where used * Fixed margin of delete button on admin forms * Rename Twig globals: col_label, col_input, offset_label Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> * Added documentation to our twig class variables --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
31 lines
1.2 KiB
Twig
31 lines
1.2 KiB
Twig
{% extends "main_card.html.twig" %}
|
|
{% macro genId(widget) %}{{ widget.vars.full_name }}{% endmacro %}
|
|
|
|
{% form_theme form "form/settings_form.html.twig" %}
|
|
|
|
{% block title %}{% trans %}info_providers.settings.title{% endtrans %}: {{ info_provider_info.name }}{% endblock %}
|
|
|
|
{% block card_title %}<i class="fa-solid fa-gear fa-fw"></i> {% trans %}info_providers.settings.title{% endtrans %}: <b>{{ info_provider_info.name }}</b>{% endblock %}
|
|
|
|
{% block card_content %}
|
|
<div class="{{ offset_label }}">
|
|
<h3>
|
|
{% if info_provider_info.url is defined %}
|
|
<a href="{{ info_provider_info.url }}" class="link-external" target="_blank" rel="nofollow">{{ info_provider_info.name }}</a>
|
|
{% else %}
|
|
{{ info_provider_info.name }}
|
|
{% endif %}
|
|
</h3>
|
|
{% if info_provider_info.description %}
|
|
<p class="text-muted">{{ info_provider_info.description }}</p>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{{ form_start(form) }}
|
|
<div class="row">
|
|
<div class="{{ offset_label }} col mb-3 ps-2">
|
|
<b>{{ form_help(form) }}</b>
|
|
</div>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
{% endblock %}
|