@@ -203,20 +203,30 @@ defmodule AlgoraWeb.JobsLive do
203203 >
204204 < div class = "grid grid-cols-1 md:grid-cols-2 gap-4 " >
205205 < . input
206+ id = "final_section_email "
206207 field = { @ form [ :email ] }
207208 label = "Email "
208209 data-domain-target
209210 phx-hook = "DeriveDomain "
210211 phx-change = "email_changed "
211212 phx-debounce = "300 "
212213 />
213- < . input field = { @ form [ :url ] } label = "Job Posting URL " />
214- < . input field = { @ form [ :company_url ] } label = "Company URL " data-domain-source />
215- < . input field = { @ form [ :company_name ] } label = "Company Name " />
214+ < . input id = "final_section_url " field = { @ form [ :url ] } label = "Job Posting URL " />
215+ < . input
216+ id = "final_section_company_url "
217+ field = { @ form [ :company_url ] }
218+ label = "Company URL "
219+ data-domain-source
220+ />
221+ < . input
222+ id = "final_section_company_name "
223+ field = { @ form [ :company_name ] }
224+ label = "Company Name "
225+ />
216226 </ div >
217227
218228 < div class = "flex flex-col items-center gap-4 " >
219- < . button size = "xl " class = "w-full " href = { AlgoraWeb.Constants . get ( :calendar_url ) } >
229+ < . button size = "xl " class = "w-full " >
220230 < div class = "flex flex-col items-center gap-1 font-semibold " >
221231 < span > Hire now</ span >
222232 </ div >
@@ -480,7 +490,7 @@ defmodule AlgoraWeb.JobsLive do
480490 </ div >
481491
482492 < div class = "flex flex-col items-center gap-4 " >
483- < . button size = "xl " class = "w-full " href = { AlgoraWeb.Constants . get ( :calendar_url ) } >
493+ < . button size = "xl " class = "w-full " >
484494 < div class = "flex flex-col items-center gap-1 font-semibold " >
485495 < span > Hire now</ span >
486496 </ div >
@@ -548,10 +558,9 @@ defmodule AlgoraWeb.JobsLive do
548558 def handle_event ( "create_job" , % { "job_posting" => params } , socket ) do
549559 with { :ok , user } <-
550560 Accounts . get_or_register_user ( params [ "email" ] , % { type: :organization , display_name: params [ "company_name" ] } ) ,
551- { :ok , job } <- params |> Map . put ( "user_id" , user . id ) |> Jobs . create_job_posting ( ) ,
552- { :ok , url } <- Jobs . create_payment_session ( job ) do
561+ { :ok , job } <- params |> Map . put ( "user_id" , user . id ) |> Jobs . create_job_posting ( ) do
553562 Algora.Admin . alert ( "Job posting initialized: #{ job . company_name } " , :info )
554- { :noreply , redirect ( socket , external: url ) }
563+ { :noreply , redirect ( socket , external: AlgoraWeb.Constants . get ( :calendar_url ) ) }
555564 else
556565 { :error , % Ecto.Changeset { } = changeset } ->
557566 { :noreply , assign ( socket , :form , to_form ( changeset ) ) }
0 commit comments