122 lines
7.5 KiB
HTML
122 lines
7.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>TCGPlayer Order Management</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<script>
|
|
tailwind.config = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['Inter', 'sans-serif'],
|
|
},
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="bg-gray-900 min-h-screen text-gray-100">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
<div class="bg-gray-800 rounded-xl shadow-sm p-6 mb-8">
|
|
<h1 class="text-3xl font-bold text-gray-100 mb-2">TCGPlayer Order Management</h1>
|
|
<p class="text-gray-400">Manage your TCGPlayer orders efficiently</p>
|
|
</div>
|
|
|
|
<!-- Order Actions Section -->
|
|
<div class="bg-gray-800 rounded-xl shadow-sm p-6 mb-8">
|
|
<h2 class="text-xl font-semibold text-gray-100 mb-6">Order Actions</h2>
|
|
<div class="flex flex-wrap gap-4 mb-4">
|
|
<button onclick="generatePullSheets()" class="px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors">
|
|
Generate Pull Sheets
|
|
</button>
|
|
<button onclick="generatePackingSlips()" class="px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2 transition-colors">
|
|
Generate Packing Slips
|
|
</button>
|
|
<button onclick="generateAddressLabels()" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition-colors">
|
|
Generate Address Labels
|
|
</button>
|
|
<button onclick="generateReturnLabels()" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition-colors">
|
|
Generate Return Labels
|
|
</button>
|
|
<button onclick="showPirateShipModal()" class="px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition-colors">
|
|
Upload Pirate Ship Label
|
|
</button>
|
|
</div>
|
|
<div id="labelOptions" class="bg-gray-700 rounded-lg p-4">
|
|
<label class="block text-sm font-medium text-gray-300 mb-2">Label Type</label>
|
|
<select id="labelType" class="rounded-lg border-gray-600 bg-gray-800 text-gray-100 focus:ring-blue-500 focus:border-blue-500">
|
|
<option value="dk1201">DK1201</option>
|
|
<option value="dk1241">DK1241</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Return Labels Modal -->
|
|
<div id="returnLabelsModal" class="fixed inset-0 bg-black bg-opacity-50 hidden items-center justify-center">
|
|
<div class="bg-gray-800 rounded-lg p-6 max-w-md w-full mx-4">
|
|
<h3 class="text-xl font-semibold text-gray-100 mb-4">Generate Return Labels</h3>
|
|
<div class="mb-4">
|
|
<label for="numberOfLabels" class="block text-sm font-medium text-gray-300 mb-2">Number of Labels</label>
|
|
<input type="number" id="numberOfLabels" min="1" value="1" class="w-full rounded-lg border-gray-600 bg-gray-700 text-gray-100 focus:ring-blue-500 focus:border-blue-500">
|
|
</div>
|
|
<div class="flex justify-end space-x-3">
|
|
<button onclick="closeReturnLabelsModal()" class="px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors">
|
|
Cancel
|
|
</button>
|
|
<button onclick="submitReturnLabels()" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition-colors">
|
|
Generate
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Pirate Ship Label Modal -->
|
|
<div id="pirateShipModal" class="fixed inset-0 bg-black bg-opacity-50 hidden items-center justify-center">
|
|
<div class="bg-gray-800 rounded-lg p-6 max-w-md w-full mx-4">
|
|
<h3 class="text-xl font-semibold text-gray-100 mb-4">Upload Pirate Ship Label</h3>
|
|
<div class="mb-4">
|
|
<label for="pirateShipFile" class="block text-sm font-medium text-gray-300 mb-2">Select PDF File</label>
|
|
<input type="file" id="pirateShipFile" accept=".pdf" class="w-full rounded-lg border-gray-600 bg-gray-700 text-gray-100 focus:ring-blue-500 focus:border-blue-500">
|
|
</div>
|
|
<div class="flex justify-end space-x-3">
|
|
<button onclick="closePirateShipModal()" class="px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors">
|
|
Cancel
|
|
</button>
|
|
<button onclick="submitPirateShipLabel()" class="px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition-colors">
|
|
Upload & Print
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Order List Section -->
|
|
<div class="bg-gray-800 rounded-xl shadow-sm p-6">
|
|
<div class="flex items-center justify-between mb-6">
|
|
<h2 class="text-xl font-semibold text-gray-100">Orders</h2>
|
|
<div class="flex items-center space-x-4">
|
|
<select id="searchRange" class="rounded-lg border-gray-600 bg-gray-800 text-gray-100 focus:ring-blue-500 focus:border-blue-500">
|
|
<option value="LastWeek" selected>Last Week</option>
|
|
<option value="LastMonth">Last Month</option>
|
|
<option value="LastThreeMonths">Last Three Months</option>
|
|
<option value="LastFourMonths">Last Four Months</option>
|
|
<option value="LastTwoYears">Last Two Years</option>
|
|
</select>
|
|
<label class="flex items-center space-x-2">
|
|
<input type="checkbox" id="openOnly" class="rounded border-gray-600 bg-gray-800 text-blue-600 focus:ring-blue-500" checked>
|
|
<span class="text-gray-300">Show Open Orders Only</span>
|
|
</label>
|
|
<button onclick="selectAllOrders()" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors">
|
|
Select All Orders
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div id="ordersList" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div>
|
|
</div>
|
|
</div>
|
|
<script src="/app.js"></script>
|
|
</body>
|
|
</html> |