<form class="{{cssClass}}" autocomplete="off">
    <header class="sheet-header">
        <img class="profile-img" src="{{data.img}}" data-edit="img" title="{{data.name}}"/>
        <h1 class="charname"><input name="name" type="text" value="{{data.name}}" placeholder="Name"/></h1>
    </header>
    {{!-- Sheet Body --}}
    <section class="sheet-body">
        {{!-- Attributes --}}
        <article class="attributes" data-group="primary" data-tab="description">
            {{!-- Row 1 : quantité / rareté / coût / équipé --}}
            <label class="value">
                {{localize 'l5r5e.sheets.quantity'}}
                <input class="select-on-focus" type="number" name="system.quantity" value="{{data.system.quantity}}" data-dtype="Number" min="0" placeholder="0"/>
            </label>
            <label class="value">
                {{localize 'l5r5e.sheets.rarity'}}
                <input class="select-on-focus" type="text" name="system.rarity" value="{{data.system.rarity}}" data-dtype="String" placeholder="—"/>
            </label>
            <label class="value">
                {{localize 'l5r5e.money.zeni'}}
                <input class="select-on-focus" type="text" name="system.zeni" value="{{data.system.zeni}}" data-dtype="String" placeholder="0"/>
            </label>
            <label class="attribute-value checkbox">
                <input type="checkbox" name="system.equipped" {{checked data.system.equipped}} />
                {{localize 'l5r5e.weapons.sheathed'}}
            </label>
            <label class="value">
                <span>{{localize 'chiaroscuro.weapon.bonus'}}</span>
                <input class="select-on-focus" type="number" name="system.bonus" value="{{data.system.bonus}}" data-dtype="Number" placeholder="0"/>
            </label>
            {{!-- Row 3 : catégorie + compétence --}}
            <label class="category">
                {{localize 'l5r5e.weapons.category'}}
                <select name="system.category">
                    {{selectOptions data.weaponCategories selected=data.system.category valueAttr='id' labelAttr='label'}}
                </select>
            </label>
            <label class="skillType">
                {{localize 'l5r5e.skills.label'}}
                <select class="attribute-dtype" name="system.skill">
                    {{selectOptions data.skills selected=data.system.skill valueAttr='id' labelAttr='label' localize=true}}
                </select>
            </label>
            {{!-- Row 4 : apprêté + prises --}}
            <label class="attribute-value checkbox">
                <input type="checkbox" name="system.readied" {{checked data.system.readied}} />
                {{localize 'l5r5e.weapons.readied'}}
            </label>
            <label class="grip">
                {{localize 'l5r5e.weapons.1hand'}}
                <input class="select-on-focus" type="text" name="system.grip_1" value="{{data.system.grip_1}}" data-dtype="String" placeholder="—"/>
            </label>
            <label class="grip">
                {{localize 'l5r5e.weapons.2hand'}}
                <input class="select-on-focus" type="text" name="system.grip_2" value="{{data.system.grip_2}}" data-dtype="String" placeholder="—"/>
            </label>
        </article>
        {{!-- Description pleine largeur --}}
        <article class="tab infos active" data-group="primary" data-tab="infos">
            <fieldset>
                <legend class="text-block-header">{{localize 'l5r5e.sheets.description'}}</legend>
                {{editor data.enrichedHtml.description target="system.description" button=true owner=owner editable=editable engine="prosemirror" collaborate=false}}
            </fieldset>
        </article>
    </section>
</form>
