Skip to content
Snippets Groups Projects
Commit c8ead774 authored by James2Tulloch's avatar James2Tulloch
Browse files

Groups frontend

parent d12bbbd8
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html> {% extends 'myapp/base.html' %}
<html lang="en">
<head> {% block title %}Create Group{% endblock %}
<meta charset="UTF-8">
<title>Create Group</title> {% block content %}
</head>
<body>
<h1>Create Group</h1> <h1>Create Group</h1>
{% if error %} {% if error %}
<p style="color: red;">{{ error }}</p> <p style="color: red;">{{ error }}</p>
{% endif %} {% endif %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
<label for="id_name">Group Name:</label> <label for="id_name">Group Name:</label>
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<br><br> <br><br>
<button type="submit">Create Group</button> <button type="submit">Create Group</button>
</form> </form>
<p><a href="{% url 'group_list' %}">Back to Group List</a></p>
</body> <p><a href="{% url 'group_list' %}" style="color: #007bff; text-decoration: none;">← Back to Group List</a></p>
</html> {% endblock %}
...@@ -20,5 +20,9 @@ ...@@ -20,5 +20,9 @@
<li>No groups available.</li> <li>No groups available.</li>
{% endfor %} {% endfor %}
</ul> </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 %} {% endblock %}
...@@ -24,7 +24,7 @@ services: ...@@ -24,7 +24,7 @@ services:
condition: service_healthy condition: service_healthy
volumes: volumes:
- ./media:/app/media - ./media:/app/media
- static_volume:/app/staticfiles # ✅ Make sure this volume exists - static_volume:/app/staticfiles
ports: ports:
- "8000:8000" - "8000:8000"
environment: environment:
...@@ -34,5 +34,5 @@ services: ...@@ -34,5 +34,5 @@ services:
CSRF_TRUSTED_ORIGINS: "http://localhost:8000, http://127.0.0.1:8000" CSRF_TRUSTED_ORIGINS: "http://localhost:8000, http://127.0.0.1:8000"
volumes: volumes:
pgdata: {} # ✅ Keeps PostgreSQL data persistent pgdata: {}
static_volume: {} # ✅ Defines the missing static volume static_volume: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment