diff --git a/src/api/base/views.py b/src/api/base/views.py index 792d066..4167861 100644 --- a/src/api/base/views.py +++ b/src/api/base/views.py @@ -50,7 +50,6 @@ def logout_view(request): def dashboard(request): # Date ranges today = timezone.now().date() - week_ago = today - timedelta(days=7) month_ago = today - timedelta(days=30) # Core metrics diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..5b281e5 Binary files /dev/null and b/static/favicon.ico differ diff --git a/templates/clients/client_form.html b/templates/clients/client_form.html new file mode 100644 index 0000000..ec483b7 --- /dev/null +++ b/templates/clients/client_form.html @@ -0,0 +1,10 @@ +{% extends "shared/base.html" %} +{% load static %} +{% block content %} +{% include "shared/navbar.html" %} + +
+ {% include "clients/partials/client_form.html" %} +
+ +{% endblock %} \ No newline at end of file diff --git a/templates/clients/client_list.html b/templates/clients/client_list.html new file mode 100644 index 0000000..295f790 --- /dev/null +++ b/templates/clients/client_list.html @@ -0,0 +1,10 @@ +{% extends "shared/base.html" %} +{% load static %} +{% block content %} +{% include "shared/navbar.html" %} + +
+ {% include "clients/partials/client_list.html" %} +
+ +{% endblock %} \ No newline at end of file diff --git a/templates/clients/partials/client_form.html b/templates/clients/partials/client_form.html new file mode 100644 index 0000000..83586e4 --- /dev/null +++ b/templates/clients/partials/client_form.html @@ -0,0 +1,247 @@ +
+ + + + + +
+ {% csrf_token %} + + {% if form.non_field_errors %} +
+ {{ form.non_field_errors }} +
+ {% endif %} + + +
+
+
+ + + {% if form.name.errors %} +

{{ form.name.errors.0 }}

+ {% endif %} +
+
+ + + {% if form.short_code.errors %} +

{{ form.short_code.errors.0 }}

+ {% endif %} +
+
+
+
+ + + {% if form.company_name.errors %} +

{{ form.company_name.errors.0 }}

+ {% endif %} +
+
+
+ + + + + + + + +
+
+ Cancel + +
+ + +
+
+
+ + \ No newline at end of file diff --git a/templates/clients/partials/client_list.html b/templates/clients/partials/client_list.html new file mode 100644 index 0000000..f3460ef --- /dev/null +++ b/templates/clients/partials/client_list.html @@ -0,0 +1,53 @@ +
+ + + + + + + + + + + + + + {% for client in clients %} + + + + + + + + + {% empty %} + + + + {% endfor %} + +
+
+
+ Clients +

Manage your client base, view details, and track + interactions.

+
+ Add + Client +
+
NameCompanyEmailPhoneShort CodeActions
+ {{ client.name }} + {{ client.company_name }}{{ client.email }}{{ client.phone }}{{ client.short_code }} + Edit +
+ {% csrf_token %} + +
+
No clients found.
+
\ No newline at end of file