Skip to content

Commit

Permalink
Update fieldSetStart
Browse files Browse the repository at this point in the history
- change to `fieldset` again
- enable text-color
- enable box & box-shadow
- enable grid-alignment
- enable margin
- enable padding
- enable backgrounds
  • Loading branch information
zoglo committed Apr 18, 2024
1 parent 175e499 commit ad4efa2
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 7 deletions.
23 changes: 18 additions & 5 deletions contao/templates/forms/form_fieldsetStart.html5
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<?php
$gutterBC = (str_contains($this->class,'gtr-2')?' gtr-2':'').(str_contains($this->class,'gtr-0')?' gtr-0':'');

<div class="grid gtr-f<?=$this->class?' '.$this->class:''?>" role="group">
<div class="inside">
<?php if ($this->label): ?>
<legend><?= $this->label ?></legend>
<?php endif; ?>
$sm = $this->styleManager;
$outerClasses = $sm->prepare('cLayout')->exclude(['overflow'])->format(' %s');
$insideClasses = $sm->prepare('cLayout',['overflow'])->format(' %s') .
$sm->prepare('cSpacing')->format(' %s') .
$sm->prepare('cPadding')->format(' %s') .
$sm->prepare('cBackground')->format(' %s');
$gridClasses = $sm->prepare('cGridAlignment')->format(' %s').
$sm->prepare('cGridGutter')->format(' %s');
?>
<fieldset<?php if ($this->class): ?> class="<?= $this->class ?>"<?php endif; ?>>
<div class="inside<?= $insideClasses ?>">
<div class="grid gtr-f<?= $gutterBC ?><?= $gridClasses ?>">
<div class="inside">
<?php if ($this->label): ?>
<legend><?= $this->label ?></legend>
<?php endif; ?>
5 changes: 3 additions & 2 deletions contao/templates/forms/form_fieldsetStop.html5
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

</div>
</div>
</div>
</div>
</fieldset>
Loading

0 comments on commit ad4efa2

Please sign in to comment.