<section class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
    <fieldset class="one-column">
        <legend>{{localize "DAGGERHEART.ACTIVEEFFECT.Config.rangeDependence.title"}}</legend>

        {{formGroup systemFields.rangeDependence.fields.enabled value=source.system.rangeDependence.enabled localize=true }}
        {{formGroup systemFields.rangeDependence.fields.type value=source.system.rangeDependence.type localize=true }}
        {{formGroup systemFields.rangeDependence.fields.target value=source.system.rangeDependence.target localize=true }}
        {{formGroup systemFields.rangeDependence.fields.range value=source.system.rangeDependence.range localize=true }}
    </fieldset>

    <fieldset class="one-column">
        {{formGroup fields.duration.fields.seconds value=source.duration.seconds rootId=rootId}}
        {{formGroup fields.duration.fields.startTime value=source.duration.startTime rootId=rootId}}
    </fieldset>

    <fieldset class="one-column">
        <div class="form-group">
            <label>{{localize "EFFECT.DurationTurns"}}</label>
            <div class="form-fields">
                <label for="{{rootId}}-duration.rounds">{{localize "EFFECT.FIELDS.duration.rounds.label"}}</label>
                {{formInput fields.duration.fields.rounds value=source.duration.rounds
                    id=(concat rootId "-duration.rounds")}}
                <label for="{{rootId}}-duration.turns">{{localize "EFFECT.FIELDS.duration.turns.label"}}</label>
                {{formInput fields.duration.fields.turns value=source.duration.turns
                    id=(concat rootId "-duration.turns")}}
            </div>
        </div>
        <div class="form-group">
            <label>{{localize "EFFECT.StartTurns"}}</label>
            <div class="form-fields">
                <label for="{{rootId}}-duration.startRound">{{localize "EFFECT.FIELDS.duration.startRound.label"}}</label>
                {{formInput fields.duration.fields.startRound value=source.duration.startRound
                    id=(concat rootId "-duration.startRound")}}
                <label for="{{rootId}}-duration.startTurn">{{localize "EFFECT.FIELDS.duration.startTurn.label"}}</label>
                {{formInput fields.duration.fields.startTurn value=source.duration.startTurn
                    id=(concat rootId "-duration.startTurn")}}
            </div>
        </div>
    </fieldset>
</section>
