Fixed remaining places where offsets where used

This commit is contained in:
Jan Böhmer 2026-03-07 15:54:56 +01:00
parent b508d57094
commit 3aa7480fe4
8 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
<div class="row mb-2"> <div class="row mb-2">
<div class="offset-3 col"> <div class="{{ offset_col }} {{ input_col }}">
<a class="btn btn-info {% if not is_granted('create', entity) %}disabled{% endif %}" href="{{ entity_url(entity, 'clone') }}">{% trans %}entity.duplicate{% endtrans %}</a> <a class="btn btn-info {% if not is_granted('create', entity) %}disabled{% endif %}" href="{{ entity_url(entity, 'clone') }}">{% trans %}entity.duplicate{% endtrans %}</a>
</div> </div>
</div> </div>

View file

@ -10,10 +10,10 @@
{{ form_row(form.iso_code) }} {{ form_row(form.iso_code) }}
{% if entity.isoCode %} {% if entity.isoCode %}
<div class="mt-0 mb-3"> <div class="mt-0 mb-3">
<span class="form-text text-muted offset-3 col-9"> <span class="form-text text-muted {{ offset_col }} {{ input_col }}">
<b>{% trans %}currency.iso_code.caption{% endtrans %}:</b> {{ entity.isoCode }} <b>{% trans %}currency.iso_code.caption{% endtrans %}:</b> {{ entity.isoCode }}
</span> </span>
<span class="form-text text-muted offset-3 col-9"> <span class="form-text text-muted {{ offset_col }} {{ input_col }}">
<b>{% trans %}currency.symbol.caption{% endtrans %}:</b> {{ entity.isoCode | currency_symbol }} <b>{% trans %}currency.symbol.caption{% endtrans %}:</b> {{ entity.isoCode | currency_symbol }}
</span> </span>
</div> </div>
@ -21,7 +21,7 @@
{{ form_row(form.exchange_rate) }} {{ form_row(form.exchange_rate) }}
{% if entity.inverseExchangeRate %} {% if entity.inverseExchangeRate %}
<p class="form-text text-muted offset-3 col-9"> <p class="form-text text-muted {{ offset_col }} {{ input_col }}">
{{ '1'|format_currency(vars.base_currency()) }} = {{ entity.inverseExchangeRate.tofloat | format_currency(entity.isoCode, {fraction_digit: 5}) }}<br> {{ '1'|format_currency(vars.base_currency()) }} = {{ entity.inverseExchangeRate.tofloat | format_currency(entity.isoCode, {fraction_digit: 5}) }}<br>
{{ '1'|format_currency(entity.isoCode) }} = {{ entity.exchangeRate.tofloat | format_currency(vars.base_currency(), {fraction_digit: 5}) }} {{ '1'|format_currency(entity.isoCode) }} = {{ entity.exchangeRate.tofloat | format_currency(vars.base_currency(), {fraction_digit: 5}) }}
</p> </p>

View file

@ -50,7 +50,7 @@
<div class="tab-pane" id="password"> <div class="tab-pane" id="password">
{% if entity.samlUser %} {% if entity.samlUser %}
<div class="offset-3 mb-3 col-9"> <div class="mb-3 {{ offset_col }} {{ input_col }}">
<span class="badge badge-warning bg-warning"><i class="fa-solid fa-house-user"></i> {% trans %}user.saml_user{% endtrans %}</span> <span class="badge badge-warning bg-warning"><i class="fa-solid fa-house-user"></i> {% trans %}user.saml_user{% endtrans %}</span>
</div> </div>
{% endif %} {% endif %}
@ -60,7 +60,7 @@
{{ form_row(form.disabled) }} {{ form_row(form.disabled) }}
{% if entity.id is not null %} {% if entity.id is not null %}
<div class="offset-3 mb-3"> <div class="{{ offset_col }} {{ input_col }} mb-3">
<hr> <hr>
<h6>{% trans %}user.edit.tfa.caption{% endtrans %}</h6> <h6>{% trans %}user.edit.tfa.caption{% endtrans %}</h6>

View file

@ -12,7 +12,7 @@
{% endblock %} {% endblock %}
{% block card_content %} {% block card_content %}
<p class="text-muted offset-3">{% trans %}info_providers.from_url.help{% endtrans %}</p> <p class="text-muted {{ offset_col }}">{% trans %}info_providers.from_url.help{% endtrans %}</p>
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.url) }} {{ form_row(form.url) }}

View file

@ -33,7 +33,7 @@
{% if displayTrustedOption %} {% if displayTrustedOption %}
<div class="form-group row mt-3"> <div class="form-group row mt-3">
<div class="offset-3"> <div class="{{ offset_col }} {{ input_col }}">
<div class="custom-checkbox custom-control ms-2"> <div class="custom-checkbox custom-control ms-2">
<input id="_trusted" class="form-check-input" type="checkbox" name="{{ trustedParameterName }}" /> <input id="_trusted" class="form-check-input" type="checkbox" name="{{ trustedParameterName }}" />
<label class="form-check-label" for="_trusted">{% trans %}tfa.code.trusted_pc{% endtrans %}</label> <label class="form-check-label" for="_trusted">{% trans %}tfa.code.trusted_pc{% endtrans %}</label>
@ -48,7 +48,7 @@
{% block submit_btn %} {% block submit_btn %}
<div class="form-group-row"> <div class="form-group-row">
<div class="offset-3"> <div class="{{ offset_col }} {{ input_col }}">
<button type="submit" class="btn btn-primary" value="{{ "login"|trans({}, 'SchebTwoFactorBundle') }}">{% trans %}login.btn{% endtrans %}</button> <button type="submit" class="btn btn-primary" value="{{ "login"|trans({}, 'SchebTwoFactorBundle') }}">{% trans %}login.btn{% endtrans %}</button>
<a class="ms-2" href="{{ logoutPath }}">{% trans %}user.logout{% endtrans %}</a> <a class="ms-2" href="{{ logoutPath }}">{% trans %}user.logout{% endtrans %}</a>
</div> </div>

View file

@ -22,7 +22,7 @@
{% block card_content %} {% block card_content %}
{% if saml_enabled %} {% if saml_enabled %}
<div class="col-md-9 offset-md-3 col-lg-10 offset-lg-2"> <div class="{{ offset_col }} {{ input_col }}">
<a class="btn btn-secondary" href="{{ path('saml_login') }}"><i class="fa-solid fa-house-user"></i> {% trans %}login.sso_saml_login{% endtrans %}</a> <a class="btn btn-secondary" href="{{ path('saml_login') }}"><i class="fa-solid fa-house-user"></i> {% trans %}login.sso_saml_login{% endtrans %}</a>
<p class="text-muted">{% trans %}login.local_login_hint{% endtrans %}</p> <p class="text-muted">{% trans %}login.local_login_hint{% endtrans %}</p>
@ -39,6 +39,6 @@
{{ form_end(form) }} {{ form_end(form) }}
{% if allow_email_pw_reset %} {% if allow_email_pw_reset %}
<a class="offset-sm-2" href="{{ path('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a> <a class="{{ offset_col }}" href="{{ path('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View file

@ -38,7 +38,7 @@
{% if section_widget.vars.embedded_settings_metadata is defined %} {# Check if we have nested embedded settings or not #} {% if section_widget.vars.embedded_settings_metadata is defined %} {# Check if we have nested embedded settings or not #}
<fieldset> <fieldset>
<legend class="offset-3"> <legend class="{{ offset_col }}">
<i class="fa-solid {{ settings_icon(settings_object)|default('fa-sliders') }} fa-fw"></i> <i class="fa-solid {{ settings_icon(settings_object)|default('fa-sliders') }} fa-fw"></i>
{{ (section_widget.vars.label ?? section_widget.vars.name|humanize)|trans }} {{ (section_widget.vars.label ?? section_widget.vars.name|humanize)|trans }}
</legend> </legend>