diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 3586da5b..c961face 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/input.css b/osinaweb/input.css index 81f3fbb7..8a5242bc 100644 --- a/osinaweb/input.css +++ b/osinaweb/input.css @@ -203,4 +203,9 @@ to { transform: translateY(0); } +} + +/* TO HIGHLIGHT THE SELECTED EMOJI CATEGORY */ +.selectedEmojiCategory { + background-color: rgba(128, 128, 128, 0.265); } \ No newline at end of file diff --git a/osinaweb/osinacore/__pycache__/urls.cpython-311.pyc b/osinaweb/osinacore/__pycache__/urls.cpython-311.pyc index bcdf921c..a0bcfc07 100644 Binary files a/osinaweb/osinacore/__pycache__/urls.cpython-311.pyc and b/osinaweb/osinacore/__pycache__/urls.cpython-311.pyc differ diff --git a/osinaweb/osinacore/__pycache__/views.cpython-311.pyc b/osinaweb/osinacore/__pycache__/views.cpython-311.pyc index 4534c9c0..8612f561 100644 Binary files a/osinaweb/osinacore/__pycache__/views.cpython-311.pyc and b/osinaweb/osinacore/__pycache__/views.cpython-311.pyc differ diff --git a/osinaweb/osinacore/add/__pycache__/views.cpython-311.pyc b/osinaweb/osinacore/add/__pycache__/views.cpython-311.pyc index 005f8b41..1ec6a402 100644 Binary files a/osinaweb/osinacore/add/__pycache__/views.cpython-311.pyc and b/osinaweb/osinacore/add/__pycache__/views.cpython-311.pyc differ diff --git a/osinaweb/osinacore/add/views.py b/osinaweb/osinacore/add/views.py index 755a2909..18ee3ef9 100644 --- a/osinaweb/osinacore/add/views.py +++ b/osinaweb/osinacore/add/views.py @@ -523,7 +523,6 @@ def add_daily_report(request): if request.method == 'POST': text = request.POST.get('text') current_datetime = datetime.now() - date = datetime.now().date() time = current_datetime.strftime("%I:%M %p") try: staff_profile = StaffProfile.objects.get(user=request.user) @@ -531,28 +530,23 @@ def add_daily_report(request): # Handle the case where a StaffProfile does not exist for the user staff_profile = None - dailyreport = DailyReport( - text = text, - date = date, - time = time, - staff = staff_profile + text=text, + date=today, + time=time, + staff=staff_profile ) dailyreport.save() - return redirect('dailyreports') context = { 'statuses': statuses, - - } return render(request, 'add_templates/add-daily-report.html', context) - def add_projecttype_modal(request, *args, **kwargs): if request.method == 'POST': name = request.POST.get('name') diff --git a/osinaweb/osinacore/templates/add-edit-main.html b/osinaweb/osinacore/templates/add-edit-main.html new file mode 100644 index 00000000..ce39d50d --- /dev/null +++ b/osinaweb/osinacore/templates/add-edit-main.html @@ -0,0 +1,656 @@ +{% load static %} + + + +
+ + +You are Currently Offline
+Accounts
+My Work
+Projects
+Tasks
+Tickets
+Notes
+Daily Reports
+Support
+Billing
+Utilities
+Project Types
+Staff Positions
+Business Types
+References
+Tags
+Countries
+Activity
+Powered By OSITCOM
+Copyrights © 2024 All Rights Reserved
+{{request.user.first_name}} {{request.user.last_name}}
+ + +Logout
+Accounts
+My Work
+My Projects
+My Tasks
+My Tickets
+My Notes
+Daily Reports
+Support
+Billing
+Utilities
+Project Types
+Staff Positions
+Business Types
+References
+Tags
+Countries
+Activity
+{{request.user.first_name}} {{request.user.last_name}}
+ + +Logout
+Recent Status
+Tasks
+{{total_tasks}}
+Projects
+2
+Tickets
+2
+Powered By OSITCOM
+Copyrights © 2024 All Rights Reserved
+-
-Recent Note:
-{{recent_note.text}}
-My Notes
- - -- {{ note.text }} -
-- {{ note.text }} -
-Name: {{business.name}} +
Name: {{business.name}} -
-Email: {{business.email}}
-Financial Number: {{business.financial_number}}
-VAT: {{business.vat}} -
-Commercial Registration: {{business.commercial_registration}}
-Phone Number: {{business.phone_number}}
-Website: {{business.website}}
-Email: {{business.email}}
+Business Type: {{business.type.name}}
-Financial Number: {{business.financial_number}}
+Related Customer: - {% for customer_profile in business.customerprofile_set.all %} - {{ - customer_profile.user.first_name }} {{customer_profile.user.last_name}} - {% if not forloop.last %}, {% endif %} - - {%endfor%} +
VAT: {{business.vat}} +
+Commercial Registration: {{business.commercial_registration}}
+Phone Number: {{business.phone_number}}
Website: {{business.website}}
Business Type: {{business.type.name}}
14 - Connected User
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Related Customer: + {% for customer_profile in business.customerprofile_set.all %} + {{ + customer_profile.user.first_name }} {{customer_profile.user.last_name}} + {% if not forloop.last %}, {% endif %} + + {%endfor%} + +
-
-{{customer.customer_id}}
Recent Note:
-{{recent_note.text}}
-My Notes
- - -{{customer.customer_id}}
+{{customer.customer_id}}
+First Name: {{customer.user.first_name}}
+- {{ note.text }} -
-Last Name: {{customer.user.last_name}}
+- {{ note.text }} -
-Email: {{customer.user.email}}
Personal Website: {{customer.personal_website}}
+{{customer.customer_id}}
+Status: {{customer.status}}
{{customer.customer_id}}
+Status: {{customer.status}}
{{customer.customer_id}}
+Status: {{customer.status}}
Reference: {{customer.reference}}
First Name: {{customer.user.first_name}}
-Last Name: {{customer.user.last_name}}
-Email: {{customer.user.email}}
-Personal Website: {{customer.personal_website}}
-Status: {{customer.status}}
-Status: {{customer.status}}
-Status: {{customer.status}}
+ ++ Name + | ++ Business Type + | ++ Financial Number + | ++ Actions + | +||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ {{ business.name }} + |
+
+
+ {{ business.business_type }} + |
+
+
+ {{ business.financial_number }} + |
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- Businesses -
-
-
- {% if latest_statuses_time_ago %}
-
-
- {% else %}
- Users Activity-
-
- {% include 'recent-activities.html' %}
-
-
-
-
- {% endif %}
-
-
- Users Activity-
-
- {% include 'recent-activities.html' %}
-
-
-
-
+
-
+
-
-
- 14 - Connected User -
-
-
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
-
-
-
- Salim Elliye -
-
- ![]()
+
+
+ |
+
{{project.project_id}}
+{{project.project_id}}
+{{project.project_id}}
+{{project.project_id}}
+{{project.id}}
- --
- -Recent Note:
-{{recent_note.text}}
-My Notes
- -- {{ note.text }} -
-- {{ note.text }} -
-{{project.project_id}}
-{{project.project_id}}
-{{project.project_id}}
-{{project.project_id}}
+ class="w-full md:w-fit text-base px-3 py-2 bg-transparent text-osiblue outline-none border border-osiblue duration-300 rounded-md cursor-pointer hover:bg-osiblue hover:text-white">Create + Task + + +{{project.id}}
- - -Client: {{project.customer.user.first_name}} + {{project.customer.user.last_name}}
Project Manager: {{project.manager.user.first_name}} + {{project.manager.last_name}}
Client: {{project.customer.user.first_name}} - {{project.customer.user.last_name}}
-Project Manager: {{project.manager.user.first_name}} - {{project.manager.last_name}}
-Member(s): + {% for member in project.members.all %} + + {{member.user.first_name}} {{member.user.last_name}} {% if not forloop.last %}, {% endif %} + {% endfor %} +
+Type: + {% for type in project.project_type.all %} + + {{type.name}} {% if not forloop.last %}, {% endif %} + {% endfor %} +
+Member(s): - {% for member in project.members.all %} - - {{member.user.first_name}} {{member.user.last_name}} {% if not forloop.last %}, {% endif %} - {% endfor %} -
-Status: + {% if project.status == 'Cancelled' %} + {{project.status}} + {% endif %} + {% if project.status == 'Completed' %} + {{project.status}} + {% endif %} + {% if project.status == 'Active' %} + {{project.status}} + {% endif %} + {% if project.status == 'Pending' %} + {{project.status}} + {% endif %} +
+Type: - {% for type in project.project_type.all %} - - {{type.name}} {% if not forloop.last %}, {% endif %} - {% endfor %} -
-Start Date: {{project.start_date}}
+Status: - {% if project.status == 'Cancelled' %} - {{project.status}} - {% endif %} - {% if project.status == 'Completed' %} - {{project.status}} - {% endif %} - {% if project.status == 'Active' %} - {{project.status}} - {% endif %} - {% if project.status == 'Pending' %} - {{project.status}} - {% endif %} -
-End Date: {{project.end_date}}
+Start Date: {{project.start_date}}
+Project Details:
++ {{project.details}} +
+End Date: {{project.end_date}}
-Project Details:
-- {{project.details}} -
+ +User Stories
+ Story + | ++ Related Task + | ++ Actions + | +|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ {{requirement.content}} + |
+
+
+ {% if requirement.task_set.all %}
+ {% for task in requirement.task_set.all %}
+ {{task.name}}
+ {% endfor %}
+ {%else%}
+ None + {% endif %} + + |
+
+
+
+
+
+
+
-
-
-
-
+
-
-
-
-
-
- User Stories -
|
+ |||||||||
+ No Requirements at the moment + | +
Credentials
+ Email or Username + | ++ Password + | ++ Used For + | +
---|---|---|
+ {{credential.emailorusername}} + |
+
+ + {{credential.password}} + | + ++ {{credential.usedfor}} + | +
+ No Available Credentials + | +
Credentials
+Related files
- Email or Username - | -- Password - | -- Used For - | -
---|---|---|
- {{credential.emailorusername}} - |
-
- - {{credential.password}} - | - -- {{credential.usedfor}} - | -
- No Available Credentials - | -
+ File Name + | ++ File + | ++ Date Entered + | +
---|---|---|
+ {{file.name}} + |
+
+ + {{file.file}} + | + ++ {{file.date}} + | +
+ No Available Files + | +
Related files
-Notes
- File Name - | -- File - | -- Date Entered - | -
---|---|---|
- {{file.name}} - |
-
- - {{file.file}} - | - -- {{file.date}} - | -
- No Available Files - | -
Notes
-+ Note + | ++ Date + | ++ Added By + | ++ Actions + | +
---|---|---|---|
+ {{ note.text }} + |
+
+
+ {{ note.date }} + |
+
+
+ {{ note.user.username }} + |
+
+
+
+
+
+
+ |
+
- Note - | -- Date - | -- Added By - | -- Actions - | -
---|---|---|---|
- {{ note.text }} - |
-
-
- {{ note.date }} - |
-
-
- {{ note.user.username }} - |
-
-
-
-
-
-
- |
-
- No Available Notes - | -
Tags:
-Tags:
+Filter Tasks by Epics
-|
- {% for epic in epics %} -|
- {% endfor %} + +Filter Tasks by Epics
+14 - Connected User
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
--
- -Recent Note:
-{{recent_note.text}}
-My Notes
- - -- {{ note.text }} -
-- {{ note.text }} -
-Username: {{staff.user.username}}
First Name: {{staff.user.first_name}}
Username: {{staff.user.username}}
-First Name: {{staff.user.first_name}}
-Last Name: {{staff.user.last_name}}
-Email: {{staff.user.email}}
-Mobile Number: {{staff.mobile_number}}
-Last Name: {{staff.user.last_name}}
+Email: {{staff.user.email}}
+Mobile Number: {{staff.mobile_number}}
+Position: {{staff.staff_position}}
-Active: {{staff.active}}
-Intern: {{staff.intern}}
-Position: {{staff.staff_position}}
Active: {{staff.active}}
14 - Connected User
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Intern: {{staff.intern}}
-
- -Recent Note:
-{{recent_note.text}}
-My Notes
- - -- {{ note.text }} -
-- {{ note.text }} -
-Project: {{task.project.name}}
Start Date: {{task.start_date}}
+End Date: {{task.end_date}}
Epic: {{task.epic.title}}
Assigned To: {{task.assigned_to.user.first_name}} + {{task.assigned_to.user.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 %} +
+Project: {{task.project.name}}
-Related Files: Documentation.pdf, + Project.doc +
+Start Date: {{task.start_date}}
-End Date: {{task.end_date}}
-Points
+Epic: {{task.epic.title}}
+Assigned To: {{task.assigned_to.user.first_name}} - {{task.assigned_to.user.last_name}}
-+ Point + | ++ Status + | +||
---|---|---|---|
+ {{point.text}} + |
+
+ {% if point.status == 'Not Completed' %}
+
+
+
+
+
+
+ |
+ {% endif %}
- + + | + {% endif %} -
+
+
+
+
+
+ |
+ {% endif %}
+
+ No Available Points + | +
Related Files: Documentation.pdf, - Project.doc -
-Points
+Timline
{{point.text}}
+Description:
-- {{task.description}} -
-Description:
++ {{task.description}} +
Tags:
-Tags:
+14 - Connected User
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-Salim Elliye
-{{epic.start_date}} - {{epic.end_date}}
+
{{epic.start_date}} - {{epic.end_date}} +
{{task.name}}
-{{task.name}}
-{{task.name}}
{{task.status}}
-{{task.status}}
{{task.status}}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white {% if task.status == 'Open' %}bg-secondosiblue{% endif %} {% if task.status == 'Working On' %}bg-yellow-500{% endif %} {% if task.status == 'Closed' %}bg-green-700{% endif %}"> +{{task.start_date|date:"d, m, Y"}}
{{task.formatted_start_date}}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white {% if task.status == 'Open' %}bg-secondosiblue{% endif %} {% if task.status == 'Working On' %}bg-yellow-500{% endif %} {% if task.status == 'Closed' %}bg-green-700{% endif %} rounded-tr-md"> +{{task.start_date}}
{{task.formatted_start_date}}
+ +Project:
+{{task.project.name}}
+Epic:
+{{task.epic.title}}
+Assigned To:
+{{task.assigned_to.user.first_name}} + {{task.assigned_to.user.last_name}}
+Files:
+ +Tags:
+ +Extra:
+{{task.extra}}
+{{task.formatted_start_date}}
-{{task.formatted_end_date}}
-{{task.formatted_end_date}}
-{{task.formatted_end_date}}
-{{task.formatted_end_date}}
-{{task.formatted_end_date}}
-{{task.formatted_end_date}}
-{{task.name}}
-{{task.name}}
{{task.status}}
{{task.status}}
-{{task.start_date}}
{{task.start_date}}
-{{task.end_date}}
-{{task.end_date}}