Skip to content

Commit acb61ff

Browse files
committed
autofill website url from email
1 parent 08494be commit acb61ff

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/algora_web/live/jobs_live.ex

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,21 @@ defmodule AlgoraWeb.JobsLive do
103103
<div class="pt-1 text-base font-medium text-muted-foreground">
104104
Reach thousands of developers looking for their next opportunity versed in your tech stack
105105
</div>
106-
<.simple_form for={@form} phx-submit="create_job" class="mt-4 space-y-4">
106+
<.simple_form for={@form} phx-submit="create_job" class="mt-4 space-y-6">
107107
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
108-
<.input field={@form[:email]} label="Email" />
108+
<.input
109+
field={@form[:email]}
110+
label="Email"
111+
data-domain-target
112+
phx-hook="DeriveDomain"
113+
/>
109114
<.input field={@form[:company_name]} label="Company Name" />
110-
<.input field={@form[:company_url]} label="Company Website" />
115+
<.input field={@form[:company_url]} label="Company Website" data-domain-source />
111116
<.input field={@form[:url]} label="Job Posting URL" />
112117
</div>
113118
114119
<div class="flex justify-end">
115-
<.button size="lg" class="flex items-center gap-2" phx-disable-with="Processing...">
120+
<.button class="flex items-center gap-2" phx-disable-with="Processing...">
116121
Post Job
117122
</.button>
118123
</div>

0 commit comments

Comments
 (0)