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:
|
||||
APP_NAME = "Inventory Manager"
|
||||
TAGLINE = "Inventory management system"
|
||||
|
||||
# Logo paths (relative to static folder)
|
||||
LOGIN_LOGO = "images/logo_large.png" # ~400x200px recommended
|
||||
HEADER_LOGO = "images/logo_small.png" # ~100x50px recommended
|
||||
FAVICON = "images/favicon.ico" # or .png/.svg
|
||||
|
||||
# MySQL information
|
||||
class sql_conf:
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Delete Item</title>
|
||||
{% include 'favicon.html' %}
|
||||
</head>
|
||||
<body align="center">
|
||||
{% 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>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% if item %}Update{% else %}Add{% endif %} Item</title>
|
||||
{% include 'favicon.html' %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ brandingconfig.APP_NAME }} - Login</title>
|
||||
{% include 'favicon.html' %}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Upload CSV File</title>
|
||||
{% include 'favicon.html' %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
|
@ -3,6 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>View Inventory</title>
|
||||
|
||||
{% include 'favicon.html' %}
|
||||
</head>
|
||||
<body align="center">
|
||||
{% include 'header.html' %}
|
||||
@ -37,21 +39,5 @@
|
||||
{% endfor %}
|
||||
</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>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user