{{! Author: Jean-Baptiste Louvet-Daniel
   -
   - This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at https://mozilla.org/MPL/2.0/. }}
<div class='{{cssClass}} custom-system-entity'>
    {{! Sheet Header }}
    <header class='sheet-header'>
        <div class='profile-img-container' style='width: {{document.system.display.pp_width}}px; height: {{document.system.display.pp_height}}px; flex: 0 0 {{document.system.display.pp_width}}px'>
            <img class='profile-img {{#if isDefaultImg}}csb-filter-default-svg{{/if}}' src='{{document.img}}' data-action='editImage' data-edit='img' title='{{document.name}}' />
        </div>
        <div class='header-fields'>
            <h1 class='charname'>
                <input name='name' type='text' value='{{document.name}}' placeholder='{{localize "Name"}}' />
                {{#if manualEntitySaving}}
                    <a class='custom-system-save-entity custom-system-button-inactive' title='{{localize "Save"}}'><i class='fas fa-floppy-disk'></i></a>
                {{/if}}
            </h1>

            {{#if canReload}}
                <div class='custom-system-sheet-actions'>
                    <div class='custom-system-template-select'>
                        <label for='template-{{document.id}}'> {{localize 'CSB.Sheets.Template'}} : </label>

                        <select id='template-{{document.id}}' name='system.template'>
                            {{selectOptions
                                availableTemplates
                                selected=document.system.template
                                valueAttr='id'
                                labelAttr='name'
                            }}
                        </select>
                        <a class='custom-system-reload-template' title='{{localize "CSB.Sheets.ReloadTemplate"}}'><i class='fas fa-sync'></i></a>
                        <a class='custom-system-open-template' title='{{localize "CSB.Sheets.OpenTemplateSheet"}}'><i class='fas fa-arrow-up-right-from-square'></i></a>
                    </div>
                </div>
            {{/if}}

            <div class='custom-system-customHeader'></div>
        </div>
    </header>

    <div class='custom-system-customBody'></div>
</div>