Deploy on 2026-06-05 15:59:38
This commit is contained in:
@@ -31,11 +31,17 @@
|
||||
<label class="form-label" style="margin: 0;"><?= $t['telegram_enabled'] ?? 'Enable' ?></label>
|
||||
<input type="checkbox" name="telegram_enabled" value="1" <?= $tg_enabled === '1' ? 'checked' : '' ?> style="width: 20px; height: 20px;">
|
||||
</div>
|
||||
<div style="display: flex; gap: 12px; margin-top: 16px;">
|
||||
<div style="display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap;">
|
||||
<button type="submit" name="action" value="save" class="btn btn-primary"><?= $t['save'] ?? 'Save' ?></button>
|
||||
<button type="submit" name="action" value="test" class="btn btn-secondary"><?= $t['test_notification'] ?? 'Send Test' ?></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form action="/admin/settings/test-telegram" method="POST" style="margin-top: 12px;">
|
||||
<input type="hidden" name="_csrf" value="<?= $this->session->getCsrfToken() ?>">
|
||||
<input type="hidden" name="telegram_bot_token" value="<?= $this->escape($tg_token) ?>">
|
||||
<input type="hidden" name="telegram_chat_id" value="<?= $this->escape($tg_chat_id) ?>">
|
||||
<button type="submit" class="btn btn-secondary"><?= $t['test_notification'] ?? 'Send Test' ?></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Help Info -->
|
||||
|
||||
Reference in New Issue
Block a user