- {% for item in api_data %}
-
{{ item.team.name }}
-
-
- {% for member in item.team.members %}
-
- {% if member.user.username == user.username %}
- {{user.username}} |
+ {% for item in api_data %}
+ {{ item.team.name }}
+
+
+ {% for member in item.team.members %}
+
+ {% if member.user.username == user.username %}
+ {{user.username}} |
+ {% else %}
+ {{ member.user.username }} |
+ {% endif %}
+
+ {% for day in day_range %}
+
+ {% check_absences absence_dates|get_key:member.user.username year month_num day as check_absence %}
+ {% check_absences recurring_absence_dates|get_key:member.user.username year month_num day as check_recurring_absence %}
+ {% check_half_day half_days_data|get_key:member.user.username year month_num day as check_half_day %}
+ {% if check_recurring_absence %}
+ |
+ {% elif check_absence %}
+ |
+ {% elif check_half_day == "A" %}
+ |
+ {% elif check_half_day == "M" %}
+ |
{% else %}
- {% check_permissions member request.user as editable %}
- {% if editable %}
- {{member.user.username}}* |
+ {% if day in bank_hol %}
+ |
+ {% elif day in weekend_list %}
+ |
{% else %}
- {{member.user.username}} |
+ |
{% endif %}
{% endif %}
- {% for day in day_range %}
-
- {% check_absences absence_dates|get_key:member.user.username year month_num day as check_absence %}
- {% check_absences recurring_absence_dates|get_key:member.user.username year month_num day as check_recurring_absence %}
- {% check_half_day half_days_data|get_key:member.user.username year month_num day as check_half_day %}
- {% if check_recurring_absence %}
- |
- {% elif check_absence %}
- |
- {% elif check_half_day == "A" %}
- |
- {% elif check_half_day == "M" %}
- |
- {% else %}
- {% if day in bank_hol and bank_holidays.enabled %}
- |
- {% elif day in weekend_list and weekends.enabled %}
- |
- {% elif day in weekend_list and not weekends.enabled %}
- |
- {% else %}
- |
- {% endif %}
- {% endif %}
-
- {% endfor %}
-
-
{% endfor %}
-
-
- {% endfor %}
-
+
+
+ {% endfor %}
+
+
+ {% endfor %}
{% else %}
@@ -510,34 +343,5 @@
{{ it
-
-
-
-
+
-
-{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/api_pages/teams.html b/ap_src/templates/api_pages/teams.html
deleted file mode 100644
index 006cdb91..00000000
--- a/ap_src/templates/api_pages/teams.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% load static %}
-
-
Teams
- {% for team in team_data %}
-
-
-
{{team.name}}
- {{team.count}}
-
{{ team.description }}
-
-
-
-
-
-
- {% endfor %}
-
-
\ No newline at end of file
diff --git a/ap_src/templates/calendars/calendar.html b/ap_src/templates/calendars/calendar.html
deleted file mode 100644
index f212fe44..00000000
--- a/ap_src/templates/calendars/calendar.html
+++ /dev/null
@@ -1,190 +0,0 @@
-{% extends 'base.html' %}
-{% load get_key %}
-{% load check_absences %}
-{% load check_half_day %}
-{% load check_permissions %}
-{% block title %}Calendar{% endblock %}
-{% load static %}
-{% block content %}
-
-
-
-{% include 'ap_app/elements/confirmation_modal.html' with title='Absence Calendar Information' type='info' %}
-{% include 'ap_app/elements/confirmation_modal.html' with title='Remove Absence' type='remove' %}
-{% include 'ap_app/elements/confirmation_modal.html' with title='Half Day Absence' type='half' %}
-
-
-
-
Absence Calendar
-
-
-
-
-
- {% include 'calendars/calendar_nav.html' with name='all_calendar' %}
-
-
-
-
-
-
-
-
- {% if team_data %}
-
-
- |
- {% for day in days_name %}
- {% if day == Sa and weekends.enabled or day == Su and weekends.enabled %}
- {{day}} |
- {% elif day == Sa and not weekends.enabled or day == Su and not weekends.enabled %}
- |
- {% elif forloop.counter in bank_hol and bank_holidays.enabled %}
- {{day}} |
- {% else %}
- {{day}} |
- {% endif %}
- {% endfor %}
-
-
- |
- {% for day in day_range %}
- {% if day == today and month == current_month and year == current_year %}
- {{day}} |
- {% elif day in bank_hol and bank_holidays.enabled %}
- {{day}} |
- {% elif day in weekend_list and weekends.enabled %}
- {{day}} |
- {% elif day in weekend_list and not weekends.enabled %}
- |
- {% else %}
- {{day}} |
- {% endif %}
- {% endfor %}
-
-
- {% if team_data|length > 0 %}
-
- {% for item in team_data %}
-
{{ item.team.name }}
-
-
- {% for member in item.team.members %}
-
- {% if member.user.username == user.username %}
- {{user.username}} |
- {% else %}
- {% check_permissions member request.user as editable %}
- {% if editable %}
- {{member.user.username}}* |
- {% else %}
- {{member.user.username}} |
- {% endif %}
- {% endif %}
-
- {% for day in day_range %}
-
- {% check_absences absence_dates|get_key:member.user.username year month_num day as check_absence %}
- {% check_absences recurring_absence_dates|get_key:member.user.username year month_num day as check_recurring_absence %}
- {% check_half_day half_days_data|get_key:member.user.username year month_num day as check_half_day %}
- {% if check_recurring_absence %}
- |
- {% elif check_absence %}
- |
- {% elif check_half_day == "A" %}
- |
- {% elif check_half_day == "M" %}
- |
- {% else %}
- {% if day in bank_hol and bank_holidays.enabled %}
- |
- {% elif day in weekend_list and weekends.enabled %}
- |
- {% elif day in weekend_list and not weekends.enabled %}
- |
- {% else %}
- |
- {% endif %}
- {% endif %}
-
- {% endfor %}
-
-
- {% endfor %}
-
-
- {% endfor %}
-
- {% else %}
-
-
- You are not in any teams.
-
-
- {% endif %}
- {% else %}
-
-
-
No teams were found.
-
-
-
- {% endif %}
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/calendars/calendar_nav.html b/ap_src/templates/calendars/calendar_nav.html
deleted file mode 100644
index 9516b36b..00000000
--- a/ap_src/templates/calendars/calendar_nav.html
+++ /dev/null
@@ -1,121 +0,0 @@
-{% load static %}
-
-
-
-
-{% if previous_current_year == year and month == current_month %}
-
-
-
-
-
-{% else %}
-
-{% endif %}
-
-{% if next_current_year == year and month == current_month %}
-
-
-
-
-
-{% else %}
-
-{% endif %}
-
-
- Toggle Clickable Calendar
-
-
-
-
- Calendar Key
-
-
-
-
{{ month }} {{ year }}
\ No newline at end of file
diff --git a/ap_src/templates/teams/calendar.html b/ap_src/templates/teams/calendar.html
index 640cfaad..feeaabed 100644
--- a/ap_src/templates/teams/calendar.html
+++ b/ap_src/templates/teams/calendar.html
@@ -41,6 +41,12 @@
{{team.name}}
+
+
+
+ 0
+
+
{% endif %}
Leave
@@ -196,8 +202,7 @@ {{team.name}}
|
{% for day in days_name %}
{% if day == Sa or day == Su%}
- {%comment%}{{day}} | {%endcomment%}
- |
+ {{day}} |
{% else %}
{{day}} |
{% endif %}
diff --git a/ap_src/templates/teams/create_team.html b/ap_src/templates/teams/create_team.html
index 082c4dde..3fa5e2ff 100644
--- a/ap_src/templates/teams/create_team.html
+++ b/ap_src/templates/teams/create_team.html
@@ -13,28 +13,27 @@
Create a Team
- {% if api_enabled %}
-
-{% comment %}
{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/teams/edit_team.html b/ap_src/templates/teams/edit_team.html
deleted file mode 100644
index 853cb65c..00000000
--- a/ap_src/templates/teams/edit_team.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{% extends "base.html" %}
-{% load bulma_tags %}
-{% load static %}
-{% block title %}Edit Team{% endblock %}
-
-{% block content %}
-
-
{{ team.name }}
-
{{ team.description }}
-
-
-
-
- Members
-
- {% for role in roles %}
-
{{ role }}s
-
- {% for member in team.members %}
- {% if member.user.role_info.role == role.role %}
-
- {{ member.user.username }}
-
- {% endif %}
- {% endfor %}
-
- {% endfor %}
-
-
-
-
- Team Management
-
-
-
Danger Zone:
-
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/teams/join_requests.html b/ap_src/templates/teams/join_requests.html
new file mode 100644
index 00000000..82d773df
--- /dev/null
+++ b/ap_src/templates/teams/join_requests.html
@@ -0,0 +1,33 @@
+{% extends 'base.html' %}
+{% load bulma_tags %}
+{% block title %}Settings{% endblock %}
+{% load static %}
+{% block content %}
+
+
+
+ Joining Requests |
+
+
+ {% for pending_rel in pending_rels %}
+
+
+
+ User: {{ pending_rel.user.username }}
+
+
+ Applied for: {{ pending_rel.role.role }}
+
+
+ |
+
+ {% endfor %}
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/teams/join_team.html b/ap_src/templates/teams/join_team.html
index 61ef148f..59015460 100644
--- a/ap_src/templates/teams/join_team.html
+++ b/ap_src/templates/teams/join_team.html
@@ -3,11 +3,6 @@
{% load static %}
{% block content %}
-{% if api_enabled %}
-{% include 'api_pages/teams.html' %}
-{% else %}
-
-
@@ -95,6 +90,4 @@
}
-
-{% endif %}
{% endblock %}
\ No newline at end of file
diff --git a/ap_src/templates/teams/settings.html b/ap_src/templates/teams/settings.html
index 4dbecb5e..0f2ee255 100644
--- a/ap_src/templates/teams/settings.html
+++ b/ap_src/templates/teams/settings.html
@@ -4,31 +4,6 @@
{% load static %}
{% block content %}
-
-
- Joining Requests |
-
-
- {% for pending_rel in pending_rels %}
-
-
-
- User: {{pending_rel.user.username}}
-
-
- Applied for: {{pending_rel.role.role}}
-
-
- |
-
- {% endfor %}
-
-
Users
diff --git a/example_env.txt b/example_env.txt
index 9464de7c..b0bdda2e 100644
--- a/example_env.txt
+++ b/example_env.txt
@@ -1,7 +1 @@
-TEAM_DATA_URL=http://localhost:8000/
-DEBUG=False
-PRODUCTION_UI=False
-DB_NAME = ""
-DB_USER = ""
-DB_PASSWORD = ""
-DB_HOST = ""
\ No newline at end of file
+TEAM_DATA_URL=http://localhost:8000/
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
index 28e939a8..cc634e45 100644
Binary files a/requirements.txt and b/requirements.txt differ