<div class="entity-placement-pane" data-entity-placement="{{entityType}}">
    <fieldset class="site-panel-section entity-generator-section">
        <legend><i class="{{icon}}"></i> {{label}}</legend>

        <div class="entity-genre-switcher site-role-switcher site-genre-switcher" role="tablist" aria-label="{{label}} genre">
            {{#each genres}}
            <button type="button" class="site-role-option {{#if selected}}active{{/if}}" data-entity-genre-id="{{id}}" aria-pressed="{{#if selected}}true{{else}}false{{/if}}">{{label}}</button>
            {{/each}}
        </div>

        {{#if genreModuleRequired}}
        <div class="site-scene-requires">
            <div class="site-scene-requires-copy">{{genreModuleRequiresText}}</div>
            {{#if genreModuleRequiresUrl}}
            <button type="button" class="site-scene-requires-link" data-action="viewRequiredGenreModule" data-requires-url="{{genreModuleRequiresUrl}}" title="View required module">
                <span>View Module</span>
                <i class="fas fa-up-right-from-square"></i>
            </button>
            {{/if}}
        </div>
        {{else}}
        {{#if hasGenreProvider}}
        {{#if hasMultipleGenreGenerators}}
        <div class="form-group entity-generator-choice">
            <select name="generatorId" aria-label="{{label}} generator">
                {{#each generators}}<option value="{{id}}" {{#if selected}}selected{{/if}}>{{label}}</option>{{/each}}
            </select>
        </div>
        {{/if}}

        {{#if hasOptionGroups}}
        <div class="entity-option-grid">
            {{#each optionGroups}}
            <div class="form-group">
                <label>{{label}}</label>
                <select name="{{name}}">{{#each options}}<option value="{{id}}" {{#if selected}}selected{{/if}}>{{label}}</option>{{/each}}</select>
            </div>
            {{/each}}
        </div>
        {{/if}}

        {{#if hasCandidate}}
        <section class="entity-candidate-panel {{#if isNpc}}npc-candidate-panel npc-create-candidate-panel{{/if}} {{#if isFaction}}npc-candidate-panel faction-create-candidate-panel{{/if}} {{#if isLocation}}npc-candidate-panel location-candidate-panel{{/if}}">{{{candidate.html}}}{{{candidate.extensionHtml}}}</section>
        <footer class="entity-placement-actions">
            <button type="button" class="site-mode-action" data-action="rerollCandidate"><i class="fas fa-dice"></i><span>Reroll</span></button>
            <button type="button" class="site-mode-action" data-action="editCandidate"><i class="fas fa-pen"></i><span>Edit</span></button>
            <button type="button" class="site-mode-action" data-action="clearCandidate"><i class="fas fa-xmark"></i><span>Clear</span></button>
        </footer>
        {{else}}
        <button type="button" class="site-mode-action entity-generate-button" data-action="generateCandidate"><i class="fas fa-dice"></i><span>Generate Candidate</span></button>
        {{/if}}
        {{else}}
        <div class="entity-genre-empty">
            <i class="fas fa-circle-info"></i>
            <p>{{emptyGenreText}}</p>
        </div>
        {{/if}}
        {{/if}}
    </fieldset>
    {{#unless genreModuleRequired}}
    {{{advancedHtml}}}

    <div class="site-info compact">
        <div class="site-action place"><i class="{{icon}}"></i><span><strong>Left Click</strong> to place</span></div>
        <div class="site-action delete"><i class="fas fa-eraser"></i><span><strong>Shift + Click</strong> to delete marker</span></div>
        <div class="site-action gesture"><i class="fas fa-rotate"></i><span><strong>Q / E</strong> rotate preview</span></div>
        <div class="site-action gesture"><i class="fas fa-up-down-left-right"></i><span><strong>W/S</strong> size, <strong>A</strong> reset</span></div>
        <div class="site-action cancel site-action-full"><i class="fas fa-rotate-left"></i><span><strong>ESC</strong> to cancel drag or hide preview</span></div>
    </div>
    {{/unless}}
</div>
