test / partners.html
untenson's picture
Remove time of today's actions, remove the chart from today's actions. - Initial Deployment
8c5f3c2 verified
Raw History Blame Contribute Delete
33.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Partners - MediTrack</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar-collapsed {
width: 70px;
}
.sidebar-expanded {
width: 250px;
}
.main-content {
transition: margin-left 0.3s;
}
.partner-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.highlight-warning {
animation: pulse-warning 2s infinite;
}
@keyframes pulse-warning {
0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-expanded bg-indigo-800 text-white flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<h1 class="text-xl font-bold whitespace-nowrap">MediTrack</h1>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i data-feather="chevron-left"></i>
</button>
</div>
<nav class="flex-1 overflow-y-auto">
<ul class="py-2">
<li>
<a href="index.html" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="home" class="mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
</li>
<li>
<a href="#" class="flex items-center px-4 py-3 text-white bg-indigo-900">
<i data-feather="users" class="mr-3"></i>
<span class="sidebar-text">Partners</span>
</a>
</li>
<li>
<a href="projects.html" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="briefcase" class="mr-3"></i>
<span class="sidebar-text">Projects</span>
</a>
</li>
<li>
<a href="smart-task.html" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="message-square" class="mr-3"></i>
<span class="sidebar-text">Smart Task</span>
</a>
</li>
<li>
<a href="calendar.html" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="calendar" class="mr-3"></i>
<span class="sidebar-text">Calendar</span>
</a>
</li>
<li>
<a href="portfolio.html" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="package" class="mr-3"></i>
<span class="sidebar-text">Product Portfolio</span>
</a>
</li>
</ul>
</nav>
<div class="p-4 border-t border-indigo-700">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full">
<div class="ml-3 sidebar-text">
<p class="text-sm font-medium">John Doe</p>
<p class="text-xs text-indigo-300">Admin</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="px-4 py-4 flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Partners</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search partners..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<button onclick="openModal('addPartnerModal')" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 flex items-center">
<i data-feather="plus" class="mr-2"></i> Add Partner
</button>
</div>
</div>
</header>
<!-- Partners Content -->
<main class="p-6">
<!-- Filters -->
<div class="mb-6 bg-white rounded-lg shadow p-4">
<div class="flex flex-wrap items-center gap-4">
<div class="flex-1 min-w-[200px]">
<label class="block text-sm font-medium text-gray-700 mb-1">Business Model</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">All Models</option>
<option value="distribution">Distribution</option>
<option value="out-licensing">Out-licensing</option>
</select>
</div>
<div class="flex-1 min-w-[200px]">
<label class="block text-sm font-medium text-gray-700 mb-1">Country</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">All Countries</option>
<option value="germany">Germany</option>
<option value="france">France</option>
<option value="spain">Spain</option>
</select>
</div>
<div class="flex-1 min-w-[200px]">
<label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">All Statuses</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
<div class="flex items-end">
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">Apply Filters</button>
</div>
</div>
</div>
<!-- Partners Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Partner 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card">
<div class="p-6">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/1" alt="Partner Logo" class="w-16 h-16 rounded-full object-cover">
<div class="ml-4">
<h3 class="text-xl font-semibold text-gray-800">PharmaCorp</h3>
<p class="text-sm text-gray-600">Germany</p>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">3</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€1.2M</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Target Price:</span>
<span class="font-medium">€0.85/unit</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Out-licensing</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 2 days ago</span>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye"></i>
</button>
<button class="text-blue-600 hover:text-blue-800">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Partner 2 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card highlight-warning">
<div class="p-6">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/2" alt="Partner Logo" class="w-16 h-16 rounded-full object-cover">
<div class="ml-4">
<h3 class="text-xl font-semibold text-gray-800">HealthPlus</h3>
<p class="text-sm text-gray-600">France</p>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">2</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium text-red-500">Missing</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Target Price:</span>
<span class="font-medium">€1.10/unit</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Distribution</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 1 week ago</span>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye"></i>
</button>
<button class="text-blue-600 hover:text-blue-800">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Partner 3 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card">
<div class="p-6">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/3" alt="Partner Logo" class="w-16 h-16 rounded-full object-cover">
<div class="ml-4">
<h3 class="text-xl font-semibold text-gray-800">MedLife</h3>
<p class="text-sm text-gray-600">Spain</p>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">1</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€750K</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Target Price:</span>
<span class="font-medium">€0.95/unit</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Out-licensing</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 3 weeks ago</span>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye"></i>
</button>
<button class="text-blue-600 hover:text-blue-800">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Partner 4 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card">
<div class="p-6">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/4" alt="Partner Logo" class="w-16 h-16 rounded-full object-cover">
<div class="ml-4">
<h3 class="text-xl font-semibold text-gray-800">BioPharm</h3>
<p class="text-sm text-gray-600">Italy</p>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">2</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€890K</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Target Price:</span>
<span class="font-medium">€1.05/unit</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Out-licensing</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 5 days ago</span>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye"></i>
</button>
<button class="text-blue-600 hover:text-blue-800">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Partner 5 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card">
<div class="p-6">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/5" alt="Partner Logo" class="w-16 h-16 rounded-full object-cover">
<div class="ml-4">
<h3 class="text-xl font-semibold text-gray-800">GenRx</h3>
<p class="text-sm text-gray-600">UK</p>
</div>
</div>
<div class="mt-6">
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">1</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€620K</span>
</div>
<div class="flex justify-between text-sm mb-2">
<span class="text-gray-500">Target Price:</span>
<span class="font-medium">€0.90/unit</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Distribution</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 2 weeks ago</span>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="eye"></i>
</button>
<button class="text-blue-600 hover:text-blue-800">
<i data-feather="edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Add New Partner Card -->
<div class="bg-white rounded-lg shadow border-2 border-dashed border-gray-300 flex items-center justify-center cursor-pointer hover:border-indigo-500 hover:bg-indigo-50" onclick="openModal('addPartnerModal')">
<div class="text-center p-6">
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 text-indigo-600 mb-3">
<i data-feather="plus"></i>
</div>
<h3 class="text-lg font-medium text-gray-900">Add New Partner</h3>
<p class="mt-1 text-sm text-gray-500">Click to add a new partner to your network</p>
</div>
</div>
</div>
<!-- Pagination -->
<div class="mt-8 flex items-center justify-between">
<div>
<p class="text-sm text-gray-700">Showing <span class="font-medium">1</span> to <span class="font-medium">6</span> of <span class="font-medium">42</span> partners</p>
</div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i data-feather="chevron-left" class="h-5 w-5"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700"> ... </span>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 8 </a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i data-feather="chevron-right" class="h-5 w-5"></i>
</a>
</nav>
</div>
</main>
</div>
</div>
<!-- Add Partner Modal -->
<div id="addPartnerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">Add New Partner</h3>
<button onclick="closeModal('addPartnerModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-name">Partner Name*</label>
<input id="partner-name" type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-hq">HQ Location*</label>
<input id="partner-hq" type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-country">Country*</label>
<select id="partner-country" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
<option value="">Select Country</option>
<option value="germany">Germany</option>
<option value="france">France</option>
<option value="spain">Spain</option>
<option value="italy">Italy</option>
<option value="uk">United Kingdom</option>
</select>
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-model">Business Model*</label>
<select id="partner-model" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
<option value="">Select Model</option>
<option value="distribution">Distribution</option>
<option value="out-licensing">Out-licensing</option>
</select>
</div>
<div id="license-fee-field" class="hidden">
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-license">License Fee (%)</label>
<input id="partner-license" type="number" min="0" max="100" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
</div>
<div class="mt-6">
<h4 class="text-md font-medium text-gray-800 mb-3">Forecast Data</h4>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="forecast-y1">Year 1 (€)</label>
<input id="forecast-y1" type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="forecast-y2">Year 2 (€)</label>
<input id="forecast-y2" type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-2" for="forecast-y3">Year 3 (€)</label>
<input id="forecast-y3" type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
</div>
</div>
<div class="mt-6">
<label class="block text-gray-700 text-sm font-medium mb-2" for="partner-notes">Notes</label>
<textarea id="partner-notes" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
</div>
<div class="mt-8 flex justify-end space-x-3">
<button type="button" onclick="closeModal('addPartnerModal')" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">Cancel</button>
<button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">Save Partner</button>
</div>
</form>
</div>
</div>
</div>
<!-- View Partner Modal -->
<div id="viewPartnerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-4xl">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">Partner Details</h3>
<button onclick="closeModal('viewPartnerModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<!-- Partner Info -->
<div class="md:col-span-1">
<div class="flex flex-col items-center">
<img src="http://static.photos/office/200x200/1" alt="Partner Logo" class="w-24 h-24 rounded-full object-cover mb-4">
<h3 class="text-xl font-semibold text-gray-800">PharmaCorp</h3>
<p class="text-sm text-gray-600 mb-2">Germany</p>
<span class="px-3 py-1 bg-indigo-100 text-indigo-800 text-xs font-medium rounded-full">Active</span>
</div>
<div class="mt-6">
<h4 class="font-medium text-gray-800 mb-3">Contact Information</h4>
<div class="space-y-2">
<div class="flex items-center text-sm text-gray-600">
<i data-feather="mail" class="mr-2 w-4 h-4"></i>
<span>contact@pharmacorp.de</span>
</div>
<div class="flex items-center text-sm text-gray-600">
<i data-feather="phone" class="mr-2 w-4 h-4"></i>
<span>+49 30 1234567</span>
</
</body>
</html>