change application title from all places from PMS to OnFieldWork
This commit is contained in:
parent
a2f105dd41
commit
c7fe28a4ed
@ -5,7 +5,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Marco PMS</title>
|
<title>OnFieldWork.com</title>
|
||||||
|
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
|
|
||||||
|
|||||||
BIN
public/img/app/dashboard-light-09.png
Normal file
BIN
public/img/app/dashboard-light-09.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
@ -15,7 +15,7 @@ const Sidebar = () => {
|
|||||||
>
|
>
|
||||||
<div className="app-brand" style={{ paddingLeft: "30px" }}>
|
<div className="app-brand" style={{ paddingLeft: "30px" }}>
|
||||||
<Link to="/dashboard" className="app-brand-link">
|
<Link to="/dashboard" className="app-brand-link">
|
||||||
<span className="app-brand-logo rounded-circle app-brand-logo-border">
|
{/* <span className="app-brand-logo rounded-circle app-brand-logo-border">
|
||||||
<img
|
<img
|
||||||
className="app-brand-logo-sidebar"
|
className="app-brand-logo-sidebar"
|
||||||
src="/img/brand/marco.png"
|
src="/img/brand/marco.png"
|
||||||
@ -23,8 +23,19 @@ const Sidebar = () => {
|
|||||||
aria-label="logo image"
|
aria-label="logo image"
|
||||||
style={{ margin: "5px", paddingRight: "5px" }}
|
style={{ margin: "5px", paddingRight: "5px" }}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span> */}
|
||||||
<span className="app-brand-text menu-text fw-bold ms-2">PMS</span>
|
|
||||||
|
<a
|
||||||
|
href="/"
|
||||||
|
class="app-brand-link fw-bold navbar-brand text-green fs-6"
|
||||||
|
>
|
||||||
|
<span class="app-brand-logo demo">
|
||||||
|
<img src="/img/brand/marco.png" width="50" />
|
||||||
|
</span>
|
||||||
|
<span class="text-blue">OnField</span>
|
||||||
|
<span>Work</span>
|
||||||
|
<span class="text-dark">.com</span>
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<a className="layout-menu-toggle menu-link text-large ms-auto">
|
<a className="layout-menu-toggle menu-link text-large ms-auto">
|
||||||
|
|||||||
@ -23,13 +23,13 @@ const AuthLayout = () => {
|
|||||||
to="/"
|
to="/"
|
||||||
className="app-brand-link gap-2 position-fixed top-2 start-0 mx-2 mx-sm-4"
|
className="app-brand-link gap-2 position-fixed top-2 start-0 mx-2 mx-sm-4"
|
||||||
>
|
>
|
||||||
<span className="app-brand-logo rounded-circle ">
|
{/* <span className="app-brand-logo rounded-circle ">
|
||||||
<img
|
<img
|
||||||
src="/img/brand/marco.png"
|
src="/img/brand/marco.png"
|
||||||
alt="marco-logo"
|
alt="marco-logo"
|
||||||
className="app-brand-logo-login"
|
className="app-brand-logo-login"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span> */}
|
||||||
</Link>
|
</Link>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -654,3 +654,15 @@ nav.layout-navbar.navbar-active::after {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.light-style .landing-hero {
|
||||||
|
background: linear-gradient(138.18deg, #eae8fd, #ede7e7 94.44%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-green {
|
||||||
|
color: #49bf3c !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-blue {
|
||||||
|
color: var(--bs-blue);
|
||||||
|
}
|
||||||
|
|||||||
@ -54,15 +54,27 @@ const LandingPage = () => {
|
|||||||
>
|
>
|
||||||
<i className="tf-icons bx bx-menu bx-lg align-middle text-heading fw-medium"></i>
|
<i className="tf-icons bx bx-menu bx-lg align-middle text-heading fw-medium"></i>
|
||||||
</button>
|
</button>
|
||||||
{/* Mobile menu toggle: End*/}
|
|
||||||
<a href="/" className="app-brand-link">
|
{/* <a href="/" className="app-brand-link">
|
||||||
<span className="app-brand-logo demo">
|
<span className="app-brand-logo demo">
|
||||||
<img src="/img/brand/marco.png" width={50}></img>
|
<img src="/img/brand/marco.png" width={50}></img>
|
||||||
</span>
|
</span>
|
||||||
<span className="app-brand-text demo menu-text fw-bold ms-2 ps-1 ">
|
<span className="app-brand-text demo menu-text fw-bold ms-2 ps-1 ">
|
||||||
{/* <Link> */} PMS
|
PMS
|
||||||
{/* </Link> */}
|
|
||||||
</span>
|
</span>
|
||||||
|
</a> */}
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="/"
|
||||||
|
class="app-brand-link fw-bold navbar-brand text-green fs-5"
|
||||||
|
>
|
||||||
|
<span class="app-brand-logo demo">
|
||||||
|
<img src="/img/brand/marco.png" width="50" />
|
||||||
|
</span>
|
||||||
|
<span class="text-blue">OnField</span>
|
||||||
|
<span>Work</span>
|
||||||
|
<span class="text-dark">.com</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{/* Menu logo wrapper: End */}
|
{/* Menu logo wrapper: End */}
|
||||||
@ -226,7 +238,7 @@ const LandingPage = () => {
|
|||||||
</SwiperSlide>
|
</SwiperSlide>
|
||||||
<SwiperSlide>
|
<SwiperSlide>
|
||||||
<SwaperSlideContent
|
<SwaperSlideContent
|
||||||
ImageUrl="/app/dashboard-light-04.png"
|
ImageUrl="/img/app/dashboard-light-09.png"
|
||||||
Title="Role-based Permissions"
|
Title="Role-based Permissions"
|
||||||
Body="Securely control access with customizable roles and permissions."
|
Body="Securely control access with customizable roles and permissions."
|
||||||
></SwaperSlideContent>
|
></SwaperSlideContent>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { AuthWrapper } from "./AuthWrapper"
|
import { AuthWrapper } from "./AuthWrapper";
|
||||||
import "./page-auth.css";
|
import "./page-auth.css";
|
||||||
import AuthRepository from "../../repositories/AuthRepository";
|
import AuthRepository from "../../repositories/AuthRepository";
|
||||||
import showToast from "../../services/toastService";
|
import showToast from "../../services/toastService";
|
||||||
@ -8,54 +8,76 @@ import { useForm } from "react-hook-form";
|
|||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
|
|
||||||
const forgotPassSceham = z.object({
|
const forgotPassSceham = z.object({
|
||||||
email: z.string().trim().email(),
|
email: z.string().trim().email(),
|
||||||
})
|
});
|
||||||
|
|
||||||
const ForgotPasswordPage = () => {
|
const ForgotPasswordPage = () => {
|
||||||
|
const [loding, setLoading] = useState(false);
|
||||||
|
|
||||||
const [loding, setLoading] = useState(false)
|
const {
|
||||||
|
register,
|
||||||
const { register,
|
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
formState: { errors },
|
formState: { errors },
|
||||||
reset,
|
reset,
|
||||||
getValues } = useForm({
|
getValues,
|
||||||
resolver: zodResolver(forgotPassSceham),
|
} = useForm({
|
||||||
defaultValues: {
|
resolver: zodResolver(forgotPassSceham),
|
||||||
email: ""
|
defaultValues: {
|
||||||
}
|
email: "",
|
||||||
})
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const onSubmit = async (data) => {
|
const onSubmit = async (data) => {
|
||||||
try {
|
try {
|
||||||
setLoading(true)
|
setLoading(true);
|
||||||
const response = await AuthRepository.forgotPassword(data)
|
const response = await AuthRepository.forgotPassword(data);
|
||||||
if (response.data && response.success)
|
if (response.data && response.success)
|
||||||
showToast("verification email has been sent to your registered email address", "success")
|
showToast(
|
||||||
reset()
|
"verification email has been sent to your registered email address",
|
||||||
setLoading(false)
|
"success"
|
||||||
|
);
|
||||||
|
reset();
|
||||||
|
setLoading(false);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
reset()
|
reset();
|
||||||
if (err.response.status === 404) {
|
if (err.response.status === 404) {
|
||||||
showToast("verification email has been sent to your registered email address", "success")
|
showToast(
|
||||||
|
"verification email has been sent to your registered email address",
|
||||||
|
"success"
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
showToast("Something wrong", "error")
|
showToast("Something wrong", "error");
|
||||||
}
|
}
|
||||||
|
|
||||||
setLoading(false)
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
return (
|
return (
|
||||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
<div className="w-100 m-auto" style={{ maxWidth: 420 }}>
|
||||||
<h4 className="mb-2">Forgot Password? 🔒</h4>
|
<div className="d-flex align-items-center justify-content-center ">
|
||||||
|
<img src="/img/brand/marco.png" width="70" />
|
||||||
|
<Link aria-label="Go to Home Page" to="/">
|
||||||
|
<span class="app-brand-logo ">
|
||||||
|
<span class="text-blue fs-4">OnField</span>
|
||||||
|
<span className="text-green fs-4">Work</span>
|
||||||
|
<span class="text-dark fs-4">.com</span>
|
||||||
|
</span>
|
||||||
|
<br />
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<h5 className="mb-2 mt-5 ">Forgot Password? </h5>
|
||||||
<p className="mb-4">
|
<p className="mb-4">
|
||||||
Enter your email and we'll send you instructions to reset your password
|
Enter your email and we'll send you instructions to reset your
|
||||||
|
password
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form id="formAuthentication" className="mb-3" onSubmit={handleSubmit(onSubmit)}>
|
<form
|
||||||
|
id="formAuthentication"
|
||||||
|
className="mb-3"
|
||||||
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
|
>
|
||||||
<div className="mb-3 text-start">
|
<div className="mb-3 text-start">
|
||||||
<label htmlFor="email" className="form-label">
|
<label htmlFor="email" className="form-label">
|
||||||
Email
|
Email
|
||||||
@ -78,26 +100,28 @@ const ForgotPasswordPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<button aria-label="Click me" className="btn btn-primary d-grid w-100">
|
<button
|
||||||
|
aria-label="Click me"
|
||||||
|
className="btn btn-primary d-grid w-100"
|
||||||
|
>
|
||||||
{loding ? "Please Wait..." : "Send Reset Link"}
|
{loding ? "Please Wait..." : "Send Reset Link"}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<Link
|
<Link
|
||||||
aria-label="Go to Login Page"
|
aria-label="Go to Login Page"
|
||||||
to="/auth/login"
|
to="/auth/login"
|
||||||
className="d-flex align-items-center justify-content-center"
|
className="d-flex align-items-center justify-content-center"
|
||||||
>
|
>
|
||||||
<i className="bx bx-chevron-left scaleX-n1-rtl bx-sm"></i>
|
<i className="bx bx-chevron-left scaleX-n1-rtl bx-sm"></i>
|
||||||
Back to login
|
Back to login
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Footer Text */}
|
{/* Footer Text */}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ForgotPasswordPage;
|
export default ForgotPasswordPage;
|
||||||
|
|||||||
@ -45,11 +45,11 @@ const LoginPage = () => {
|
|||||||
if (data.rememberMe) {
|
if (data.rememberMe) {
|
||||||
localStorage.setItem("jwtToken", response.data.token);
|
localStorage.setItem("jwtToken", response.data.token);
|
||||||
localStorage.setItem("refreshToken", response.data.refreshToken);
|
localStorage.setItem("refreshToken", response.data.refreshToken);
|
||||||
removeSession("session")
|
removeSession("session");
|
||||||
} else {
|
} else {
|
||||||
sessionStorage.setItem("jwtToken", response.data.token);
|
sessionStorage.setItem("jwtToken", response.data.token);
|
||||||
sessionStorage.setItem("refreshToken", response.data.refreshToken);
|
sessionStorage.setItem("refreshToken", response.data.refreshToken);
|
||||||
removeSession("local")
|
removeSession("local");
|
||||||
}
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
navigate("/auth/switch/org");
|
navigate("/auth/switch/org");
|
||||||
@ -78,25 +78,35 @@ const LoginPage = () => {
|
|||||||
}, [IsLoginWithOTP]);
|
}, [IsLoginWithOTP]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const token =
|
const token =
|
||||||
localStorage.getItem("jwtToken") ||
|
localStorage.getItem("jwtToken") || sessionStorage.getItem("jwtToken");
|
||||||
sessionStorage.getItem("jwtToken");
|
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
navigate("/dashboard", { replace: true });
|
navigate("/dashboard", { replace: true });
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
||||||
<h4 className="mb-2">Welcome to PMS!</h4>
|
<Link aria-label="Go to Home Page" to="/">
|
||||||
|
<span class="app-brand-logo rounded-circle app-brand-logo-border">
|
||||||
|
<img src="/img/brand/marco.png" width="70" />
|
||||||
|
</span>
|
||||||
|
<br />
|
||||||
|
<span class="text-dark fs-5">Welcome to</span> <br />
|
||||||
|
<h4 className="mb-2 ">
|
||||||
|
{" "}
|
||||||
|
<span class="text-blue ms-1">OnField</span>
|
||||||
|
<span className="text-green">Work</span>
|
||||||
|
<span class="text-dark">.com</span>
|
||||||
|
</h4>
|
||||||
|
</Link>
|
||||||
<p className="mb-4">
|
<p className="mb-4">
|
||||||
{IsLoginWithOTP
|
{IsLoginWithOTP
|
||||||
? "Enter your email to receive a one-time password (OTP)."
|
? "Enter your email to receive a one-time password (OTP)."
|
||||||
: "Please sign in to your account and start the adventure"}
|
: "Please sign in to your account and start the adventure"}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form id="formAuthentication" onSubmit={handleSubmit(onSubmit)}>
|
<form id="formAuthentication" onSubmit={handleSubmit(onSubmit)}>
|
||||||
{/* Email */}
|
{/* Email */}
|
||||||
<div className="mb-3 text-start">
|
<div className="mb-3 text-start">
|
||||||
@ -219,7 +229,6 @@ const LoginPage = () => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{/* Footer Text */}
|
{/* Footer Text */}
|
||||||
{!IsLoginWithOTP ? (
|
{!IsLoginWithOTP ? (
|
||||||
<p className="text-center mt-3">
|
<p className="text-center mt-3">
|
||||||
|
|||||||
@ -37,33 +37,36 @@ const registerSchema = z.object({
|
|||||||
const RegisterPage = () => {
|
const RegisterPage = () => {
|
||||||
const [registered, setRegristered] = useState(false);
|
const [registered, setRegristered] = useState(false);
|
||||||
const [industries, setIndustries] = useState([]);
|
const [industries, setIndustries] = useState([]);
|
||||||
const [Loading,setLoading] = useState(false)
|
const [Loading, setLoading] = useState(false);
|
||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
formState: { errors },reset
|
formState: { errors },
|
||||||
|
reset,
|
||||||
} = useForm({
|
} = useForm({
|
||||||
resolver: zodResolver(registerSchema),
|
resolver: zodResolver(registerSchema),
|
||||||
});
|
});
|
||||||
|
|
||||||
const onSubmit = async (data) => {
|
const onSubmit = async (data) => {
|
||||||
try {
|
try {
|
||||||
setLoading(true)
|
setLoading(true);
|
||||||
const response = await MarketRepository.requestDemo(data);
|
const response = await MarketRepository.requestDemo(data);
|
||||||
showToast("Your request has been sent successfully. Please stay in touch!");
|
showToast(
|
||||||
|
"Your request has been sent successfully. Please stay in touch!"
|
||||||
|
);
|
||||||
setRegristered(true);
|
setRegristered(true);
|
||||||
setLoading(false)
|
setLoading(false);
|
||||||
reset()
|
reset();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
showToast(error.message, "error");
|
showToast(error.message, "error");
|
||||||
setLoading(false)
|
setLoading(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchIndustries();
|
fetchIndustries();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => { }, [industries]);
|
useEffect(() => {}, [industries]);
|
||||||
|
|
||||||
const fetchIndustries = async () => {
|
const fetchIndustries = async () => {
|
||||||
try {
|
try {
|
||||||
@ -76,11 +79,20 @@ const RegisterPage = () => {
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
||||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
||||||
|
<div className="d-flex align-items-center justify-content-center ">
|
||||||
<h4 className="mb-2">Adventure starts here </h4>
|
<img src="/img/brand/marco.png" width="50" />
|
||||||
|
<Link aria-label="Go to Home Page" to="/">
|
||||||
|
<span class="app-brand-logo ">
|
||||||
|
<span class="text-blue fs-4">OnField</span>
|
||||||
|
<span className="text-green fs-4">Work</span>
|
||||||
|
<span class="text-dark fs-4">.com</span>
|
||||||
|
</span>
|
||||||
|
<br />
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<h5 className="mb-2">Adventure starts here </h5>
|
||||||
<p className="mb-3">Make your app management easy and fun!</p>
|
<p className="mb-3">Make your app management easy and fun!</p>
|
||||||
|
|
||||||
<form
|
<form
|
||||||
@ -88,65 +100,64 @@ const RegisterPage = () => {
|
|||||||
className="mb-2"
|
className="mb-2"
|
||||||
onSubmit={handleSubmit(onSubmit)}
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
>
|
>
|
||||||
|
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12 col-sm-6 mb-2 text-start">
|
<div className="col-12 col-sm-6 mb-2 text-start">
|
||||||
<label htmlFor="organizatioinName" className="form-label">
|
<label htmlFor="organizatioinName" className="form-label">
|
||||||
Organization Name
|
Organization Name
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control form-control-sm"
|
className="form-control form-control-sm"
|
||||||
id="organizatioinName"
|
id="organizatioinName"
|
||||||
{...register("organizatioinName")}
|
{...register("organizatioinName")}
|
||||||
name="organizatioinName"
|
name="organizatioinName"
|
||||||
placeholder="Enter your Organization Name"
|
placeholder="Enter your Organization Name"
|
||||||
autoFocus
|
autoFocus
|
||||||
/>
|
/>
|
||||||
{errors.organizatioinName && (
|
{errors.organizatioinName && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
style={{ fontSize: "12px" }}
|
style={{ fontSize: "12px" }}
|
||||||
>
|
>
|
||||||
{errors.organizatioinName.message}
|
{errors.organizatioinName.message}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="col-12 col-sm-6 mb-2 text-start">
|
<div className="col-12 col-sm-6 mb-2 text-start">
|
||||||
<label htmlFor="email" className="form-label">
|
<label htmlFor="email" className="form-label">
|
||||||
Email
|
Email
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control form-control-sm"
|
className="form-control form-control-sm"
|
||||||
id="email"
|
id="email"
|
||||||
name="email"
|
name="email"
|
||||||
placeholder="Enter your email"
|
placeholder="Enter your email"
|
||||||
{...register("email")}
|
{...register("email")}
|
||||||
/>
|
/>
|
||||||
{errors.email && (
|
{errors.email && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
style={{ fontSize: "12px" }}
|
style={{ fontSize: "12px" }}
|
||||||
>
|
>
|
||||||
{errors.email.message}
|
{errors.email.message}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-2 form-password-toggle text-start">
|
<div className="mb-2 form-password-toggle text-start">
|
||||||
<label className="form-label" htmlFor="contactperson">
|
<label className="form-label" htmlFor="contactperson">
|
||||||
Contact Person
|
Contact Person
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="contactperson"
|
id="contactperson"
|
||||||
{...register("contactPerson")}
|
{...register("contactPerson")}
|
||||||
className="form-control form-control-sm"
|
className="form-control form-control-sm"
|
||||||
name="contactPerson"
|
name="contactPerson"
|
||||||
placeholder="Contact Person"
|
placeholder="Contact Person"
|
||||||
aria-describedby="contactperson"
|
aria-describedby="contactperson"
|
||||||
/>
|
/>
|
||||||
{errors.contactPerson && (
|
{errors.contactPerson && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
@ -160,15 +171,15 @@ const RegisterPage = () => {
|
|||||||
<label className="form-label" htmlFor="contactnumber">
|
<label className="form-label" htmlFor="contactnumber">
|
||||||
Contact Number
|
Contact Number
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="contactnumber"
|
id="contactnumber"
|
||||||
{...register("contactNumber")}
|
{...register("contactNumber")}
|
||||||
className="form-control form-control-sm"
|
className="form-control form-control-sm"
|
||||||
name="contactNumber"
|
name="contactNumber"
|
||||||
placeholder="Contact Number"
|
placeholder="Contact Number"
|
||||||
aria-describedby="contactnumber"
|
aria-describedby="contactnumber"
|
||||||
/>
|
/>
|
||||||
{errors.contactNumber && (
|
{errors.contactNumber && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
@ -182,14 +193,14 @@ const RegisterPage = () => {
|
|||||||
<label className="form-label" htmlFor="contactnumber">
|
<label className="form-label" htmlFor="contactnumber">
|
||||||
About Organization
|
About Organization
|
||||||
</label>
|
</label>
|
||||||
<textarea
|
<textarea
|
||||||
id="about"
|
id="about"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
placeholder="About..."
|
placeholder="About..."
|
||||||
aria-label="about"
|
aria-label="about"
|
||||||
aria-describedby="about"
|
aria-describedby="about"
|
||||||
{...register("about")}
|
{...register("about")}
|
||||||
></textarea>
|
></textarea>
|
||||||
{errors.about && (
|
{errors.about && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
@ -203,20 +214,20 @@ const RegisterPage = () => {
|
|||||||
<label className="form-label" htmlFor="oragnizationSize">
|
<label className="form-label" htmlFor="oragnizationSize">
|
||||||
Organization Size
|
Organization Size
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-select form-select-sm"
|
className="form-select form-select-sm"
|
||||||
id="oragnizationSize"
|
id="oragnizationSize"
|
||||||
name="oragnizationSize"
|
name="oragnizationSize"
|
||||||
{...register("oragnizationSize")}
|
{...register("oragnizationSize")}
|
||||||
aria-label="Default select example"
|
aria-label="Default select example"
|
||||||
>
|
>
|
||||||
<option value="">Number of Employees</option>
|
<option value="">Number of Employees</option>
|
||||||
<option value="1-10">1-10</option>
|
<option value="1-10">1-10</option>
|
||||||
<option value="10-50">10-50</option>
|
<option value="10-50">10-50</option>
|
||||||
<option value="50-100">50-100</option>
|
<option value="50-100">50-100</option>
|
||||||
<option value="100-200">100-200</option>
|
<option value="100-200">100-200</option>
|
||||||
<option value="more than 200">more than 200</option>
|
<option value="more than 200">more than 200</option>
|
||||||
</select>
|
</select>
|
||||||
{errors.oragnizationSize && (
|
{errors.oragnizationSize && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
@ -230,24 +241,24 @@ const RegisterPage = () => {
|
|||||||
<label className="form-label" htmlFor="industryId">
|
<label className="form-label" htmlFor="industryId">
|
||||||
Industry
|
Industry
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
className="form-select form-select-sm"
|
className="form-select form-select-sm"
|
||||||
id="industryId"
|
id="industryId"
|
||||||
name="industryId"
|
name="industryId"
|
||||||
{...register("industryId")}
|
{...register("industryId")}
|
||||||
aria-label="Default select example"
|
aria-label="Default select example"
|
||||||
>
|
>
|
||||||
<option value="">Select Industry</option>
|
<option value="">Select Industry</option>
|
||||||
{industries.length > 0 ? (
|
{industries.length > 0 ? (
|
||||||
industries.map((item) => (
|
industries.map((item) => (
|
||||||
<option value={item.id} key={item.id}>
|
<option value={item.id} key={item.id}>
|
||||||
{item.name}
|
{item.name}
|
||||||
</option>
|
</option>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<option disabled>Loading industries...</option>
|
<option disabled>Loading industries...</option>
|
||||||
)}
|
)}
|
||||||
</select>
|
</select>
|
||||||
{errors.industryId && (
|
{errors.industryId && (
|
||||||
<div
|
<div
|
||||||
className="danger-text text-start"
|
className="danger-text text-start"
|
||||||
@ -276,7 +287,6 @@ const RegisterPage = () => {
|
|||||||
privacy policy & terms
|
privacy policy & terms
|
||||||
</Link>
|
</Link>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{errors.terms && (
|
{errors.terms && (
|
||||||
<div
|
<div
|
||||||
@ -291,7 +301,7 @@ const RegisterPage = () => {
|
|||||||
aria-label="Click me "
|
aria-label="Click me "
|
||||||
className="btn btn-primary d-grid w-100"
|
className="btn btn-primary d-grid w-100"
|
||||||
>
|
>
|
||||||
{Loading ? "Please Wait..." :" Request Demo"}
|
{Loading ? "Please Wait..." : " Request Demo"}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@ -313,4 +323,4 @@ const RegisterPage = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default RegisterPage;
|
export default RegisterPage;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user