diff --git a/py_app/app/static/style.css b/py_app/app/static/style.css index a694b56..583ab04 100644 --- a/py_app/app/static/style.css +++ b/py_app/app/static/style.css @@ -676,4 +676,18 @@ body.dark-mode .export-description { padding: 8px; text-align: left; border: 1px solid #ddd; /* Add borders to table cells */ +} + +.go-to-main-etichete-btn { + background-color: #28a745; /* Green background */ + color: #fff; /* White text */ + padding: 10px 20px; + border-radius: 5px; + text-decoration: none; + margin-left: 10px; + transition: background-color 0.3s ease; +} + +.go-to-main-etichete-btn:hover { + background-color: #218838; /* Darker green on hover */ } \ No newline at end of file diff --git a/py_app/app/templates/base.html b/py_app/app/templates/base.html index 4d8dd19..9304b16 100644 --- a/py_app/app/templates/base.html +++ b/py_app/app/templates/base.html @@ -26,6 +26,9 @@
+ {% if request.endpoint in ['main.upload_data', 'main.print_module', 'main.label_templates', 'main.create_template'] %} + Main Page Etichete + {% endif %} Go to Dashboard {% if 'user' in session %} You are logged in as {{ session['user'] }} diff --git a/py_app/app/templates/create_template.html b/py_app/app/templates/create_template.html index 7574426..020c300 100644 --- a/py_app/app/templates/create_template.html +++ b/py_app/app/templates/create_template.html @@ -3,40 +3,48 @@ {% block title %}Create Template{% endblock %} {% block content %} +
-
- +
-

Dimensions

-

Set the dimensions of the label template:

-
- - - - - - - -
-
- - -
-

Get Database Headers

-

Retrieve column names from a selected database table:

- -
- +

Template Settings

+

Set the dimensions and retrieve database headers for the label template:

+ + +
+

Dimensions

+
+
+ + +
+
+ + +
+ +
-
- + +
+ + +
+

Get Database Headers

+

Retrieve column names from a selected database table:

+ +
+ +
+
+ +
-
- +

Interactive Label Preview

Preview the label with selected headers:

diff --git a/py_app/app/templates/label_templates.html b/py_app/app/templates/label_templates.html index 846f0d3..0a167f4 100644 --- a/py_app/app/templates/label_templates.html +++ b/py_app/app/templates/label_templates.html @@ -3,29 +3,19 @@ {% block title %}Label Templates{% endblock %} {% block content %} -
-

Manage Label Templates

-

This page will allow users to manage and configure label templates.

- - -
+

List of Label Templates

-

Below is the list of existing label templates:

-
    - -
  • - Template 1 - - -
  • -
  • - Template 2 +
      + {% for template in templates %} +
    • + {{ template.name }}
    • + {% endfor %}
    - +
{% endblock %} \ No newline at end of file