<section class="trade-good-editor-shell">
    <div class="trade-good-editor-identity">
        <span class="nexus-entity-image" data-custom-good-preview>{{#if good.imageSrc}}<img src="{{good.imageSrc}}" alt="">{{else}}<i class="fas fa-box"></i>{{/if}}</span>
        <label>Name<input type="text" name="name" value="{{good.name}}" autofocus></label>
    </div>
    <div class="trade-good-editor-grid">
        <label>Image<span class="trade-good-image-picker"><input type="text" name="imageSrc" value="{{good.imageSrc}}"><button type="button" data-action="pickCustomGoodImage" title="Browse world assets"><i class="fas fa-file-import"></i></button></span></label>
        <label>Global value<input type="number" name="tradeValue" min="0" step="0.01" value="{{good.tradeValue}}"><small>gp per trade lot</small></label>
        <label class="is-wide">Category<span class="trade-good-combo"><select name="familyPreset" data-custom-good-preset data-custom-input="familyCustom">{{#each categories}}<option value="{{value}}" {{#if selected}}selected{{/if}}>{{label}}</option>{{/each}}<option value="__custom__" {{#if categoryIsCustom}}selected{{/if}}>Custom…</option></select><input type="text" name="familyCustom" value="{{categoryCustomValue}}" placeholder="Type a category" {{#unless categoryIsCustom}}hidden disabled{{/unless}}></span><small>Choose an existing category or select Custom.</small></label>
        <label>Lot name<input type="text" name="lotLabel" value="{{good.lot.label}}"></label>
        <label>Lot weight<input type="number" name="weightLb" min="0" step="1" value="{{good.lot.weightLb}}"><small>pounds</small></label>
        <label class="is-wide">Description<textarea name="description" rows="3">{{good.lot.description}}</textarea></label>
    </div>
    <footer><button type="button" data-action="cancelCustomGood">Cancel</button><button type="button" class="bright" data-action="saveCustomGood"><i class="fas fa-check"></i> Save Good</button></footer>
</section>
