master
mahdi andalib 3 years ago
parent 101a0350a4
commit ab36e19f16
  1. 205
      src/components/ReactTable4/EditRow.js
  2. 8
      src/components/ReactTable4/map.svg

@ -1,12 +1,25 @@
import React from "react"; import React from "react";
import map from "./map.svg";
const EditRow = ({ row, columns }) => { const EditRow = ({ row, columns }) => {
// console.log(columns); // console.log(columns);
return ( return (
<div <section
className="flex flex-wrap border-r-4 border-blue-600 p-2" className=" border-r-4 border-blue-600 p-2"
style={{ backgroundColor: "#F1F5FE" }} style={{ backgroundColor: "#F1F5FE" }}
> >
<div className="flex flex-row items-center mr-2 mt-2 mb-4">
<div
className="w-1 h-4 ml-1 rounded"
style={{ backgroundColor: "#65A9FF" }}
></div>
<p className="text-sm font-bold" style={{ color: "#00253A" }}>
اطلاعات هویتی
</p>
</div>
{/* table data */}
<div className="flex flex-wrap">
{/* 1 */} {/* 1 */}
<div className="flex flex-col my-2 mx-2"> <div className="flex flex-col my-2 mx-2">
<p <p
@ -17,8 +30,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.name} value={row.name}
/> />
</div> </div>
@ -32,8 +49,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.order_date} value={row.order_date}
/> />
</div> </div>
@ -47,8 +68,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.order_price} value={row.order_price}
/> />
</div> </div>
@ -62,8 +87,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.order_number} value={row.order_number}
/> />
</div> </div>
@ -77,8 +106,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.user_job} value={row.user_job}
/> />
</div> </div>
@ -92,8 +125,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.order_status} value={row.order_status}
/> />
</div> </div>
@ -107,8 +144,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.order_status} value={row.order_status}
/> />
</div> </div>
@ -122,8 +163,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.birth_place} value={row.birth_place}
/> />
</div> </div>
@ -137,8 +182,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.office_phone} value={row.office_phone}
/> />
</div> </div>
@ -152,8 +201,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.education} value={row.education}
/> />
</div> </div>
@ -167,8 +220,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.birth_day} value={row.birth_day}
/> />
</div> </div>
@ -182,8 +239,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.job} value={row.job}
/> />
</div> </div>
@ -197,8 +258,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.uni} value={row.uni}
/> />
</div> </div>
@ -212,8 +277,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.field_study} value={row.field_study}
/> />
</div> </div>
@ -227,8 +296,12 @@ const EditRow = ({ row, columns }) => {
</p> </p>
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.behaviour} value={row.behaviour}
/> />
</div> </div>
@ -240,14 +313,78 @@ const EditRow = ({ row, columns }) => {
> >
نشانی: نشانی:
</p> </p>
{/* <span
role="textbox"
className="text-xs rounded-sm bo, color: "#00253A",
rder p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
>
{row.address}{" "}
</span> */}
<input <input
type="text" type="text"
style={{ backgroundColor: "#F8FBFF", borderColor: "#C8DEF9" }} style={{
className="text-black text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20" backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
className="text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
value={row.address} value={row.address}
/> />
</div> </div>
</div> </div>
{/* title bottom */}
<div className="flex flex-row items-center mr-2 mt-2 mb-4">
<div
className="w-1 h-4 ml-1 rounded"
style={{ backgroundColor: "#65A9FF" }}
></div>
<p className="text-sm font-bold" style={{ color: "#00253A" }}>
اطلاعات شخصی
</p>
</div>
{/* bottom */}
<div className="flex flex-1 items-center">
{/* map */}
<div className="">
<span className="text-xs mr-2" style={{ color: "#65A9FF" }}>
لوکیشن مد نظر:
</span>
<img className="my-2 mr-2 border rounded" src={map} />
</div>
{/* formInput */}
<div className="flex flex-col ">
<span className="text-md mb-2" style={{ color: "#65A9FF" }}>
توضیحات:
</span>
<form className="flex flex-col ">
<input
placeholder="موضوع"
className="text-xs placeholder-blue-300 rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
style={{
backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
/>
<textarea
placeholder="متن"
className="resize-none placeholder-blue-300 text-xs rounded-sm border p-2 focus:outline-none focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20"
style={{
backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
color: "#00253A",
}}
></textarea>
</form>
</div>
{/* previous */}
<div className="flex flex-col ">
<span className="text-md mb-2" style={{ color: "#65A9FF" }}>
توضیحات قبلی:
</span>
</div>
</div>
</section>
); );
}; };

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 378 KiB

Loading…
Cancel
Save