Merge branch 'dev' into feature/ora-mt-262-create-folder
This commit is contained in:
commit
8036492f6b
@ -38,6 +38,8 @@ export default function Button(props: IProps) {
|
||||
|
||||
const attributes = { ...props, variant, disabled, type, isloading, fullwidth };
|
||||
delete attributes.icon;
|
||||
delete attributes.iconStyle;
|
||||
delete attributes.iconPosition;
|
||||
return (
|
||||
<button {...attributes} onClick={onClick} className={classes["root"]} type={type}>
|
||||
{icon && iconposition === "left" && <Image src={icon} style={iconstyle} alt={"button icon"} />}
|
||||
|
@ -12,9 +12,12 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
gap: 32px;
|
||||
width: 100%;
|
||||
|
||||
@media (max-width: $screen-l) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@ -23,7 +26,17 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.edit-icon {
|
||||
margin-left: 48px;
|
||||
}
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
flex-wrap: wrap;
|
||||
|
||||
.edit-icon {
|
||||
margin-left: 0px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
}
|
@ -19,7 +19,7 @@ export default function FolderBoxInformation(props: IProps) {
|
||||
<div className={classes["content"]}>
|
||||
{isDescription ? (
|
||||
<div className={classes["text-container"]}>
|
||||
<Typography typo={ITypo.NAV_INPUT_16}>Note dossier :</Typography>
|
||||
<Typography typo={ITypo.NAV_INPUT_16}>Note dossier</Typography>
|
||||
<Typography typo={ITypo.P_18}>{props.folder.description ?? "..."}</Typography>
|
||||
</div>
|
||||
) : (
|
||||
|
@ -22,7 +22,9 @@ export default class FolderContainer extends React.Component<IProps, IState> {
|
||||
return (
|
||||
<div className={classes["root"]} onClick={this.onSelectedFolder}>
|
||||
<div className={classes["left-side"]}>
|
||||
<Typography typo={ITypo.P_16}>{"Dossier ".concat(this.props.folder.folder_number)}</Typography>
|
||||
<Typography typo={ITypo.P_16}>
|
||||
{this.props.folder.folder_number.concat(" - ").concat(this.props.folder.name)}
|
||||
</Typography>
|
||||
{this.countPendingDocuments() > 0 && (
|
||||
<div className={classes["warning"]}>
|
||||
<WarningBadge />
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
.root {
|
||||
position: relative;
|
||||
|
||||
textarea {
|
||||
resize: none;
|
||||
height: auto;
|
||||
@ -12,6 +13,7 @@
|
||||
font-size: 18px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.input {
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
@ -24,13 +26,14 @@
|
||||
border: 1px solid $grey-medium;
|
||||
|
||||
&:focus {
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
transform: translateY(-35px);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
&:not([value=""]) {
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
transform: translateY(-35px);
|
||||
transition: transform;
|
||||
}
|
||||
@ -38,27 +41,48 @@
|
||||
|
||||
&[type="number"] {
|
||||
&:focus {
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
transform: translateY(-35px);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
&:not([value=""]) {
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
transform: translateY(-35px);
|
||||
transition: transform;
|
||||
}
|
||||
}
|
||||
|
||||
&::-webkit-inner-spin-button,
|
||||
&::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* For Chrome, Safari, and Opera */
|
||||
&::-webkit-inner-spin-button,
|
||||
&::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
/* For IE 10+ */
|
||||
&::-ms-inner-spin-button,
|
||||
&::-ms-outer-spin-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:not([value=""]) {
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
transform: translateY(-35px);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
z-index: 2;
|
||||
top: 35%;
|
||||
margin-left: 8px;
|
||||
@ -82,7 +106,7 @@
|
||||
height: 70px;
|
||||
border: 1px solid $grey-medium;
|
||||
|
||||
~ .fake-placeholder {
|
||||
~.fake-placeholder {
|
||||
z-index: 2;
|
||||
top: -12px;
|
||||
margin-left: 8px;
|
||||
|
@ -7,7 +7,7 @@ type IProps = {
|
||||
};
|
||||
export default class ProgressBar extends React.Component<IProps> {
|
||||
public override render(): JSX.Element {
|
||||
const quantity = this.props.percentage.toFixed(2).toString().concat("%");
|
||||
const quantity = this.props.percentage.toFixed(0).toString().concat("%");
|
||||
return (
|
||||
<div className={classes["root"]}>
|
||||
<div className={classes["progress"]} style={{ width: quantity }}>
|
||||
|
@ -13,15 +13,43 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@media (max-width: $screen-ls) {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.container {
|
||||
>:first-child {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icons {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 24px;
|
||||
gap: 64px;
|
||||
|
||||
@media (max-width: $screen-l) {
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
gap: 24px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-s) {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
@ -4,4 +4,5 @@
|
||||
position: fixed;
|
||||
bottom: 16px;
|
||||
right: 24px;
|
||||
opacity: 0.3;
|
||||
}
|
@ -8,12 +8,12 @@
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
height: calc(100vh - 83px);
|
||||
width: 100%;
|
||||
|
||||
.sides {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import DefaultNotaryDashboard, { IDashBoardFolder } from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";
|
||||
import BasePage from "../Base";
|
||||
import BasePage from "../../Base";
|
||||
import classes from "./classes.module.scss";
|
||||
import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography";
|
||||
import RadioBox from "@Front/Components/DesignSystem/RadioBox";
|
@ -3,18 +3,23 @@
|
||||
.root {
|
||||
width: 100%;
|
||||
padding-bottom: 32px;
|
||||
|
||||
.no-client {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
padding: 72px;
|
||||
|
||||
.title {
|
||||
margin-bottom: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.client {
|
||||
display: grid;
|
||||
gap: 32px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import classes from "./classes.module.scss";
|
||||
import { IDashBoardFolder } from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";
|
||||
import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography";
|
||||
import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography";
|
||||
import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button";
|
||||
import PlusIcon from "@Assets/Icons/plus.svg";
|
||||
import UserFolder from "@Front/Components/DesignSystem/UserFolder";
|
||||
@ -17,11 +17,20 @@ export default class ClientSection extends React.Component<IProps, IState> {
|
||||
return (
|
||||
<div className={classes["root"]}>
|
||||
{this.doesFolderHaveCustomer() ? (
|
||||
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
||||
<>
|
||||
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
||||
<Link href={"/dossier/".concat(this.props.folder.uid).concat("/ajouter-client")}>
|
||||
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
||||
Ajouter un client
|
||||
</Button>
|
||||
</Link>
|
||||
</>
|
||||
) : (
|
||||
<div className={classes["no-client"]}>
|
||||
<div className={classes["title"]}>
|
||||
<Typography typo={ITypo.P_18}>Aucun client n’est associé au dossier.</Typography>
|
||||
<Typography typo={ITypo.P_18} color={ITypoColor.GREY}>
|
||||
Aucun client n’est associé au dossier.
|
||||
</Typography>
|
||||
</div>
|
||||
<Link href={"/dossier/".concat(this.props.folder.uid).concat("/ajouter-client")}>
|
||||
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
@ -33,40 +33,52 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
.second-box {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
@media (max-width: $screen-m) {
|
||||
flex-wrap: wrap;
|
||||
|
||||
.progress-bar {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.button-container {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
:first-child {
|
||||
margin-right: 12px;
|
||||
}
|
||||
> * {
|
||||
margin: auto;
|
||||
}
|
||||
@media (max-width: $screen-m) {
|
||||
:first-child {
|
||||
margin-right: 0;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
> * {
|
||||
width: 100%;
|
||||
.title {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.modal-title {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.second-box {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.button-container {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
||||
:first-child {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
>* {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
@media (max-width: $screen-m) {
|
||||
:first-child {
|
||||
margin-right: 0;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
>* {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-title {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import DefaultNotaryDashboard, { IDashBoardFolder } from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";
|
||||
import BasePage from "../Base";
|
||||
import BasePage from "../../Base";
|
||||
import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography";
|
||||
import classes from "./classes.module.scss";
|
||||
import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button";
|
||||
@ -40,7 +40,9 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
|
||||
<div className={classes["folder-informations"]}>
|
||||
<div className={classes["folder-header"]}>
|
||||
<div className={classes["header"]}>
|
||||
<Typography typo={ITypo.H1Bis}>Informations du dossier</Typography>
|
||||
<div className={classes["title"]}>
|
||||
<Typography typo={ITypo.H1Bis}>Informations du dossier</Typography>
|
||||
</div>
|
||||
<Button variant={EButtonVariant.LINE} icon={ChevronIcon}>
|
||||
Modifier les collaborateurs
|
||||
</Button>
|
||||
@ -50,7 +52,7 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
|
||||
<FolderBoxInformation folder={this.state.selectedFolder} isDescription />
|
||||
</div>
|
||||
<div className={classes["progress-bar"]}>
|
||||
<QuantityProgressBar title="Complétion du dossier" total={100} currentNumber={0} />
|
||||
<QuantityProgressBar title="Complétion du dossier client" total={100} currentNumber={0} />
|
||||
</div>
|
||||
{this.doesFolderHaveCustomer() && <ClientSection folder={this.state.selectedFolder} />}
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
import AddClientToFolder from "@Front/Components/Layouts/AddClientToFolder";
|
||||
import AddClientToFolder from "@Front/Components/Layouts/Folder/AddClientToFolder";
|
||||
|
||||
export default function Route() {
|
||||
return <AddClientToFolder />;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import FolderInformation from "@Front/Components/Layouts/FolderInformation";
|
||||
import FolderInformation from "@Front/Components/Layouts/Folder/FolderInformation";
|
||||
|
||||
export default function Route() {
|
||||
return <FolderInformation />;
|
||||
|
Loading…
x
Reference in New Issue
Block a user