Files
scrying-pool/templates/settings.hbs
T
uberwald 6bbde5c1cf
CI / ci (push) Successful in 46s
Add settings panel with strip reopen button and AV disabled notification
Features:
- Added ScryingPoolSettings application with reopen/close strip buttons
- Registered settings menu in module settings (GM only)
- Added template for settings panel with styled buttons
- Added translations for settings UI
- Added info notification when AV is not available

Files:
- src/ui/gm/ScryingPoolSettings.js: New settings application
- templates/settings.hbs: Settings panel template
- lang/en.json: Added translations
- module.js: Registered settings menu and AV notification

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-25 15:57:58 +02:00

54 lines
1.5 KiB
Handlebars

<form class="scrying-pool-settings-form">
<div class="form-group">
<h2>{{localize "SCRYING_POOL.Settings.Title"}}</h2>
<p class="hint">{{localize "SCRYING_POOL.Settings.Hint"}}</p>
</div>
<div class="form-group">
<label>{{localize "SCRYING_POOL.Settings.StripStatus"}}</label>
{{#if hasStrip}}
<button type="button" data-action="close-strip" class="scrying-pool-btn scrying-pool-btn-close">
<i class="fa-solid fa-eye-slash"></i> {{localize "SCRYING_POOL.Settings.CloseStrip"}}
</button>
{{else}}
<button type="button" data-action="reopen-strip" class="scrying-pool-btn scrying-pool-btn-reopen">
<i class="fa-solid fa-eye"></i> {{localize "SCRYING_POOL.Settings.ReopenStrip"}}
</button>
{{/if}}
</div>
<style>
.scrying-pool-settings-form {
padding: 15px;
}
.scrying-pool-settings-form .form-group {
margin-bottom: 15px;
}
.scrying-pool-settings-form .hint {
color: var(--text-muted);
font-size: 0.9em;
}
.scrying-pool-btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
display: inline-flex;
align-items: center;
gap: 8px;
}
.scrying-pool-btn-reopen {
background-color: var(--success);
color: white;
}
.scrying-pool-btn-close {
background-color: var(--danger);
color: white;
}
.scrying-pool-btn:hover {
opacity: 0.9;
}
</style>
</form>