Update index.html
1 file changed+53−0
index.html+53−0View file
| @@ -978,6 +978,59 @@ | ||
| </div> | ||
| </div> | ||
| + <!-- 5b. Edit Project Modal --> | ||
| + <div id="modal-edit-project" class="hidden fixed inset-0 z-50 overflow-y-auto bg-slate-900/60 backdrop-blur-sm flex items-center justify-center p-4"> | ||
| + <div class="bg-white rounded-3xl max-w-lg w-full shadow-2xl border border-slate-100 overflow-hidden"> | ||
| + <div class="p-6 border-b border-slate-200"> | ||
| + <h3 class="text-base font-bold text-slate-900">Edit Project</h3> | ||
| + <p class="text-xs text-slate-500 mt-0.5">Update project scope, active status, and client administrator contact.</p> | ||
| + </div> | ||
| + <form id="form-edit-project" onsubmit="handleUpdateProject(event)" class="p-6 space-y-4"> | ||
| + <input type="hidden" id="edit-project-id"> | ||
| + <div> | ||
| + <label class="block text-xs font-semibold text-slate-700 uppercase mb-1">Project Name *</label> | ||
| + <input type="text" id="edit-project-name" required placeholder="e.g. AI Search Integration" | ||
| + class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-indigo-500"> | ||
| + </div> | ||
| + | ||
| + <div> | ||
| + <label class="block text-xs font-semibold text-slate-700 uppercase mb-1">Description</label> | ||
| + <textarea id="edit-project-desc" rows="2" placeholder="Brief project overview..." | ||
| + class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-indigo-500"></textarea> | ||
| + </div> | ||
| + | ||
| + <div> | ||
| + <label class="block text-xs font-semibold text-slate-700 uppercase mb-1">Status</label> | ||
| + <select id="edit-project-status" class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-indigo-500 bg-white"> | ||
| + <option value="active">Active</option> | ||
| + <option value="completed">Completed</option> | ||
| + <option value="archived">Archived</option> | ||
| + </select> | ||
| + </div> | ||
| + | ||
| + <div class="grid grid-cols-2 gap-4"> | ||
| + <div> | ||
| + <label class="block text-xs font-semibold text-slate-700 uppercase mb-1">Admin Name</label> | ||
| + <input type="text" id="edit-project-admin-name" placeholder="Sarah Jenkins" | ||
| + class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-indigo-500"> | ||
| + </div> | ||
| + <div> | ||
| + <label class="block text-xs font-semibold text-slate-700 uppercase mb-1">Admin Email</label> | ||
| + <input type="email" id="edit-project-admin-email" placeholder="sarah.jenkins@example.com" | ||
| + class="w-full text-sm p-2.5 rounded-xl border border-slate-300 focus:ring-indigo-500"> | ||
| + </div> | ||
| + </div> | ||
| + | ||
| + <div class="pt-4 border-t border-slate-200 flex items-center justify-end gap-3"> | ||
| + <button type="button" onclick="closeEditProjectModal()" class="px-4 py-2 text-xs font-semibold text-slate-600 hover:text-slate-900">Cancel</button> | ||
| + <button type="submit" class="px-5 py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold rounded-xl shadow-md transition"> | ||
| + Save Changes | ||
| + </button> | ||
| + </div> | ||
| + </form> | ||
| + </div> | ||
| + </div> | ||
| + | ||
| <!-- 6. Invoice Preview Modal --> | ||
| <div id="modal-invoice-preview" class="hidden fixed inset-0 z-50 overflow-y-auto bg-slate-900/60 backdrop-blur-sm flex items-center justify-center p-4"> | ||
| <div class="bg-white rounded-3xl max-w-4xl w-full shadow-2xl border border-slate-100 overflow-hidden flex flex-col h-[85vh]"> | ||