Add: Favicon
Add favicon to BrandingConfig
This commit is contained in:
parent
4ffc68d5f2
commit
506515bf63
@ -4,10 +4,10 @@ from definitions.attributes import *
|
|||||||
class BrandingConfig:
|
class BrandingConfig:
|
||||||
APP_NAME = "Inventory Manager"
|
APP_NAME = "Inventory Manager"
|
||||||
TAGLINE = "Inventory management system"
|
TAGLINE = "Inventory management system"
|
||||||
|
|
||||||
# Logo paths (relative to static folder)
|
# Logo paths (relative to static folder)
|
||||||
LOGIN_LOGO = "images/logo_large.png" # ~400x200px recommended
|
LOGIN_LOGO = "images/logo_large.png" # ~400x200px recommended
|
||||||
HEADER_LOGO = "images/logo_small.png" # ~100x50px recommended
|
HEADER_LOGO = "images/logo_small.png" # ~100x50px recommended
|
||||||
|
FAVICON = "images/favicon.ico" # or .png/.svg
|
||||||
|
|
||||||
# MySQL information
|
# MySQL information
|
||||||
class sql_conf:
|
class sql_conf:
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<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' %}
|
||||||
<script src="{{ url_for('static', filename='edited_csv.js') }}"></script>
|
<script src="{{ url_for('static', filename='edited_csv.js') }}"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Delete Item</title>
|
<title>Delete Item</title>
|
||||||
|
{% include 'favicon.html' %}
|
||||||
</head>
|
</head>
|
||||||
<body align="center">
|
<body align="center">
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
|
2
templates/favicon.html
Normal file
2
templates/favicon.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<link rel="icon" href="{{ url_for('static', filename=brandingconfig.FAVICON) }}" type="image/x-icon">
|
||||||
|
<link rel="shortcut icon" href="{{ url_for('static', filename=brandingconfig.FAVICON) }}" type="image/x-icon">
|
@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{% if item %}Update{% else %}Add{% endif %} Item</title>
|
<title>{% if item %}Update{% else %}Add{% endif %} Item</title>
|
||||||
|
{% include 'favicon.html' %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ brandingconfig.APP_NAME }} - Login</title>
|
<title>{{ brandingconfig.APP_NAME }} - Login</title>
|
||||||
|
{% include 'favicon.html' %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Upload CSV File</title>
|
<title>Upload CSV File</title>
|
||||||
|
{% include 'favicon.html' %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>View Inventory</title>
|
<title>View Inventory</title>
|
||||||
|
|
||||||
|
{% include 'favicon.html' %}
|
||||||
</head>
|
</head>
|
||||||
<body align="center">
|
<body align="center">
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
@ -37,21 +39,5 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- br>
|
|
||||||
<form action="/create" method="get">
|
|
||||||
<button type="submit">Add new Item</button>
|
|
||||||
</form>
|
|
||||||
<form action="/import_from_csv" method="get">
|
|
||||||
<button type="submit">Import from CSV</button>
|
|
||||||
</form>
|
|
||||||
<form action="/edit_using_csv" method="get">
|
|
||||||
<button type="submit">Edit using CSV</button>
|
|
||||||
</form>
|
|
||||||
<form action="/export_csv" method="POST">
|
|
||||||
<button type="submit">Export Data</button>
|
|
||||||
</form>
|
|
||||||
<form action="/logout" method="get">
|
|
||||||
<button type="submit">Logout</button>
|
|
||||||
</form -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user