You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
8.5 KiB
HTML
184 lines
8.5 KiB
HTML
{% extends "main.html" %}
|
|
{%load static%}
|
|
{% block title %}My Projects{% endblock %}
|
|
{% block content %}
|
|
|
|
<!-- USERS ACTIVITIES ON MOBILE -->
|
|
<div class="w-[55px] h-[55px] bg-slate-700 rounded-full fixed xxlg1:hidden bottom-3 right-3 p-2 flex justify-center items-center cursor-pointer usersActivityIcon z-20"
|
|
data-modal-url="{% url 'getupdatedactivities' %}">
|
|
<img src="{% static 'images/usersactivity.png' %}" alt="Users">
|
|
</div>
|
|
|
|
<!-- NOTES SECTION -->
|
|
<div class="w-full px-5 s:px-9 pb-5">
|
|
<div class="w-full h-fit bg-white shadow-md rounded-md p-5">
|
|
<div class="w-full flex flex-col s:flex-row justify-between gap-3 s:gap-0 items-center">
|
|
<div class="w-full s:w-fit flex justify-between items-center">
|
|
<div>
|
|
<p class="text-base text-gray-500">Recent Note:</p>
|
|
<div class="flex justify-start items-center gap-2">
|
|
<div class="w-[13px] h-[13px] bg-red-200 rounded-full"
|
|
style="background-color: {{ recent_note.color }};">
|
|
|
|
</div>
|
|
<p class="text-slate-700">{{recent_note.text}}</p>
|
|
</div>
|
|
</div>
|
|
<button
|
|
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex s:hidden justify-center items-center shadow-md addNoteButton"
|
|
data-modal-url="{% url 'addnote' %}">
|
|
<i class="fa fa-plus"></i>
|
|
</button>
|
|
</div>
|
|
<div class="w-full s:w-fit hidden s:flex justify-start s:justify-end items-center gap-4">
|
|
<button
|
|
class="w-full s:w-fit rounded-md py-1 px-3 bg-slate-800 border border-slate-800 text-white hover:bg-white hover:text-slate-800"
|
|
id="showNotesButton">Show
|
|
Notes</button>
|
|
<button
|
|
class="w-[35px] h-[35px] rounded-full p-2 bg-gray-300 text-white text-[20px] outline-none border-none cursor-pointer flex justify-center items-center shadow-md addNoteButton"
|
|
data-modal-url="{% url 'addnote' %}">
|
|
<i class="fa fa-plus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ALL NOTES CONTAINER (it appears when clicking on the "Show notes" button) -->
|
|
<div class="w-full h-fit mt-5 hidden" id="notesContainer">
|
|
|
|
<div class="w-full hidden lg:grid grid-cols-3 xlg:grid-cols-6 gap-3">
|
|
{% for note in notes %}
|
|
<div class="h-[150px] shadow-sm p-5" style="background-color: {{note.color}}">
|
|
<p class="text-base text-slate-800">{{note.text}}</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="w-full black lg:hidden">
|
|
<div class="swiper-container mt-5">
|
|
<div class="swiper-wrapper">
|
|
{% for note in notes %}
|
|
<div class="swiper-slide">
|
|
<div class="w-full h-[150px] p-3 flex justify-start items-start"
|
|
style="background-color: {{note.color}}">
|
|
{{note.text}}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- USER DETAIL AND USERS ACTIVITY SECTION -->
|
|
<div class="w-full flex justify-between gap-5 px-5 s:px-9 pb-5">
|
|
|
|
<!-- LEFT SIDE / USER DETAIL SECTION -->
|
|
<div class="w-full xxlg1:w-[75%] bg-white h-fit rounded-md shadow-md p-5">
|
|
<div class="w-full bg-gray-300 rounded-t-md flex flex-col justify-center items-center py-2 gap-3 mt-[50px]">
|
|
<div class="w-[70px] s:w-[100px] h-[70px] s:h-[100px] rounded-full mt-[-50px] border border-gray-300">
|
|
<img src="{{staff.image.url}}" alt="" class="w-full h-full object-cover rounded-full">
|
|
</div>
|
|
<h1 class="text-3xl text-white font-semibold">{{staff.first_name}} {{staff.last_name}}</h1>
|
|
</div>
|
|
<div class="w-full h-fit flex justify-end items-center bg-gray-100 shadow-md rounded-md px-3 py-3 mt-4">
|
|
<div class="w-full s:w-fit flex flex-col s:flex-row justify-end items-center gap-3">
|
|
<button
|
|
class="w-full s:w-fit text-base px-3 py-2 bg-red-500 text-white outline-none border border-red-500 rounded-md cursor-pointer hover:bg-white hover:text-red-500 deleteStaffButton" data-modal-url="{% url 'deletestaffmodal' staff.id %}" >Delete
|
|
User</button>
|
|
<a href="{% url 'editstaff' staff.staff_id %}" class="w-full s:w-fit">
|
|
<button
|
|
class="w-full s:w-fit text-base px-3 py-2 bg-blue-500 text-white outline-none border border-blue-500 rounded-md cursor-pointer hover:bg-white hover:text-blue-500">Edit
|
|
User</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="w-full flex flex-col gap-4 mt-5">
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Username: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.user.username}}</span></p>
|
|
</div>
|
|
<div>
|
|
<p class="text-gray-500 text-xl">First Name: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.user.first_name}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Last Name: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.user.last_name}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Email: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.user.email}}</span></p>
|
|
</div>
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Mobile Number: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.mobile_number}}</span></p>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Position: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.staff_position}}</span></p>
|
|
</div>
|
|
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Active: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.active}}</span></p>
|
|
</div>
|
|
<div>
|
|
<p class="text-gray-500 text-xl">Intern: <span
|
|
class="text-slate-800 text-xl font-semibold">{{staff.intern}}</span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- RIGHT SIDE / USERS ACTIVITY -->
|
|
{% if latest_statuses_time_ago %}
|
|
<div class="hidden xxlg1:block w-[25%] bg-white h-[630px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
|
|
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
|
|
<div class="w-full h-fit mt-2" id="activitiesContainer">
|
|
|
|
{% include 'recent-activities.html' %}
|
|
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="hidden xxlg1:block w-[25%] bg-white h-[305px] overflow-y-auto overflow-hidden rounded-md shadow-md p-5">
|
|
<h1 class="text-2xl text-slate-700 text-center font-semibold">USERS ACTIVITY</h1>
|
|
<div class="w-full h-fit mt-2" id="activitiesContainer">
|
|
|
|
{% include 'recent-activities.html' %}
|
|
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- POPUP MODAL -->
|
|
<div class="w-full h-full bg-black bg-opacity-40 z-20 fixed justify-center items-center hidden" id="popUpModal">
|
|
<div class="w-[95%] md:w-fit h-fit bg-white rounded-md p-9 relative">
|
|
<button class="absolute top-3 right-5 text-slate-800 text-xl cursor-pointer outline-none border-none"
|
|
id="closeModalButton">
|
|
<i class="fa fa-close"></i>
|
|
</button>
|
|
<iframe id="popupModalFrame" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" src='{% static "js/pop-modals.js" %}'></script>
|
|
</div>
|
|
|
|
|
|
<!---------------------- JS SCRIPTS -------------------->
|
|
|
|
<!-- TO SHOW ALL THE ADDED NOTES BY THE USER WHEN CLICKING ON THE SHOW NOTES BUTTON -->
|
|
<script type="text/javascript" src='{% static "js/show-notes.js" %}'></script>
|
|
|
|
<!-- THE SCRIPT FOR THE EPICS BAR -->
|
|
<script type="text/javascript" src='{% static "js/epics.js" %}'></script>
|
|
{% endblock content %} |