Expand placeholder subforms if they have data

This commit is contained in:
Alex Cabal 2024-12-28 19:20:30 -06:00
parent c43c4fa2dd
commit 2c0c87bcb0

View file

@ -21,7 +21,7 @@ $showProjectForm = $showProjectForm ?? true;
/> />
</label> </label>
</fieldset> </fieldset>
<details> <details<? if( (isset($ebook->Authors) && sizeof($ebook->Authors) > 1) || (isset($ebook->Translators) && sizeof($ebook->Translators) > 0) ){ ?> open="open"<? } ?>>
<summary>Additional contributors</summary> <summary>Additional contributors</summary>
<fieldset> <fieldset>
<label class="icon user"> <label class="icon user">
@ -124,7 +124,7 @@ $showProjectForm = $showProjectForm ?? true;
/> />
</label> </label>
</fieldset> </fieldset>
<details> <details<? if(isset($ebook->CollectionMemberships) && sizeof($ebook->CollectionMemberships) > 1){ ?> open="open"<? } ?>>
<summary>Additional collections</summary> <summary>Additional collections</summary>
<fieldset> <fieldset>
<label class="icon collection"> <label class="icon collection">