{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-FileCopyrightText: 2021 Gesina Schwalbe

SPDX-License-Identifier: MIT
--}}

<div class="ds4-profile">
    {{#each data.system.profile as |profile-data-value profile-data-key|}}
    {{#if (and (ne profile-data-key 'biography') (ne profile-data-key 'specialCharacteristics'))}}
    <div class="ds4-profile__entry">
        <label class="ds4-profile__entry-label" for="system.profile.{{profile-data-key}}">
            {{lookup ../config.i18n.characterProfile profile-data-key}}
        </label>
        <input class="ds4-profile__entry-input" type="text" name="system.profile.{{profile-data-key}}"
            value="{{profile-data-value}}"
            data-dtype="{{lookup ../config.i18n.characterProfileDTypes profile-data-key}}" />
    </div>
    {{/if}}
    {{/each}}
    <div class="ds4-profile__entry">
        <label class="ds4-profile__entry-label" for="system.profile.specialCharacteristics">
            {{lookup config.i18n.characterProfile 'specialCharacteristics'}}
        </label>
        <textarea class="ds4-profile__entry-input ds4-profile__entry-input--multiline"
            name="system.profile.specialCharacteristics" data-dtype="String"
            rows="4">{{data.system.profile.specialCharacteristics}}</textarea>
    </div>
</div>