fix: BrandingConfig, Move: js directory

- Fix template rendering without BrandingConfig in some pages
- Moved JS file to static/js/ subdirectory
This commit is contained in:
Candifloss 2025-04-03 12:14:16 +05:30
parent 506515bf63
commit 8fa4841c53
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ def import_from_csv():
)
# Render the upload page for GET requests
return render_template('upload.html', mode="import")
return render_template('upload.html', mode="import", brandingconfig=BrandingConfig)
@upload_bp.route('/edit_using_csv/', methods=['GET', 'POST'])
@login_required
@ -136,4 +136,4 @@ def edit_using_csv():
)
# Render the upload page for GET requests
return render_template('upload.html', mode="edit")
return render_template('upload.html', mode="edit", brandingconfig=BrandingConfig)

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV Preview</title>
{% include 'favicon.html' %}
<script src="{{ url_for('static', filename='edited_csv.js') }}"></script>
<script src="{{ url_for('static', filename='js/edited_csv.js') }}"></script>
</head>
<body>
{% include 'header.html' %}