{{!log "Cthulhu Hack | object" this}}
<section class="item-section">    
        <div class="item-header">
            <input name="name" type="text" value="{{item.name}}"{{#if isPlay}} disabled{{/if}} />
            <div class="item-header-row">                     
                {{#if isEdit}}
                    <div class="item-image">
                        <img class="editable-image" data-action="editImage" data-uuid="{{item.uuid}}" src="{{item.img}}" data-edit="img" data-tooltip="{{localize 'TOOLTIPS.SelectImage'}}" />
                    </div>
                    <div class="form-group material edit">
                        <label>{{localize "CTHACK.Material"}}</label>
                        <div class="form-fields">
                            <select class="select-dice-material" name="system.dice">
                                {{selectOptions diceValues selected=system.dice blank="CTHACK.None" localize=true}}
                            </select>
                         </div>
                    </div>
                {{else}}
                    <div class="item-image">
                        {{#unless hasDefaultImage}}
                            <img src="{{item.img}}" />
                        {{/unless}}
                    </div>
                    {{#if item.system.hasMaterialDice}}
                        <div class="form-group material play">
                            <label>{{localize "CTHACK.Material"}}</label>
                            <div class="form-fields">
                                {{#if item.system.isDice}}
                                    <img {{{getDiceImg item.system.dice}}} class="item-dice-select" data-tooltip="{{item.system.dice}}"/>
                                {{else}}
                                    <div>{{item.system.dice}}</div>
                                {{/if}}
                            </div>
                        </div>
                    {{/if}}
                {{/if}}
            </div>
        </div>
 
        {{#if useSize}}
            {{#if isEdit}}
                <div class="item-properties grid-1">
                    <div class="item-size">
                        <label>{{localize "CTHACK.ItemSizeEquipped"}}</label>
                        {{formInput systemFields.size.fields.equipped name="system.size.equipped" value=systemSource.size.equipped localize=true disabled=isPlay}}
                        <label>{{localize "CTHACK.ItemSizeUnequipped"}}</label>
                        {{formInput systemFields.size.fields.unequipped name="system.size.unequipped" value=systemSource.size.unequipped localize=true disabled=isPlay}}
                        <label>{{localize "CTHACK.Status"}}</label>
                        {{formInput systemFields.size.fields.status name="system.size.status" value=systemSource.size.status localize=true disabled=isPlay}}                        
                    </div>            
                </div>
            {{else}}
                <div class="item-properties grid-1 readonly">
                    <div class="item-size">
                        <label>{{localize "CTHACK.ItemSizeName"}}</label>
                        <div>
                            <span data-tooltip="{{localize "CTHACK.Equipped"}}">{{system.size.equipped}}</span>
                            {{#if hasSizeUnequipped }}
                                <span data-tooltip="{{localize "CTHACK.Unequipped"}}">({{system.size.unequipped}})</span>
                            {{/if}}
                            {{#if (eq system.size.status "equipped")}}
                                <i class="fa-solid fa-user-shield" data-tooltip="{{localize "CTHACK.Status"}} {{localize "CTHACK.Equipped"}}"></i>
                            {{else if (eq system.size.status "unequipped")}}
                                <i class="fa-solid fa-suitcase" data-tooltip="{{localize "CTHACK.Status"}} {{localize "CTHACK.Unequipped"}}"></i>
                            {{else if (eq system.size.status "home")}}
                                <i class="fa-solid fa-house" data-tooltip="{{localize "CTHACK.Status"}} {{localize "CTHACK.Home"}}"></i>
                            {{/if}}
                        </div>
                    </div>            
                </div>
            {{/if}}
        {{/if}}
        
        <div class="item-description">
            {{#if isEdit}}
                <fieldset>
                    <legend>{{localize "CTHACK.Description"}}</legend>
                    <div class="description-content">
                        {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
                    </div>
                </fieldset>
            {{else}}
                {{#if system.hasDescription}}
                    <fieldset>
                        <legend>{{localize "CTHACK.Description"}}</legend>
                        <div class="description-content">
                            {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
                        </div>
                    </fieldset>
                {{/if}}
            {{/if}}
        </div>
</section>
