<form class="{{cssClass}}" autocomplete="off" id="sheet">
    {{!-- Sheet Header --}}
    <header class="sheet-header">
        <img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100">
        <div class="header-fields">
            <h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"></h1>
            <div class="flexblock-left ">
                <div class="col-1-2">
                    {{#if actor.data.istemplate}}
                    {{else}}
                    <div class="flexblock-left">
                        <label class="label-free boldtext">MOD</label>
                        <input class="input-min" type="text" name="data.mod" value="{{data.mod}}">

                        {{#advShow}}
                        <a class="roll-mode boldtext" title="Roll mode"><i>{{data.rollmode}}</i></a>
                        {{/advShow}}

                        {{#showRoller}}
                        <a class="roll-free" title="Roll mode"><i class="fas fa-dice-d20"></i></a>
                        {{/showRoller}}

                        {{#if actor.data.selector}}
                        <a class="mod-selector" title="Select Options"><i class="fas fa-exclamation-circle fa-2x"></i></a>
                        {{/if}}
                    </div>
                    {{/if}}
                </div>

                <div class="rightblock">
                    {{#if actor.data.istemplate}}
                    {{else}}
                    {{#isGM}}
                    <select class="selectsheet" name="data.gtemplate" data-type="String">
                        <!--
{{#select actor.data.gtemplate}}
{{#each data.sheets as |gtemplate id|}}
<option  value="{{gtemplate}}">{{gtemplate}}</option>
{{/each}}
{{/select}}
-->
                    </select>
                    {{/isGM}}
                    {{/if}}
                    {{#isGM}}


                    <h3 class="rightblock-element">Template</h3>
                    <input class="check-istemplate" name="data.istemplate" id="check-istemplate" type="checkbox" {{checked actor.data.istemplate}}="">


                    {{/isGM}}

                    {{#if actor.data.istemplate}}
                    <h3 class="rightblock-element-tag">Rebuild Sheet</h3>
                    <a class="rightblock-element item-refresh" title="Rebuild Sheet"><i class="fas fa-sync"></i></a>
                    {{/if}}
                </div>
            </div>
        </div>
    </header>

    {{!-- Sheet Tab Navigation --}}
    <div class="atabs">
        <a class="tab-prev" id="tab-prev">❮</a>
        <nav class="sheet-tabs tabs" data-group="primary" id="tabs" tabs="1">

            <a class="item tab-button" data-tab="description" id="tab-0">Bio</a>          
            <a class="item tab-button" id="tab-1" data-tab="stats_tab">Fitxa</a><a style="display: none" id="tab-last"></a>
            {{#isGM}}
            <a class="item tab-button" data-tab="citems" id="tab-citems">cItems</a>
            {{#if actor.data.istemplate}}
            <a class="item tab-button" data-tab="token" id="tab-token">Token</a>
            <a class="item tab-button" data-tab="config" id="tab-tabs">Tabs</a>
            {{/if}}
            {{/isGM}}

        </nav>
        <a class="tab-next" id="tab-next">❯</a>
    </div>

    {{!-- Sheet Body --}}
    <section class="sheet-body" id="sheet-body">

        {{!-- Biography Tab --}}
        <div class="tab biography active scrollable" data-group="primary" data-tab="description">
            {{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}}
        </div>

        {{#if actor.data.istemplate}}
        {{!-- SheetTabs Tab --}}
        <div class="tab properties" data-group="primary" data-tab="config">
            <ol class="properties-list">
                {{#each data.tabs as |tab id|}}
                <li class="property flexrow" data-item-id="{{id}}">
                    <h4 class="property-name">{{tab.name}}</h4>
                    <div class="property-row">
                        <a class="property-controls item-top" title="Top Item"><i class="fas fa-arrow-alt-circle-up"></i></a>
                        <a class="property-controls item-bottom" title="Bottom Item"><i class="fas fa-arrow-alt-circle-down"></i></a>
                        <a class="property-control item-edit" title="Edit Tab"><i class="fas fa-edit"></i></a>
                        <a class="property-control item-delete" title="Delete Tab"><i class="fas fa-trash"></i></a>
                    </div>
                </li>
                {{/each}}
            </ol>
        </div>
        {{!-- Token Tab --}}
        <div class="tab token scrollable" data-group="primary" data-tab="token">
            <div class="flexblock">
                <div class="col-1-2">
                    <div class="new-row">
                        <div class="flexblock-left">
                            <label class="label-medlarge">Bar 1</label>
                            <input class="token-bar1" type="text" name="data.tokenbar1" value="{{data.tokenbar1}}" tkvalue="">
                        </div>
                    </div>
                    <div class="new-row">
                        <div class="flexblock-left">
                            <label class="label-medlarge">Shield Stat</label>
                            <input class="token-shieldstat" type="text" name="data.shieldstat" value="{{data.shieldstat}}" tkvalue="">
                        </div>
                    </div>
                    <div class="new-row">
                        <div class="flexblock-left">
                            <label class="label-medlarge">Display Name</label>
                            <select class="token-displayName" name="data.displayName" data-type="String" tkvalue="NONE">
                                {{#select actor.data.displayName}}
                                <option value="NONE">NONE</option>
                                <option value="CONTROL">CONTROL</option>
                                <option value="OWNER_HOVER">OWNER HOVER</option>
                                <option value="HOVER">HOVER</option>
                                <option value="OWNER">OWNER</option>
                                <option value="ALWAYS">ALWAYS</option>
                                {{/select}}
                            </select>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        {{/if}}

        {{!-- cItems Tab --}}
        <div class="tab citems scrollable" data-group="primary" data-tab="citems">
            <ol class="properties-list">
                {{#each data.citems as |citem cid|}}
                <li class="property flexrow" data-item-id="{{cid}}">
                    <h4 class="property-name">{{citem.name}}</h4>
                    <div class="property-row">
                        <a class="property-control citem-edit" title="Edit cItem"><i class="fas fa-edit"></i></a>
                        <a class="property-control citem-delete" citemid="{{citem.id}}" title="Delete cItem"><i class="fas fa-trash"></i></a>
                    </div>
                </li>
                {{/each}}
            </ol>
        </div>



    <div class="tab scrollable stats_tab_tab" id="stats_tab_Def" data-group="primary" data-tab="stats_tab"><div class="new-column" id="stats_tabBody"><div class="new-block" id="stats_tabrow0"><div class="col-1-1"><div class="panelheader">Informazioa</div><div class="table-row"><div class="flexblock-left"><h3 class=" label-free" id="fakzioa_label" attid="egjeLsHdGAGgbH8I">Fakzioa:</h3><table class="table-free fakzioa_tabla inputGM" name="data.attributes.fakzioa_tabla" value="{{data.attributes.fakzioa_tabla.value}}" attid="wnF9d0r5tuH8kTvo"><thead style="display: none;"><tr><th class="label-large">Item</th><th class="cell-empty"></th></tr></thead><tbody class="table" id="wnF9d0r5tuH8kTvo"></tbody></table><h3 class=" label-free" id="arketipo_label" attid="LHlrnAW0uckwUElP">Arketipoa:</h3><table class="table-free arketipoa_tabla inputGM" name="data.attributes.arketipoa_tabla" value="{{data.attributes.arketipoa_tabla.value}}" attid="DAbc0FNX5vMvXrVu"><thead style="display: none;"><tr><th class="label-large">Item</th><th class="cell-empty"></th></tr></thead><tbody class="table" id="DAbc0FNX5vMvXrVu"></tbody></table></div></div></div></div><div class="new-block" id="stats_tabrow1"><div class="col-1-1"><div class="new-row"><div class="flexblock-center"><h3 class="centertext label-free boldtext" id="bizitza" attid="Svvgy2FED1j6Q8Jk">BIZITZA-BARRA (IND X 2):</h3><input name="data.attributes.bizitza.value" value="{{data.attributes.bizitza.value}}" type="text" class="input-ahalf  bizitza inputGM" attid="Svvgy2FED1j6Q8Jk"><input type="text" class="input-bhalf input-disabled inputGM bizitza.max" name="data.attributes.bizitza.max" value="{{data.attributes.bizitza.max}}"></div></div></div></div><div class="new-block" id="stats_tabrow2"><div class="col-1-1"><div class="new-row"><div class="flexblock-left"><h3 class=" label-free" id="izaera" attid="2iSDPyJrpZetuKir">Izaera:</h3><textarea class="texteditor-med izaera" name="data.attributes.izaera.value" attid="2iSDPyJrpZetuKir">{{data.attributes.izaera.value}}</textarea><h3 class=" label-free" id="aurrekariak" attid="RRKkE9rpHzCWpoHa">Aurrekariak:</h3><textarea class="texteditor-med aurrekariak" name="data.attributes.aurrekariak.value" attid="RRKkE9rpHzCWpoHa">{{data.attributes.aurrekariak.value}}</textarea></div></div></div></div><div class="new-block" id="stats_tabrow3"><div class="col-1-1"><div class="panelheader">Atributuak eta atalasea</div><div class="new-row"><div class="flexblock-center"><h3 class="centertext label-free" id="indarra" attid="I6VIsW2krEMlgUma">INDarra</h3><input name="data.attributes.indarra.value" value="{{data.attributes.indarra.value}}" type="text" class="input-ahalf  indarra" attid="I6VIsW2krEMlgUma"><input type="text" class="input-bhalf input-disabled inputGM indarra.max" name="data.attributes.indarra.max" value="{{data.attributes.indarra.max}}"><h3 class="centertext label-free" id="atalasea-ind" attid="xkIk6zDSsW70XUbz">atalasea (IND)</h3><input name="data.attributes.atalasea-ind.value" value="{{data.attributes.atalasea-ind.value}}" type="text" class="input-ahalf  atalasea-ind" attid="xkIk6zDSsW70XUbz"><input type="text" class="input-bhalf input-disabled inputGM atalasea-ind.max" name="data.attributes.atalasea-ind.max" value="{{data.attributes.atalasea-ind.max}}"><h3 class="centertext label-free" id="aditasuna" attid="Qk1TbBXLxVPG8FoM">ADItasuna</h3><input name="data.attributes.aditasuna.value" value="{{data.attributes.aditasuna.value}}" type="text" class="input-ahalf  aditasuna" attid="Qk1TbBXLxVPG8FoM"><input type="text" class="input-bhalf input-disabled inputGM aditasuna.max" name="data.attributes.aditasuna.max" value="{{data.attributes.aditasuna.max}}"><h3 class="centertext label-free" id="atalasea-adi" attid="EIkxzbDdFGBwmhRE">atalasea (ADI)</h3><input name="data.attributes.atalasea-adi.value" value="{{data.attributes.atalasea-adi.value}}" type="text" class="input-ahalf  atalasea-adi" attid="EIkxzbDdFGBwmhRE"><input type="text" class="input-bhalf input-disabled inputGM atalasea-adi.max" name="data.attributes.atalasea-adi.max" value="{{data.attributes.atalasea-adi.max}}"></div><div class="flexblock-center"><h3 class="centertext label-free" id="trebezia" attid="5ICV3O4aI1Q8OzWo">TREbezia</h3><input name="data.attributes.trebezia.value" value="{{data.attributes.trebezia.value}}" type="text" class="input-ahalf  trebezia" attid="5ICV3O4aI1Q8OzWo"><input type="text" class="input-bhalf input-disabled inputGM trebezia.max" name="data.attributes.trebezia.max" value="{{data.attributes.trebezia.max}}"><h3 class="centertext label-free" id="atalasea-tre" attid="hEbHHnzKU5GMa0lz">atalasea (TRE)</h3><input name="data.attributes.atalasea-tre.value" value="{{data.attributes.atalasea-tre.value}}" type="text" class="input-ahalf  atalasea-tre" attid="hEbHHnzKU5GMa0lz"><input type="text" class="input-bhalf input-disabled inputGM atalasea-tre.max" name="data.attributes.atalasea-tre.max" value="{{data.attributes.atalasea-tre.max}}"><h3 class="centertext label-free" id="eragina" attid="XbVabevQIQ6BOZ1M">ERAgina</h3><input name="data.attributes.eragina.value" value="{{data.attributes.eragina.value}}" type="text" class="input-ahalf  eragina" attid="XbVabevQIQ6BOZ1M"><input type="text" class="input-bhalf input-disabled inputGM eragina.max" name="data.attributes.eragina.max" value="{{data.attributes.eragina.max}}"><h3 class="centertext label-free" id="atalasea-era" attid="a4wq7jS5a5IB2yYk">atalasea (ERA)</h3><input name="data.attributes.atalasea-era.value" value="{{data.attributes.atalasea-era.value}}" type="text" class="input-ahalf  atalasea-era" attid="a4wq7jS5a5IB2yYk"><input type="text" class="input-bhalf input-disabled inputGM atalasea-era.max" name="data.attributes.atalasea-era.max" value="{{data.attributes.atalasea-era.max}}"></div><div class="flexblock-center"><h3 class="centertext label-free" id="arrazoia" attid="E2HouFOaiDmnjuBr">ARRazoia</h3><input name="data.attributes.arrazoia.value" value="{{data.attributes.arrazoia.value}}" type="text" class="input-ahalf  arrazoia" attid="E2HouFOaiDmnjuBr"><input type="text" class="input-bhalf input-disabled inputGM arrazoia.max" name="data.attributes.arrazoia.max" value="{{data.attributes.arrazoia.max}}"><h3 class="centertext label-free" id="atalasea-arr" attid="BXKl3j7p7OTQ1p84">atalasea (ARR)</h3><input name="data.attributes.atalasea-arr.value" value="{{data.attributes.atalasea-arr.value}}" type="text" class="input-ahalf  atalasea-arr" attid="BXKl3j7p7OTQ1p84"><input type="text" class="input-bhalf input-disabled inputGM atalasea-arr.max" name="data.attributes.atalasea-arr.max" value="{{data.attributes.atalasea-arr.max}}"><h3 class="centertext label-free" id="zortea" attid="odVEj9cdWUeCEvyL">ZORtea</h3><input name="data.attributes.zortea.value" value="{{data.attributes.zortea.value}}" type="text" class="input-ahalf  zortea" attid="odVEj9cdWUeCEvyL"><input type="text" class="input-bhalf input-disabled inputGM zortea.max" name="data.attributes.zortea.max" value="{{data.attributes.zortea.max}}"><h3 class="centertext label-free" id="atalasea-zor" attid="S1MRmXrdsRPNW46s">atalasea (ZOR)</h3><input name="data.attributes.atalasea-zor.value" value="{{data.attributes.atalasea-zor.value}}" type="text" class="input-ahalf  atalasea-zor" attid="S1MRmXrdsRPNW46s"><input type="text" class="input-bhalf input-disabled inputGM atalasea-zor.max" name="data.attributes.atalasea-zor.max" value="{{data.attributes.atalasea-zor.max}}"></div></div></div></div><div class="new-block" id="stats_tabrow4"><div class="col-1-1"><div class="panelheader">GAITASUNAK ETA TRESNAK</div><div class="new-row"><div class="flexblock-left"><table class="table-free gaitasun_motxila" name="data.attributes.gaitasun_motxila" value="{{data.attributes.gaitasun_motxila.value}}" attid="x155ZON30k0YU11o"><thead><tr><th class="label-large">Gaitasunak</th><th class="input-min">Active</th><th class="input-med">Uses</th><th class="label-free">eraldaketa</th><th class="cell-empty"></th></tr></thead><tbody class="table" id="x155ZON30k0YU11o"></tbody></table></div><div class="flexblock-left"><h3 class=" label-free" id="tresnanotak" attid="4sucZBDisnZA9afN"></h3><textarea class="texteditor-med tresnanotak" name="data.attributes.tresnanotak.value" attid="4sucZBDisnZA9afN">{{data.attributes.tresnanotak.value}}</textarea></div></div></div></div><div class="new-block" id="stats_tabrow5"><div class="col-1-1"><div class="panelheader">ESTRABAGANTZIA/KARGAK</div></div></div><div class="new-block" id="stats_tabrow6"><div class="col-1-2"><div class="new-row"><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_1" attid="qtGEGr42MZbsNVmF">I:</h3><input name="data.attributes.estrabagantzia_testua_1.value" value="{{data.attributes.estrabagantzia_testua_1.value}}" type="text" class="input-free estrabagantzia_testua_1" attid="qtGEGr42MZbsNVmF"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_1" attid="ImdxjhYs4NyIrZQM">KARGAK</h3><div class="radio-input karga_kontaketa_1" name="karga_kontaketa_1" attid="ImdxjhYs4NyIrZQM"></div></div><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_2" attid="afomUlAxLvlAEQYk">II:</h3><input name="data.attributes.estrabagantzia_testua_2.value" value="{{data.attributes.estrabagantzia_testua_2.value}}" type="text" class="input-free estrabagantzia_testua_2" attid="afomUlAxLvlAEQYk"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_2" attid="G3VXrrPMsspUOvYP">KARGAK</h3><div class="radio-input karga_kontaketa_2" name="karga_kontaketa_2" attid="G3VXrrPMsspUOvYP"></div></div><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_3" attid="0blEtSwjw7e4jp0e">III:</h3><input name="data.attributes.estrabagantzia_testua_3.value" value="{{data.attributes.estrabagantzia_testua_3.value}}" type="text" class="input-free estrabagantzia_testua_3" attid="0blEtSwjw7e4jp0e"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_3" attid="kQWzRyhogf8miqMa">KARGAK</h3><div class="radio-input karga_kontaketa_3" name="karga_kontaketa_3" attid="kQWzRyhogf8miqMa"></div></div></div></div><div class="col-1-2"><div class="new-row"><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_4" attid="QcLENMPLWbc1bZD0">IIII:</h3><input name="data.attributes.estrabagantzia_testua_4.value" value="{{data.attributes.estrabagantzia_testua_4.value}}" type="text" class="input-free estrabagantzia_testua_4" attid="QcLENMPLWbc1bZD0"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_4" attid="0TibnNi7QqhFf8Q0">KARGAK</h3><div class="radio-input karga_kontaketa_4" name="karga_kontaketa_4" attid="0TibnNi7QqhFf8Q0"></div></div><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_5" attid="LnFaYZ6fn3bsZMqz">λ:</h3><input name="data.attributes.estrabagantzia_testua_5.value" value="{{data.attributes.estrabagantzia_testua_5.value}}" type="text" class="input-free estrabagantzia_testua_5" attid="LnFaYZ6fn3bsZMqz"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_5" attid="C8DkoaphpnjaZ7g2">KARGAK</h3><div class="radio-input karga_kontaketa_5" name="karga_kontaketa_5" attid="C8DkoaphpnjaZ7g2"></div></div><div class="flexblock-left"><h3 class=" label-free boldtext" id="estrabagantzia_testua_6" attid="0O0GQGZE9Ygwlpcw">λI:</h3><input name="data.attributes.estrabagantzia_testua_6.value" value="{{data.attributes.estrabagantzia_testua_6.value}}" type="text" class="input-free estrabagantzia_testua_6" attid="0O0GQGZE9Ygwlpcw"></div><div class="flexblock-left"><h3 class=" label-free" id="karga_kontaketa_6" attid="lVThQZhEL3V9GSxW">KARGAK</h3><div class="radio-input karga_kontaketa_6" name="karga_kontaketa_6" attid="lVThQZhEL3V9GSxW"></div></div></div></div></div></div></div></section>
</form>