diff --git a/django_project/myapp/templates/myapp/group_create.html b/django_project/myapp/templates/myapp/group_create.html index 3017595604d87f84ae93de4f80911891a76c0044..c55d83fb084668692bf576d55df4f2698e3aa2b2 100644 --- a/django_project/myapp/templates/myapp/group_create.html +++ b/django_project/myapp/templates/myapp/group_create.html @@ -1,14 +1,14 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>Create Group</title> -</head> -<body> +{% extends 'myapp/base.html' %} + +{% block title %}Create Group{% endblock %} + +{% block content %} <h1>Create Group</h1> + {% if error %} <p style="color: red;">{{ error }}</p> {% endif %} + <form method="post"> {% csrf_token %} <label for="id_name">Group Name:</label> @@ -16,7 +16,8 @@ <br><br> <button type="submit">Create Group</button> </form> - <p><a href="{% url 'group_list' %}">Back to Group List</a></p> -</body> -</html> + + <p><a href="{% url 'group_list' %}" style="color: #007bff; text-decoration: none;">← Back to Group List</a></p> +{% endblock %} + diff --git a/django_project/myapp/templates/myapp/group_list.html b/django_project/myapp/templates/myapp/group_list.html index 9c012dc5f98672513480e6be6a485cd03e055a45..1e37207b1d18a56ff91fcac573ecbe78b6a74325 100644 --- a/django_project/myapp/templates/myapp/group_list.html +++ b/django_project/myapp/templates/myapp/group_list.html @@ -20,5 +20,9 @@ <li>No groups available.</li> {% endfor %} </ul> - + <div style="margin-top: 20px;"> + <a href="{% url 'group_create' %}" style="display: inline-block; padding: 10px 15px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px;"> + + Create New Group + </a> +</div> {% endblock %} diff --git a/docker-compose.yml b/docker-compose.yml index 2a246a779dc8a3c2143812fcab490e204a825a03..8310a9ae006fb8a60ac229ffcd1f2c2ad950d156 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: condition: service_healthy volumes: - ./media:/app/media - - static_volume:/app/staticfiles # ✅ Make sure this volume exists + - static_volume:/app/staticfiles ports: - "8000:8000" environment: @@ -34,5 +34,5 @@ services: CSRF_TRUSTED_ORIGINS: "http://localhost:8000, http://127.0.0.1:8000" volumes: - pgdata: {} # ✅ Keeps PostgreSQL data persistent - static_volume: {} # ✅ Defines the missing static volume + pgdata: {} + static_volume: {}