<div class="standard-form bwlp-form bwlp-hover-modal">
  <div class="bwlp-top-actions"><button type="submit"><i class="fas fa-save"></i> {{localize "BWLP.Save"}}</button></div>

  <div class="form-group bwlp-effect-row">
    <label class="bwlp-check"><input type="checkbox" name="glowOn" {{#if glowOn}}checked{{/if}}/> {{localize "BWLP.HoverGlow"}}</label>
    <button type="button" class="bwlp-invert{{#if glowInvert}} on{{/if}}" data-invert="glow" data-tooltip="{{localize 'BWLP.InvertBtn'}}"><i class="fas fa-right-left"></i></button>
  </div>
  <div class="bwlp-hover-glowfields" data-when="glow" style="display:grid;grid-template-columns:auto 1fr auto 1fr;gap:4px 8px;align-items:center;">
    <label>{{localize "BWLP.HoverColor"}}</label>
    <input type="color" name="color" value="{{color}}"/>
    <label>{{localize "BWLP.HoverStrength"}}</label>
    <input type="number" name="strength" value="{{strength}}" min="1" max="20" step="1"/>
  </div>

  {{#unless isText}}
  <div class="form-group bwlp-effect-row bwlp-image-row">
    <label class="bwlp-dm-label"><i class="fas fa-image"></i> {{localize "BWLP.HoverImage"}}</label>
    <button type="button" class="bwlp-invert{{#if imageInvert}} on{{/if}}" data-invert="image" data-tooltip="{{localize 'BWLP.InvertBtn'}}"><i class="fas fa-right-left"></i></button>
  </div>
  <div class="bwlp-file-row">
    <input type="text" name="imageSrc" value="{{imageSrc}}" placeholder="{{localize 'BWLP.HoverImagePlaceholder'}}"/>
    <button type="button" data-image-browse><i class="fas fa-folder-open"></i> {{localize "BWLP.Browse"}}</button>
  </div>
  <p class="notes">{{localize "BWLP.HoverImageHint"}}</p>
  {{/unless}}

  {{#if hasTMFX}}
    <div class="form-group bwlp-effect-row bwlp-effects-row">
      <button type="button" class="bwlp-apply" data-edit-effects><i class="fas fa-sliders"></i> {{localize "BWLP.EditEffects"}}</button>
      <span class="bwlp-muted" data-effects-summary></span>
    </div>
  {{else}}
    <p class="notes">{{localize "BWLP.NoPresets"}}</p>
  {{/if}}
  <input type="hidden" data-hover-adv value="{{hoverAdvJson}}"/>
  <input type="hidden" data-hover-presets value="{{presetsJson}}"/>
  <input type="hidden" data-is-text value="{{#if isText}}1{{/if}}"/>

  {{#unless hideSound}}<fieldset class="bwlp-sound-field">
    <legend>{{localize "BWLP.HoverSound"}}</legend>
<div class="bwlp-sound-row">
      <input type="hidden" name="hoverSoundPreset" value="{{hoverSoundValue}}"/><span class="bwlp-sound-current" data-sound-current>{{hoverSoundDisplay}}</span><button type="button" data-action="chooseHoverSound"><i class="fas fa-list-ul"></i> {{localize "BWLP.SoundChoose"}}</button>
      <button type="button" class="bwlp-preview" data-action="previewHoverSound" data-tooltip="{{localize 'BWLP.SoundPreview'}}"><i class="fas fa-volume-high"></i></button>
    </div>
    <div class="bwlp-file-row"><input type="text" name="hoverSoundPath" value="{{hoverSoundPath}}" placeholder="{{localize 'BWLP.SoundCustomPath'}}"/><button type="button" data-action="browseHoverSound"><i class="fas fa-folder-open"></i> {{localize "BWLP.SoundUpload"}}</button></div>
    <p class="notes">{{localize "BWLP.SoundHint"}}</p>
  </fieldset>{{/unless}}
</div>
