
---
---
Hey there, I need some help about this part of my custom sheet.
This is my skill book.
I have this "Habilidades" section, I also have that first checkbox to show its containing (box 1).
So, I have a blank input to name a class and another checkbox to show those inputs below it (box 2).
I want to create a fieldset with that input before box 2, but I also want that new field to expand when the box is checked.
So, it's like a repeating fieldset, and if the box 2 is checked, shows another repeating fieldset with those inputs.
I can't make it work, and I don't know what is wrong.
It's like they are all the same. If I write something there, it shows on all of them.
If I add another section, it disapears.
This is my code:
Thanks
<div>
<hr><hr>
<div style="margin-left: 30px">
<label style="margin-top: 20px; margin-bottom: 30px; width: 320px; font-size: 50px">Habilidades</label>
<input type=checkbox name="attr_showshab" class=showsaptidoes value=1 />
<div class=aptidoesblock>
<fieldset class=repeating_actions>
<div class=weaponsblock>
<input class=medium name=attr_classname></input><input type=checkbox name="attr_showsclasshab" class=showthiefabilities value=1 />
<div class=thiefabilitiesblock>
<fieldset class=repeating_weapons>
<div class=weaponsblock style="margin-top: 10px; margin-bottom: 3px">
<span style="margin-bottom: 5px"><input style="width: 300px" class='wide' type=text name=attr_habname /></span>
<br>
<label>Tipo</label>
<span class='narrow' style="width: 90px">
<select class=narrow name="attr_habtype" style="width: 75px">
<option>Ativa</option>
<option>Reativa</option>
<option>Suporte</option>
<option>Movimento</option>
</select>
</span>
<label>Classe</label>
<span class='narrow' style="width: 150px">
<input name="attr_habclass" type=text class='narrow' />
</span>
<button type=roll value="&{template:default} {{name=@{habname}}} {{*Tipo:*= ``@{habtype}``}} {{*Classe:*= *@{habclass}*}} {{*Descrição:*=
``@{habdescr}``}}"></button></span>
<textarea style="height: 50px; width: 100%; margin-bottom: 3px" class=wide name="attr_habdescr"></textarea>
<hr style="margin-left: 75px; width: 80%; margin-bottom: 5px; margin-top: 5px">
</div></fieldset>
</div>
</div></fieldset>
</div>
</div>
</div>