- Flask Blueprint 아키텍처로 전환 (dashboard, upload, backup, status) - app.py 681줄 95줄로 축소 (86% 감소) - HTML 템플릿 모듈화 (base.html + 기능별 templates) - CSS/JS 파일 분리 (common + 기능별 파일) - 대시보드 기능 추가 (통계, 주간 예보, 방문객 추이) - 파일 업로드 웹 인터페이스 구현 - 백업/복구 관리 UI 구현 - Docker 배포 환경 개선 - .gitignore 업데이트 (uploads, backups, cache 등)
34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}백업 관리 - First Garden POS{% endblock %}
|
|
|
|
{% block extra_css %}
|
|
<link href="{{ url_for('static', filename='css/backup.css') }}" rel="stylesheet">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="tab-pane fade show active" id="backup-panel" role="tabpanel">
|
|
<div style="display: flex; gap: 10px; margin-bottom: 20px;">
|
|
<button class="btn btn-success btn-custom" onclick="createBackup()">
|
|
<i class="bi bi-plus-circle"></i> 새 백업 생성
|
|
</button>
|
|
<button class="btn btn-info btn-custom" onclick="loadBackupList()">
|
|
<i class="bi bi-arrow-clockwise"></i> 새로고침
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 백업 목록 -->
|
|
<div id="backup-list"></div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extra_js %}
|
|
<script src="{{ url_for('static', filename='js/backup.js') }}"></script>
|
|
<script>
|
|
// 백업 관리 UI 초기화
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
loadBackupList();
|
|
});
|
|
</script>
|
|
{% endblock %}
|