<fieldset>
    <legend>{{ localize "DND5E.ItemLootDetails" }}</legend>

    {{!-- Loot Type --}}
    {{ formField fields.type.fields.value label="DND5E.ItemLootType" value=source.type.value choices=CONFIG.lootTypes
                 labelAttr="label" blank="" localize=true rootId=partId }}

    {{!-- Loot Subtype --}}
    {{#if itemSubtypes}}
    {{ formField fields.type.fields.subtype value=source.type.subtype choices=itemSubtypes blank=""
                 label=(localize "DND5E.ItemLootSubtype" category=(lookup (lookup CONFIG.lootTypes source.type.value) "label")) rootId=partId }}
    {{/if}}

    {{!-- Loot Properties --}}
    {{ formField fields.properties options=properties.options label="DND5E.ItemLootProperties" localize=true
                 input=inputs.createMultiCheckboxInput stacked=true classes="checkbox-grid" }}

</fieldset>
