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:
parent
506515bf63
commit
8fa4841c53
@ -95,7 +95,7 @@ def import_from_csv():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Render the upload page for GET requests
|
# 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'])
|
@upload_bp.route('/edit_using_csv/', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@ -136,4 +136,4 @@ def edit_using_csv():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Render the upload page for GET requests
|
# Render the upload page for GET requests
|
||||||
return render_template('upload.html', mode="edit")
|
return render_template('upload.html', mode="edit", brandingconfig=BrandingConfig)
|
@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>CSV Preview</title>
|
<title>CSV Preview</title>
|
||||||
{% include 'favicon.html' %}
|
{% 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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user