diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 936c4312..56d2ec67 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/input.css b/osinaweb/input.css index cb4514ca..07af5fc2 100644 --- a/osinaweb/input.css +++ b/osinaweb/input.css @@ -143,4 +143,12 @@ .swiper-slide { width: 90% !important; } +} + + + +@media screen and (max-width: 650px) { + #notesContainer { + display: block; + } } \ No newline at end of file diff --git a/osinaweb/static/dist/output.css b/osinaweb/static/dist/output.css index 97a8ac35..b26caf01 100644 --- a/osinaweb/static/dist/output.css +++ b/osinaweb/static/dist/output.css @@ -806,8 +806,8 @@ video { margin-top: 1.5rem; } -.mt-\[-63px\] { - margin-top: -63px; +.mt-\[-50px\] { + margin-top: -50px; } .mt-\[5\%\] { @@ -951,18 +951,10 @@ video { width: 13px; } -.w-\[15\%\] { - width: 15%; -} - .w-\[150px\] { width: 150px; } -.w-\[16\.33\%\] { - width: 16.33%; -} - .w-\[160px\] { width: 160px; } @@ -975,10 +967,6 @@ video { width: 220px; } -.w-\[23\%\] { - width: 23%; -} - .w-\[25\%\] { width: 25%; } @@ -1003,10 +991,6 @@ video { width: 30px; } -.w-\[35\%\] { - width: 35%; -} - .w-\[35px\] { width: 35px; } @@ -1039,8 +1023,8 @@ video { width: 60px; } -.w-\[74\.5\%\] { - width: 74.5%; +.w-\[70px\] { + width: 70px; } .w-\[80\%\] { @@ -1233,10 +1217,6 @@ video { gap: 1.25rem; } -.gap-\[2\.5\%\] { - gap: 2.5%; -} - .gap-y-2 { row-gap: 0.5rem; } @@ -2264,6 +2244,12 @@ video { } } +@media screen and (max-width: 650px) { + #notesContainer { + display: block; + } +} + .hover\:bg-blue-500:hover { --tw-bg-opacity: 1; background-color: rgb(59 130 246 / var(--tw-bg-opacity)); @@ -2319,10 +2305,34 @@ video { } @media (min-width: 650px) { + .s\:mt-\[-63px\] { + margin-top: -63px; + } + + .s\:flex { + display: flex; + } + + .s\:hidden { + display: none; + } + + .s\:h-\[100px\] { + height: 100px; + } + .s\:h-\[50px\] { height: 50px; } + .s\:h-\[55px\] { + height: 55px; + } + + .s\:w-\[100px\] { + width: 100px; + } + .s\:w-\[300px\] { width: 300px; } @@ -2357,6 +2367,11 @@ video { padding-right: 2.25rem; } + .s\:text-3xl { + font-size: 1.875rem; + line-height: 2.25rem; + } + .s\:text-xl { font-size: 1.25rem; line-height: 1.75rem; @@ -2437,21 +2452,9 @@ video { position: fixed; } - .xlg1\:block { - display: block; - } - - .xlg1\:hidden { - display: none; - } - .xlg1\:w-\[300px\] { width: 300px; } - - .xlg1\:w-\[74\.5\%\] { - width: 74.5%; - } } @media (min-width: 1300px) { @@ -2481,6 +2484,10 @@ video { display: none; } + .xxlg1\:w-\[74\.5\%\] { + width: 74.5%; + } + .xxlg1\:w-\[75\%\] { width: 75%; } diff --git a/osinaweb/static/js/daily-reports.js b/osinaweb/static/js/daily-reports.js new file mode 100644 index 00000000..2617639a --- /dev/null +++ b/osinaweb/static/js/daily-reports.js @@ -0,0 +1,13 @@ +document.addEventListener("DOMContentLoaded", function () { + var showReportButtons = document.querySelectorAll(".showReportButton"); + + // Iterate through each button and attach the click event + showReportButtons.forEach(function (button) { + button.addEventListener("click", function () { + // Find the related reportContainer based on the button's parent + var reportContainer = button.closest(".daily-report").querySelector(".reportContainer"); + + reportContainer.classList.toggle("hidden"); + }); + }); +}); \ No newline at end of file diff --git a/osinaweb/templates/add_pages/add-business.html b/osinaweb/templates/add_pages/add-business.html index 6e48f5c3..b91fc51d 100644 --- a/osinaweb/templates/add_pages/add-business.html +++ b/osinaweb/templates/add_pages/add-business.html @@ -2,7 +2,7 @@ {%load static%} {% block content %} -
Recent Note:
-Send an Email to Salim.
+Recent Note:
+{{recent_note.text}}
+Send an Email to Salim.
-Contact the client.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
+{{note.text}}
+Name: {{business.name}} @@ -126,11 +146,11 @@
Recent Note:
-Send an Email to Salim.
+Recent Note:
+{{recent_note.text}}
+Send an Email to Salim.
-Contact the client.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
+{{note.text}}
+Add daily report at the end of the day.
+{{customer.customer_id}}
{{customer.customer_id}}
{{customer.customer_id}}
First Name: Email: {{customer.user.email}}
Personal Website: {{customer.personal_website}}
Business:
-Name
-Business Type
-Financial number
-Actions
-Businesses
++ Name + | ++ Business Type + | ++ Financial Number + | ++ Actions + | +
---|
Recent Note:
-Send an Email to Salim.
+Recent Note:
+{{recent_note.text}}
+Send an Email to Salim.
-Contact the client.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
-Add daily report at the end of the day.
+{{note.text}}
+Mobile Number: {{staff.mobile_number}}
Position: {{staff.staff_position}}
+Position: {{staff.staff_position}}
Recent Note:
-Send an Email to Salim.
-Send an Email to Salim.
-Contact the client.
-Recent Note:
+Add daily report at the end of the day.
{{recent_note.text}}
+Add daily report at the end of the day.
-Add daily report at the end of the day.
-{{note.text}}
+Add daily report at the end of the day.
+Project: {{task.project.name}}
-Start Date: {{task.formatted_start_date}}
-End Date: {{task.formatted_end_date}}
-Epic: {{task.epic.title}}
-Project: {{task.project.name}}
+Assigned To: {{task.assigned_to.first_name}} {{task.assigned_to.last_name}}
-Start Date: {{task.formatted_start_date}}
+Extra: {{task.extra}}
-End Date: {{task.formatted_end_date}}
+Status: - {% if task.status == 'Closed' %} - {{task.status}} - {% endif %} - {% if task.status == 'Open' %} - {{task.status}} - {% endif %} - {% if project.status == 'Working on' %} - {{task.status}} - {% endif %} -
-Epic: {{task.epic.title}}
+Related Files: Documentation.pdf, Project.doc -
-Assigned To: {{task.assigned_to.first_name}} + {{task.assigned_to.last_name}}
+Extra: {{task.extra}}
+Status: + {% if task.status == 'Closed' %} + {{task.status}} + {% endif %} + {% if task.status == 'Open' %} + {{task.status}} + {% endif %} + {% if project.status == 'Working on' %} + {{task.status}} + {% endif %} +
+Related Files: Documentation.pdf, + Project.doc +
+Points:
-Points
++ Point + | ++ Status + | +|
---|---|---|
+ {{point.text}} + |
{% if point.status == 'Not Completed' %}
- ||
+ No Available Points + | +
Nataly
-6-9-2023
-360 minutes
-Salim
-12-9-2023
-200 minutes
-Salim
-12-9-2023
-200 minutes
-Reine
-12-9-2023
-200 minutes
-Description:
++ {{task.description}} +
+Description:
-- {{task.description}} -
-Tags:
+Tags:
-Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Recent Note:
-Recent Note:
+{{recent_note.text}}
{{recent_note.text}}
Connected Users
-14
-14 Connected
+