Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion administrator/templates/atum/scss/blocks/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
}
}

.alert-parent {
margin-top: 0;
}

fieldset .alert {
&.alert-info {
margin: -1rem 0 1rem;
Expand All @@ -52,4 +56,3 @@ fieldset .alert {
transform: translateY(0);
}
}

20 changes: 19 additions & 1 deletion layouts/joomla/edit/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@
{
echo '<fieldset id="fieldset-' . $name . '" class="options-form ' . (!empty($fieldSet->class) ? $fieldSet->class : '') . '">';
echo '<legend>' . $label . '</legend>';

// Include the description when available
if (!empty($fieldSet->description))
{
echo '<div class="alert alert-info">';
echo '<span class="fas fa-info-circle" aria-hidden="true"></span><span class="sr-only">' . Text::_('INFO') . '</span> ';
echo Text::_($fieldSet->description);
echo '</div>';
}

echo '<div class="column-count-md-2 column-count-lg-3">';
}
// Tabs
Expand Down Expand Up @@ -147,7 +157,7 @@
echo '<legend>' . $label . '</legend>';

// Include the description when available
if (isset($fieldSet->description) && trim($fieldSet->description))
if (!empty($fieldSet->description))
{
echo '<div class="alert alert-info">';
echo '<span class="fas fa-info-circle" aria-hidden="true"></span><span class="sr-only">' . Text::_('INFO') . '</span> ';
Expand All @@ -159,6 +169,14 @@

$opentab = 2;
}
// Include the description when available
elseif (!empty($fieldSet->description))
{
echo '<div class="alert alert-info alert-parent">';
echo '<span class="fas fa-info-circle" aria-hidden="true"></span><span class="sr-only">' . Text::_('INFO') . '</span> ';
echo Text::_($fieldSet->description);
echo '</div>';
}
}

// We're on the deepest level => output fields
Expand Down