mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +00:00
Enhance customer settings page with additional fields
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/a9a84ea3-8ffc-409c-8483-e1a78bdd722a.jpg
This commit is contained in:
@@ -154,6 +154,20 @@ export default function SettingsPage() {
|
||||
resolver: zodResolver(customerFormSchema),
|
||||
defaultValues: {
|
||||
name: currentCustomer?.name || "",
|
||||
description: currentCustomer?.description || "",
|
||||
email: currentCustomer?.email || "",
|
||||
phone: currentCustomer?.phone || "",
|
||||
address: currentCustomer?.address || "",
|
||||
city: currentCustomer?.city || "",
|
||||
state: currentCustomer?.state || "",
|
||||
zipCode: currentCustomer?.zipCode || "",
|
||||
country: currentCustomer?.country || "",
|
||||
website: currentCustomer?.website || "",
|
||||
industry: currentCustomer?.industry || "",
|
||||
notes: currentCustomer?.notes || "",
|
||||
accountManager: currentCustomer?.accountManager || "",
|
||||
billingEmail: currentCustomer?.billingEmail || "",
|
||||
billingAddress: currentCustomer?.billingAddress || "",
|
||||
isActive: currentCustomer?.isActive,
|
||||
},
|
||||
});
|
||||
@@ -183,6 +197,20 @@ export default function SettingsPage() {
|
||||
if (currentCustomer) {
|
||||
customerForm.reset({
|
||||
name: currentCustomer.name,
|
||||
description: currentCustomer.description || "",
|
||||
email: currentCustomer.email || "",
|
||||
phone: currentCustomer.phone || "",
|
||||
address: currentCustomer.address || "",
|
||||
city: currentCustomer.city || "",
|
||||
state: currentCustomer.state || "",
|
||||
zipCode: currentCustomer.zipCode || "",
|
||||
country: currentCustomer.country || "",
|
||||
website: currentCustomer.website || "",
|
||||
industry: currentCustomer.industry || "",
|
||||
notes: currentCustomer.notes || "",
|
||||
accountManager: currentCustomer.accountManager || "",
|
||||
billingEmail: currentCustomer.billingEmail || "",
|
||||
billingAddress: currentCustomer.billingAddress || "",
|
||||
isActive: currentCustomer.isActive,
|
||||
});
|
||||
}
|
||||
@@ -319,7 +347,7 @@ export default function SettingsPage() {
|
||||
return (
|
||||
<MainLayout
|
||||
title="Settings"
|
||||
description="Manage your account and organization settings."
|
||||
description="Manage your account and customer settings."
|
||||
>
|
||||
<Tabs defaultValue="account" className="space-y-6">
|
||||
<TabsList className="w-full sm:w-auto">
|
||||
|
||||
Reference in New Issue
Block a user