update
This commit is contained in:
BIN
backend/forms/__pycache__/auth_forms.cpython-314.pyc
Normal file
BIN
backend/forms/__pycache__/auth_forms.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/models/__pycache__/firmware_version.cpython-314.pyc
Normal file
BIN
backend/models/__pycache__/firmware_version.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/models/__pycache__/idrac_server.cpython-314.pyc
Normal file
BIN
backend/models/__pycache__/idrac_server.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/models/__pycache__/telegram_bot.cpython-314.pyc
Normal file
BIN
backend/models/__pycache__/telegram_bot.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/models/__pycache__/user.cpython-314.pyc
Normal file
BIN
backend/models/__pycache__/user.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/__init__.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/__init__.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/admin.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/admin.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/auth.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/auth.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/catalog_sync.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/catalog_sync.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/drm_sync.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/drm_sync.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/file_view.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/file_view.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/home.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/home.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/idrac_routes.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/idrac_routes.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/jobs.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/jobs.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/main.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/main.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/scp_routes.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/scp_routes.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/utilities.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/utilities.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/routes/__pycache__/xml.cpython-314.pyc
Normal file
BIN
backend/routes/__pycache__/xml.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/dell_catalog_sync.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/dell_catalog_sync.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/drm_catalog_sync.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/drm_catalog_sync.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/idrac_jobs.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/idrac_jobs.cpython-314.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/services/__pycache__/ip_processor.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/ip_processor.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/logger.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/logger.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/redfish_client.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/redfish_client.cpython-314.pyc
Normal file
Binary file not shown.
BIN
backend/services/__pycache__/watchdog_handler.cpython-314.pyc
Normal file
BIN
backend/services/__pycache__/watchdog_handler.cpython-314.pyc
Normal file
Binary file not shown.
@@ -240,81 +240,89 @@
|
||||
<h5 class="text-muted fw-normal">등록된 텔레그램 봇이 없습니다.</h5>
|
||||
<p class="text-muted small mb-4">우측 상단의 '봇 추가' 버튼을 눌러 알림을 설정하세요.</p>
|
||||
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addBotModal">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content border-0 shadow">
|
||||
<form action="{{ url_for('admin.add_bot') }}" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<div class="modal-header bg-light">
|
||||
<h5 class="modal-title fw-bold">
|
||||
<i class="bi bi-plus-circle me-2"></i>새 텔레그램 봇 추가
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">이름 (식별용)</label>
|
||||
<input type="text" class="form-control" name="name" placeholder="예: 알림용 봇"
|
||||
required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">Bot Token</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-key"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="token"
|
||||
placeholder="123456:ABC..." required>
|
||||
</div>
|
||||
<div class="form-text">BotFather에게 받은 API Token</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">Chat ID</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-chat-dots"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="chat_id"
|
||||
placeholder="-100..." required>
|
||||
</div>
|
||||
<div class="form-text">메시지를 받을 채팅방 ID (그룹은 음수)</div>
|
||||
</div>
|
||||
<i class="bi bi-plus-lg me-1"></i>봇 추가
|
||||
</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">알림 유형</label>
|
||||
<div class="d-flex gap-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types"
|
||||
value="auth" id="add_auth" checked>
|
||||
<label class="form-check-label" for="add_auth">
|
||||
인증
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types"
|
||||
value="activity" id="add_activity" checked>
|
||||
<label class="form-check-label" for="add_activity">
|
||||
활동
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types"
|
||||
value="system" id="add_system" checked>
|
||||
<label class="form-check-label" for="add_system">
|
||||
시스템
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="text-muted">선택한 알림 유형만 전송됩니다</small>
|
||||
</div>
|
||||
<!-- 봇 추가 모달 -->
|
||||
<div class="modal fade" id="addBotModal" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content border-0 shadow">
|
||||
<form action="{{ url_for('admin.add_bot') }}" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<div class="modal-header bg-light">
|
||||
<h5 class="modal-title fw-bold">
|
||||
<i class="bi bi-plus-circle me-2"></i>새 텔레그램 봇 추가
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">이름 (식별용)</label>
|
||||
<input type="text" class="form-control" name="name" placeholder="예: 알림용 봇" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">Bot Token</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-key"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="token"
|
||||
placeholder="123456:ABC..." required>
|
||||
</div>
|
||||
<div class="form-text">BotFather에게 받은 API Token</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">Chat ID</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="bi bi-chat-dots"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="chat_id"
|
||||
placeholder="-100..." required>
|
||||
</div>
|
||||
<div class="form-text">메시지를 받을 채팅방 ID (그룹은 음수)</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">설명</label>
|
||||
<textarea class="form-control" name="description" rows="2"
|
||||
placeholder="선택 사항"></textarea>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">알림 유형</label>
|
||||
<div class="d-flex gap-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types" value="auth"
|
||||
id="add_auth" checked>
|
||||
<label class="form-check-label" for="add_auth">
|
||||
인증
|
||||
</label>
|
||||
</div>
|
||||
<div class="modal-footer bg-light">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">취소</button>
|
||||
<button type="submit" class="btn btn-primary px-4">추가</button>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types" value="activity"
|
||||
id="add_activity" checked>
|
||||
<label class="form-check-label" for="add_activity">
|
||||
활동
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="notify_types" value="system"
|
||||
id="add_system" checked>
|
||||
<label class="form-check-label" for="add_system">
|
||||
시스템
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="text-muted">선택한 알림 유형만 전송됩니다</small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-semibold">설명</label>
|
||||
<textarea class="form-control" name="description" rows="2" placeholder="선택 사항"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer bg-light">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">취소</button>
|
||||
<button type="submit" class="btn btn-primary px-4">추가</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user