Spaces:
Running
Running
Download index.html from neal9834/ace-drywall-time-clock: direct link, hf CLI and curl.
- Browser
- Download file 38.7 kB
-
https://huggingface.co/spaces/neal9834/ace-drywall-time-clock/resolve/main/index.html
- Command line
-
hf download hf://spaces/neal9834/ace-drywall-time-clock/index.html
-
curl -L -o index.html https://huggingface.co/spaces/neal9834/ace-drywall-time-clock/resolve/main/index.html
38.7 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Ace Drywall & Construction Tracker</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* Custom styles */ | |
| .bottom-nav { | |
| position: fixed; | |
| bottom: 0; | |
| width: 100%; | |
| z-index: 100; | |
| } | |
| .map-container { | |
| height: 300px; | |
| background-color: #e5e7eb; | |
| position: relative; | |
| } | |
| .activity-select { | |
| appearance: none; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; | |
| background-position: right 0.5rem center; | |
| background-size: 1.5em; | |
| } | |
| .slide-in { | |
| animation: slideIn 0.3s forwards; | |
| } | |
| @keyframes slideIn { | |
| from { transform: translateX(100%); } | |
| to { transform: translateX(0); } | |
| } | |
| .training-step { | |
| counter-increment: step-counter; | |
| position: relative; | |
| padding-left: 3rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .training-step::before { | |
| content: counter(step-counter); | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| background-color: #3b82f6; | |
| color: white; | |
| width: 2rem; | |
| height: 2rem; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-weight: bold; | |
| } | |
| .training-section { | |
| counter-reset: step-counter; | |
| } | |
| .access-badge { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| font-size: 0.7rem; | |
| padding: 0.2rem 0.5rem; | |
| border-radius: 1rem; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 pb-20"> | |
| <!-- Header with role switcher --> | |
| <header class="bg-blue-600 text-white p-4 shadow-md"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-hard-hat text-2xl mr-2"></i> | |
| <h1 class="text-xl font-bold">Ace Drywall Tracker</h1> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="relative mr-3"> | |
| <select id="role-selector" class="bg-blue-700 text-white text-sm rounded px-2 py-1 pr-7 appearance-none"> | |
| <option value="admin">Admin</option> | |
| <option value="supervisor">Supervisor</option> | |
| <option value="employee" selected>Employee</option> | |
| </select> | |
| <i class="fas fa-chevron-down absolute right-2 top-1/2 transform -translate-y-1/2 text-xs"></i> | |
| </div> | |
| <button id="notifications" class="mr-4 relative"> | |
| <i class="fas fa-bell text-xl"></i> | |
| <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span> | |
| </button> | |
| <img src="https://via.placeholder.com/40" alt="Profile" class="rounded-full"> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="p-4"> | |
| <!-- Dashboard View --> | |
| <div id="dashboard-view"> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <h2 class="text-lg font-semibold mb-2">Current Jobsite</h2> | |
| <div class="map-container rounded-lg mb-3 flex items-center justify-center"> | |
| <i class="fas fa-map-marker-alt text-4xl text-red-500"></i> | |
| <div class="absolute bottom-2 left-2 bg-white p-2 rounded shadow"> | |
| <span class="text-sm font-medium">123 Main St, Anytown</span> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <p class="text-gray-600 text-sm">Project: <span class="font-medium">Office Building</span></p> | |
| <p class="text-gray-600 text-sm">Supervisor: <span class="font-medium">John Smith</span></p> | |
| </div> | |
| <button class="bg-blue-600 text-white px-3 py-1 rounded text-sm">Details</button> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <h2 class="text-lg font-semibold mb-3">Employee Activity</h2> | |
| <div class="space-y-3"> | |
| <div class="flex items-center p-2 border-b"> | |
| <img src="https://via.placeholder.com/40" alt="Employee" class="rounded-full mr-3"> | |
| <div class="flex-1"> | |
| <p class="font-medium">Mike Johnson</p> | |
| <p class="text-sm text-gray-600">Framing - 2h 45m</p> | |
| </div> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">On Site</span> | |
| </div> | |
| <div class="flex items-center p-2 border-b"> | |
| <img src="https://via.placeholder.com/40" alt="Employee" class="rounded-full mr-3"> | |
| <div class="flex-1"> | |
| <p class="font-medium">Sarah Williams</p> | |
| <p class="text-sm text-gray-600">Taping - 1h 30m</p> | |
| </div> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">On Site</span> | |
| </div> | |
| <div class="flex items-center p-2"> | |
| <img src="https://via.placeholder.com/40" alt="Employee" class="rounded-full mr-3"> | |
| <div class="flex-1"> | |
| <p class="font-medium">David Brown</p> | |
| <p class="text-sm text-gray-600">Driving - 45m</p> | |
| </div> | |
| <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">In Transit</span> | |
| </div> | |
| </div> | |
| <button class="w-full mt-3 text-blue-600 text-sm font-medium">View All Employees</button> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <h2 class="text-lg font-semibold mb-3">Today's Schedule</h2> | |
| <div class="space-y-3"> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Office Building</p> | |
| <span class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">In Progress</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mt-1">123 Main St, Anytown</p> | |
| <p class="text-sm mt-1"><i class="fas fa-clock text-gray-500 mr-1"></i> 8:00 AM - 4:30 PM</p> | |
| <div class="flex mt-2"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded mr-2">Framing</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Drywall</span> | |
| </div> | |
| </div> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Residential House</p> | |
| <span class="text-sm bg-green-100 text-green-800 px-2 py-1 rounded">Upcoming</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mt-1">456 Oak Ave, Somewhere</p> | |
| <p class="text-sm mt-1"><i class="fas fa-clock text-gray-500 mr-1"></i> 9:00 AM - 5:00 PM</p> | |
| <div class="flex mt-2"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded mr-2">Taping</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Painting</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Time Tracking View (hidden by default) --> | |
| <div id="time-tracking-view" class="hidden"> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4"> | |
| <h2 class="text-lg font-semibold mb-4">Track Your Time</h2> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">Select Jobsite</label> | |
| <select class="w-full p-2 border rounded activity-select"> | |
| <option>Office Building - 123 Main St</option> | |
| <option>Residential House - 456 Oak Ave</option> | |
| <option>Commercial Space - 789 Business Rd</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">Activity Type</label> | |
| <select class="w-full p-2 border rounded activity-select"> | |
| <option>Drive Time</option> | |
| <option>Hanging</option> | |
| <option>Taping</option> | |
| <option>Framing</option> | |
| <option>Painting</option> | |
| <option>Delivering Materials</option> | |
| <option>Carpentry</option> | |
| <option>Admin</option> | |
| </select> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 mb-4"> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">Start Time</label> | |
| <input type="time" class="w-full p-2 border rounded" value="08:00"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">End Time</label> | |
| <input type="time" class="w-full p-2 border rounded" value="16:30"> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">Notes</label> | |
| <textarea class="w-full p-2 border rounded" rows="2" placeholder="Add any notes about the work..."></textarea> | |
| </div> | |
| <button class="w-full bg-blue-600 text-white py-2 rounded font-medium">Submit Time</button> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4"> | |
| <h2 class="text-lg font-semibold mb-3">Today's Time Logs</h2> | |
| <div class="space-y-3"> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Framing</p> | |
| <p class="text-sm font-medium">3h 15m</p> | |
| </div> | |
| <p class="text-sm text-gray-600">Office Building</p> | |
| <p class="text-xs text-gray-500 mt-1">8:00 AM - 11:15 AM</p> | |
| </div> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Lunch Break</p> | |
| <p class="text-sm font-medium">30m</p> | |
| </div> | |
| <p class="text-sm text-gray-600">Office Building</p> | |
| <p class="text-xs text-gray-500 mt-1">11:15 AM - 11:45 AM</p> | |
| </div> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Taping</p> | |
| <p class="text-sm font-medium">4h 15m</p> | |
| </div> | |
| <p class="text-sm text-gray-600">Office Building</p> | |
| <p class="text-xs text-gray-500 mt-1">11:45 AM - 4:00 PM</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Schedule View (hidden by default) --> | |
| <div id="schedule-view" class="hidden"> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Job Schedule</h2> | |
| <button class="bg-blue-600 text-white px-3 py-1 rounded text-sm">Add Job</button> | |
| </div> | |
| <div class="flex overflow-x-auto space-x-2 pb-2"> | |
| <button class="px-3 py-1 bg-blue-600 text-white rounded-full text-sm">Today</button> | |
| <button class="px-3 py-1 bg-white border rounded-full text-sm">Tomorrow</button> | |
| <button class="px-3 py-1 bg-white border rounded-full text-sm">Wed</button> | |
| <button class="px-3 py-1 bg-white border rounded-full text-sm">Thu</button> | |
| <button class="px-3 py-1 bg-white border rounded-full text-sm">Fri</button> | |
| <button class="px-3 py-1 bg-white border rounded-full text-sm">Sat</button> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h3 class="font-medium">Tuesday, June 6</h3> | |
| <span class="text-sm text-gray-600">3 Jobs</span> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Office Building</p> | |
| <span class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">In Progress</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mt-1">123 Main St, Anytown</p> | |
| <p class="text-sm mt-1"><i class="fas fa-clock text-gray-500 mr-1"></i> 8:00 AM - 4:30 PM</p> | |
| <div class="flex mt-2"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded mr-2">Framing</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Drywall</span> | |
| </div> | |
| <div class="mt-3 pt-2 border-t"> | |
| <p class="text-sm font-medium">Assigned Crew (4)</p> | |
| <div class="flex mt-2"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-2 border"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-2 border"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-2 border"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full border"> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Residential House</p> | |
| <span class="text-sm bg-green-100 text-green-800 px-2 py-1 rounded">Upcoming</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mt-1">456 Oak Ave, Somewhere</p> | |
| <p class="text-sm mt-1"><i class="fas fa-clock text-gray-500 mr-1"></i> 9:00 AM - 5:00 PM</p> | |
| <div class="flex mt-2"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded mr-2">Taping</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Painting</span> | |
| </div> | |
| </div> | |
| <div class="p-3 border rounded-lg"> | |
| <div class="flex justify-between"> | |
| <p class="font-medium">Commercial Space</p> | |
| <span class="text-sm bg-gray-100 text-gray-800 px-2 py-1 rounded">Planning</span> | |
| </div> | |
| <p class="text-sm text-gray-600 mt-1">789 Business Rd, Downtown</p> | |
| <p class="text-sm mt-1"><i class="fas fa-clock text-gray-500 mr-1"></i> 10:00 AM - 6:00 PM</p> | |
| <div class="flex mt-2"> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded mr-2">Framing</span> | |
| <span class="text-xs bg-gray-100 px-2 py-1 rounded">Drywall</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Reports View (hidden by default) --> | |
| <div id="reports-view" class="hidden"> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin Only</span> | |
| <h2 class="text-lg font-semibold mb-4">Payroll Reports</h2> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">Select Time Period</label> | |
| <select class="w-full p-2 border rounded activity-select"> | |
| <option>This Week</option> | |
| <option>Last Week</option> | |
| <option>This Month</option> | |
| <option>Last Month</option> | |
| <option>Custom Range</option> | |
| </select> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 mb-4"> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">From Date</label> | |
| <input type="date" class="w-full p-2 border rounded"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-medium mb-1">To Date</label> | |
| <input type="date" class="w-full p-2 border rounded"> | |
| </div> | |
| </div> | |
| <button class="w-full bg-blue-600 text-white py-2 rounded font-medium mb-3">Generate Report</button> | |
| <button class="w-full border border-blue-600 text-blue-600 py-2 rounded font-medium">Export to Excel</button> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin/Supervisor Only</span> | |
| <h2 class="text-lg font-semibold mb-3">Weekly Summary (May 29 - Jun 4)</h2> | |
| <div class="mb-4 p-3 bg-blue-50 rounded-lg"> | |
| <div class="flex justify-between items-center mb-2"> | |
| <p class="font-medium">Total Hours Worked</p> | |
| <p class="text-xl font-bold">187.5</p> | |
| </div> | |
| <div class="flex justify-between text-sm"> | |
| <p>Regular: <span class="font-medium">160.0</span></p> | |
| <p>Overtime: <span class="font-medium">27.5</span></p> | |
| </div> | |
| </div> | |
| <h3 class="font-medium mb-2">Top Activities</h3> | |
| <div class="space-y-2 mb-4"> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Framing</span> | |
| <span class="text-sm font-medium">68.5 hrs</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Taping</span> | |
| <span class="text-sm font-medium">52.0 hrs</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-500 h-2 rounded-full" style="width: 35%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium">Painting</span> | |
| <span class="text-sm font-medium">32.5 hrs</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 22%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <h3 class="font-medium mb-2">Employee Hours</h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-center justify-between p-2 border-b"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-3"> | |
| <p class="font-medium">Mike Johnson</p> | |
| </div> | |
| <p class="font-medium">42.5 hrs</p> | |
| </div> | |
| <div class="flex items-center justify-between p-2 border-b"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-3"> | |
| <p class="font-medium">Sarah Williams</p> | |
| </div> | |
| <p class="font-medium">40.0 hrs</p> | |
| </div> | |
| <div class="flex items-center justify-between p-2"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/30" alt="Employee" class="rounded-full mr-3"> | |
| <p class="font-medium">David Brown</p> | |
| </div> | |
| <p class="font-medium">38.5 hrs</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Training View (hidden by default) --> | |
| <div id="training-view" class="hidden"> | |
| <div class="bg-white rounded-lg shadow-md p-4 mb-4"> | |
| <h2 class="text-lg font-semibold mb-4">Employee Training</h2> | |
| <div class="training-section"> | |
| <h3 class="font-medium text-blue-600 mb-3">How to Download and Install the App</h3> | |
| <div class="training-step"> | |
| <p class="font-medium">Download the App</p> | |
| <p class="text-sm text-gray-600">Go to the App Store (iOS) or Google Play Store (Android) and search for "Ace Drywall Tracker"</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Install the App</p> | |
| <p class="text-sm text-gray-600">Tap "Install" and wait for the download to complete</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Open and Login</p> | |
| <p class="text-sm text-gray-600">Open the app and enter your company credentials provided by your supervisor</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Enable Permissions</p> | |
| <p class="text-sm text-gray-600">Allow location access when prompted (required for job site tracking)</p> | |
| </div> | |
| </div> | |
| <div class="mt-6 training-section"> | |
| <h3 class="font-medium text-blue-600 mb-3">How to Use the App</h3> | |
| <div class="training-step"> | |
| <p class="font-medium">Clock In/Out</p> | |
| <p class="text-sm text-gray-600">Use the Time Tracking tab to clock in when arriving at a job site and clock out when leaving</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Select Activity</p> | |
| <p class="text-sm text-gray-600">Choose the correct activity type (framing, taping, etc.) for accurate time tracking</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Add Notes</p> | |
| <p class="text-sm text-gray-600">Include any important notes about the work completed or issues encountered</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">View Schedule</p> | |
| <p class="text-sm text-gray-600">Check the Schedule tab daily for assigned jobs and locations</p> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="font-medium text-blue-600 mb-3">Training Videos</h3> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <div class="bg-gray-100 rounded-lg p-3 text-center"> | |
| <i class="fas fa-play-circle text-4xl text-blue-600 mb-2"></i> | |
| <p class="text-sm font-medium">App Installation</p> | |
| </div> | |
| <div class="bg-gray-100 rounded-lg p-3 text-center"> | |
| <i class="fas fa-play-circle text-4xl text-blue-600 mb-2"></i> | |
| <p class="text-sm font-medium">Time Tracking</p> | |
| </div> | |
| <div class="bg-gray-100 rounded-lg p-3 text-center"> | |
| <i class="fas fa-play-circle text-4xl text-blue-600 mb-2"></i> | |
| <p class="text-sm font-medium">Viewing Schedule</p> | |
| </div> | |
| <div class="bg-gray-100 rounded-lg p-3 text-center"> | |
| <i class="fas fa-play-circle text-4xl text-blue-600 mb-2"></i> | |
| <p class="text-sm font-medium">Reporting Issues</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-4 relative"> | |
| <span class="access-badge bg-blue-600 text-white">Admin Only</span> | |
| <h2 class="text-lg font-semibold mb-4">Admin & IT Training</h2> | |
| <div class="training-section"> | |
| <h3 class="font-medium text-blue-600 mb-3">Admin Dashboard</h3> | |
| <div class="training-step"> | |
| <p class="font-medium">Employee Management</p> | |
| <p class="text-sm text-gray-600">Add/remove employees, assign roles, and manage permissions</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Job Creation</p> | |
| <p class="text-sm text-gray-600">Create new jobs, assign crews, and set schedules</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Time Approval</p> | |
| <p class="text-sm text-gray-600">Review and approve employee time submissions</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Payroll Reports</p> | |
| <p class="text-sm text-gray-600">Generate and export payroll reports for accounting</p> | |
| </div> | |
| </div> | |
| <div class="mt-6 training-section"> | |
| <h3 class="font-medium text-blue-600 mb-3">IT Maintenance</h3> | |
| <div class="training-step"> | |
| <p class="font-medium">App Updates</p> | |
| <p class="text-sm text-gray-600">How to push updates and manage version control</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Troubleshooting</p> | |
| <p class="text-sm text-gray-600">Common issues and solutions for employee devices</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Data Backup</p> | |
| <p class="text-sm text-gray-600">Scheduled backups and data recovery procedures</p> | |
| </div> | |
| <div class="training-step"> | |
| <p class="font-medium">Security</p> | |
| <p class="text-sm text-gray-600">Managing user access and maintaining data security</p> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="font-medium text-blue-600 mb-3">Admin Resources</h3> | |
| <div class="space-y-2"> | |
| <a href="#" class="flex items-center p-2 border rounded-lg"> | |
| <i class="fas fa-file-pdf text-red-500 mr-3 text-xl"></i> | |
| <span class="font-medium">Admin User Manual</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 border rounded-lg"> | |
| <i class="fas fa-file-excel text-green-500 mr-3 text-xl"></i> | |
| <span class="font-medium">Report Templates</span> | |
| </a> | |
| <a href="#" class="flex items-center p-2 border rounded-lg"> | |
| <i class="fas fa-headset text-blue-500 mr-3 text-xl"></i> | |
| <span class="font-medium">IT Support Contact</span> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Bottom Navigation --> | |
| <nav class="bottom-nav bg-white border-t shadow-lg"> | |
| <div class="flex justify-around"> | |
| <button onclick="showView('dashboard-view')" class="p-3 text-center text-gray-500"> | |
| <i class="fas fa-home block text-xl mb-1"></i> | |
| <span class="text-xs">Dashboard</span> | |
| </button> | |
| <button onclick="showView('time-tracking-view')" class="p-3 text-center text-gray-500"> | |
| <i class="fas fa-clock block text-xl mb-1"></i> | |
| <span class="text-xs">Time Track</span> | |
| </button> | |
| <button onclick="showView('schedule-view')" class="p-3 text-center text-gray-500"> | |
| <i class="fas fa-calendar-alt block text-xl mb-1"></i> | |
| <span class="text-xs">Schedule</span> | |
| </button> | |
| <button onclick="showView('reports-view')" class="p-3 text-center text-gray-500"> | |
| <i class="fas fa-chart-bar block text-xl mb-1"></i> | |
| <span class="text-xs">Reports</span> | |
| </button> | |
| <button onclick="showView('training-view')" class="p-3 text-center text-gray-500"> | |
| <i class="fas fa-graduation-cap block text-xl mb-1"></i> | |
| <span class="text-xs">Training</span> | |
| </button> | |
| </div> | |
| </nav> | |
| <script> | |
| // Current user role (default to employee) | |
| let currentRole = 'employee'; | |
| // Function to switch between views | |
| function showView(viewId) { | |
| // Hide all views | |
| document.getElementById('dashboard-view').classList.add('hidden'); | |
| document.getElementById('time-tracking-view').classList.add('hidden'); | |
| document.getElementById('schedule-view').classList.add('hidden'); | |
| document.getElementById('reports-view').classList.add('hidden'); | |
| document.getElementById('training-view').classList.add('hidden'); | |
| // Show selected view | |
| document.getElementById(viewId).classList.remove('hidden'); | |
| // Update active tab styling | |
| const navButtons = document.querySelectorAll('.bottom-nav button'); | |
| navButtons.forEach(button => { | |
| button.classList.remove('text-blue-600'); | |
| button.classList.add('text-gray-500'); | |
| }); | |
| // Set current button as active | |
| event.currentTarget.classList.remove('text-gray-500'); | |
| event.currentTarget.classList.add('text-blue-600'); | |
| // Update UI based on role | |
| updateUIForRole(); | |
| } | |
| // Function to update UI based on current role | |
| function updateUIForRole() { | |
| // Show/hide elements based on role | |
| const adminOnlyElements = document.querySelectorAll('.access-badge.bg-blue-600'); | |
| const supervisorElements = document.querySelectorAll('.access-badge.bg-blue-600:not(.access-badge.bg-blue-600 + .access-badge.bg-blue-600)'); | |
| adminOnlyElements.forEach(el => { | |
| const parent = el.parentElement; | |
| if (currentRole === 'admin') { | |
| parent.classList.remove('hidden'); | |
| el.textContent = 'Admin Only'; | |
| } else if (currentRole === 'supervisor') { | |
| if (el.textContent.includes('Admin Only')) { | |
| parent.classList.add('hidden'); | |
| } else { | |
| parent.classList.remove('hidden'); | |
| el.textContent = 'Supervisor Only'; | |
| } | |
| } else { // employee | |
| parent.classList.add('hidden'); | |
| } | |
| }); | |
| // Enable/disable navigation tabs based on role | |
| const navButtons = document.querySelectorAll('.bottom-nav button'); | |
| navButtons.forEach(button => { | |
| const viewId = button.getAttribute('onclick').match(/'([^']+)'/)[1]; | |
| if (viewId === 'time-tracking-view') { | |
| // Always show time tracking for all roles | |
| button.classList.remove('hidden'); | |
| } else if (viewId === 'dashboard-view') { | |
| // Show dashboard for supervisors and admins | |
| button.classList.toggle('hidden', currentRole === 'employee'); | |
| } else if (viewId === 'schedule-view') { | |
| // Show schedule for supervisors and admins | |
| button.classList.toggle('hidden', currentRole === 'employee'); | |
| } else if (viewId === 'reports-view') { | |
| // Show reports only for admins | |
| button.classList.toggle('hidden', currentRole !== 'admin'); | |
| } else if (viewId === 'training-view') { | |
| // Show training for all, but content varies by role | |
| button.classList.remove('hidden'); | |
| } | |
| }); | |
| // Special case for training view - hide admin section for non-admins | |
| const adminTrainingSection = document.querySelector('#training-view .bg-white.relative'); | |
| if (adminTrainingSection) { | |
| adminTrainingSection.classList.toggle('hidden', currentRole !== 'admin'); | |
| } | |
| } | |
| // Role selector change handler | |
| document.getElementById('role-selector').addEventListener('change', function() { | |
| currentRole = this.value; | |
| updateUIForRole(); | |
| // Default to appropriate view based on role | |
| if (currentRole === 'employee') { | |
| showView('time-tracking-view'); | |
| } else { | |
| showView('dashboard-view'); | |
| } | |
| }); | |
| // Initialize with employee view | |
| document.addEventListener('DOMContentLoaded', function() { | |
| showView('time-tracking-view'); | |
| updateUIForRole(); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=neal9834/ace-drywall-time-clock" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |