Skip to content

Commit

Permalink
more beautification b/c of bootstrap 5.3
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Oct 17, 2023
1 parent 965e2df commit 7556685
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions lib/Froxlor/UI/Callbacks/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

class Domain
{
public static function domainLink(array $attributes)
{
return '<a href="https://' . $attributes['data'] . '" target="_blank">' . $attributes['data'] . '</a>';
}

public static function domainWithCustomerLink(array $attributes)
{
$linker = UI::getLinker();
Expand Down
1 change: 1 addition & 0 deletions lib/tablelisting/admin/tablelisting.domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'label' => lng('domains.domainname'),
'field' => 'domain_ace',
'isdefaultsearchfield' => true,
'callback' => [Domain::class, 'domainLink'],
],
'ipsandports' => [
'label' => lng('admin.ipsandports.ipsandports'),
Expand Down
9 changes: 8 additions & 1 deletion templates/Froxlor/assets/scss/components/_form.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
// wip
.form-control-plaintext {
outline: none;
}

.form-control[readonly] {
background: $body-tertiary-bg;
}

@include color-mode(dark) {
.formfield {
border-bottom: $border-color-dark solid 1px;
Expand Down
8 changes: 0 additions & 8 deletions templates/Froxlor/assets/scss/components/_generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
height: 24px;
}

.form-control-plaintext {
outline: none;
}

.form-control[readonly] {
background: rgba(0, 0, 0, .15);
}

.page-header {
margin-bottom: 2rem;

Expand Down
2 changes: 1 addition & 1 deletion templates/Froxlor/form/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class="col-12 text-center mb-2 d-grid gap-2 d-md-block">
{% if form_data.buttons is defined and form_data.buttons is iterable %}
{% for btn in form_data.buttons %}
<button type="{{ btn.type|default("submit") }}" class="btn btn-lg {{ btn.class|default(" btn-primary") }}">{{ btn.label }}</button>
<button type="{{ btn.type|default("submit") }}" class="btn btn-lg {{ btn.class|default(" btn-primary") }}{% if not loop.last %} me-md-3{% endif %}">{{ btn.label }}</button>
{% endfor %}
{% else %}
<button type="reset" class="btn btn-lg btn-outline-secondary me-md-3">{{ lng('panel.reset') }}</button>
Expand Down
4 changes: 2 additions & 2 deletions templates/Froxlor/settings/configuration.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
{{ lng('admin.configfiles.recommendednote') }}
</div>
<div class="col-12 col-md-6 text-end">
<button type="button" class="btn btn-outline-secondary" id="selectRecommendedConfig">{{ lng('admin.configfiles.selectrecommended') }}</button>
<button type="button" class="btn btn-outline-secondary" id="downloadSelectionAsJson">
<button type="button" class="btn btn-outline-secondary me-1" id="selectRecommendedConfig">{{ lng('admin.configfiles.selectrecommended') }}</button>
<button type="button" class="btn btn-outline-secondary me-1" id="downloadSelectionAsJson">
<i class="fa-solid fa-download"></i>
{{ lng('admin.configfiles.downloadselected') }}</button>
<button type="submit" class="btn btn-primary">{{ lng('update.proceed') }}</button>
Expand Down

0 comments on commit 7556685

Please sign in to comment.