courrier multi account restore compose
This commit is contained in:
parent
53dc77c6c6
commit
5ac1d6e760
@ -683,7 +683,7 @@ export default function CourrierPage() {
|
||||
{/* Form for adding a new account */}
|
||||
{showAddAccountForm && (
|
||||
<div className="mb-3 p-2 border border-gray-200 rounded-md bg-gray-50">
|
||||
<h4 className="text-xs font-medium mb-2 text-gray-700">Add IMAP Account</h4>
|
||||
<h4 className="text-xs font-medium mb-1 text-gray-700">Add IMAP Account</h4>
|
||||
<form onSubmit={async (e) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
@ -776,21 +776,21 @@ export default function CourrierPage() {
|
||||
setLoading(false);
|
||||
}
|
||||
}}>
|
||||
<div className="space-y-2">
|
||||
<div className="space-y-1">
|
||||
<Tabs defaultValue="imap" className="w-full">
|
||||
<TabsList className="grid w-full grid-cols-2 h-7">
|
||||
<TabsTrigger value="imap" className="text-xs">IMAP Settings</TabsTrigger>
|
||||
<TabsTrigger value="smtp" className="text-xs">SMTP Settings</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="imap" className="mt-2 space-y-2">
|
||||
<TabsContent value="imap" className="mt-1 space-y-1">
|
||||
<div>
|
||||
<Label htmlFor="email" className="text-xs">Email</Label>
|
||||
<Input
|
||||
id="email"
|
||||
name="email"
|
||||
placeholder="email@example.com"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
@ -801,7 +801,7 @@ export default function CourrierPage() {
|
||||
name="password"
|
||||
type="password"
|
||||
placeholder="•••••••••"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
@ -811,7 +811,7 @@ export default function CourrierPage() {
|
||||
id="display_name"
|
||||
name="display_name"
|
||||
placeholder="John Doe"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@ -820,7 +820,7 @@ export default function CourrierPage() {
|
||||
id="host"
|
||||
name="host"
|
||||
placeholder="imap.example.com"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
@ -831,7 +831,7 @@ export default function CourrierPage() {
|
||||
id="port"
|
||||
name="port"
|
||||
placeholder="993"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
defaultValue="993"
|
||||
required
|
||||
/>
|
||||
@ -845,14 +845,14 @@ export default function CourrierPage() {
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="smtp" className="mt-2 space-y-2">
|
||||
<TabsContent value="smtp" className="mt-1 space-y-1">
|
||||
<div>
|
||||
<Label htmlFor="smtp_host" className="text-xs">SMTP Server</Label>
|
||||
<Input
|
||||
id="smtp_host"
|
||||
name="smtp_host"
|
||||
placeholder="smtp.example.com"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
@ -862,7 +862,7 @@ export default function CourrierPage() {
|
||||
id="smtp_port"
|
||||
name="smtp_port"
|
||||
placeholder="587"
|
||||
className="h-7 text-xs"
|
||||
className="h-7 text-xs bg-white border-gray-300"
|
||||
defaultValue="587"
|
||||
/>
|
||||
</div>
|
||||
@ -879,7 +879,7 @@ export default function CourrierPage() {
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
|
||||
<div className="flex gap-2 pt-2">
|
||||
<div className="flex gap-2 pt-1">
|
||||
<Button
|
||||
type="submit"
|
||||
className="flex-1 h-7 text-xs bg-blue-600 hover:bg-blue-700 text-white rounded-md"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user