|
|
@ -293,32 +293,26 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi |
|
|
|
</FormGroup> |
|
|
|
</FormGroup> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</Row> |
|
|
|
{ |
|
|
|
|
|
|
|
statusCustomer === false && ( |
|
|
|
|
|
|
|
<Row> |
|
|
|
<Row> |
|
|
|
<Col md={6}> |
|
|
|
<Col md={6}> |
|
|
|
<FormGroup> |
|
|
|
<Label className="capitalize">{t('Customer')}</Label> |
|
|
|
<Label className="capitalize">{t('roles')} <span style={{ color: "red" }}>*</span></Label> |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusCustomer} onChange={(e) => setStatusCustomer(e)}> |
|
|
|
<Select showSearch defaultValue={roleId} onChange={(val) => setRoleId(val)} placeholder={t('selectRole')} style={{ width: '100%' }}> |
|
|
|
<Option value={true}>Ya</Option> |
|
|
|
{setupSelectRole()} |
|
|
|
<Option value={false}>Tidak</Option> |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
|
</FormGroup> |
|
|
|
|
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col md={6}> |
|
|
|
<Col md={6}> |
|
|
|
<FormGroup> |
|
|
|
<Label className="capitalize">Status</Label> |
|
|
|
<Label className="capitalize">{t('division')} <span style={{ color: "red" }}>*</span></Label> |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusResource} onChange={(e) => setStatusResource(e)}> |
|
|
|
<Select showSearch defaultValue={divisionId} onChange={(val) => setDivisionId(val)} placeholder={t('selectDivision')} style={{ width: '100%' }}> |
|
|
|
<Option value={'active'}>Active</Option> |
|
|
|
{setupSelectDivisi()} |
|
|
|
<Option value={'inactive'}>Inactive</Option> |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
|
</FormGroup> |
|
|
|
|
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</Row> |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
<Row> |
|
|
|
<Row> |
|
|
|
{ |
|
|
|
{ |
|
|
|
role_name === 'Super Admin' && ( |
|
|
|
role_name === 'Super Admin' && ( |
|
|
|
<Col md={6}> |
|
|
|
<Col md={6} style={{ marginTop:'15px' }}> |
|
|
|
<FormGroup> |
|
|
|
<FormGroup> |
|
|
|
<Label className="capitalize">Assign Company Project<span style={{ color: "red" }}>*</span></Label> |
|
|
|
<Label className="capitalize">Assign Company Project<span style={{ color: "red" }}>*</span></Label> |
|
|
|
<Select |
|
|
|
<Select |
|
|
@ -341,20 +335,28 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
<Col md={6}> |
|
|
|
{ |
|
|
|
<Label className="capitalize">{t('Customer')}</Label> |
|
|
|
statusCustomer === false && ( |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusCustomer} onChange={(e) => setStatusCustomer(e)}> |
|
|
|
<> |
|
|
|
<Option value={true}>Ya</Option> |
|
|
|
<Col md={6} style={{ marginTop: statusCustomer === false ? '15px' : '0px' }}> |
|
|
|
<Option value={false}>Tidak</Option> |
|
|
|
<FormGroup> |
|
|
|
|
|
|
|
<Label className="capitalize">{t('roles')}</Label> |
|
|
|
|
|
|
|
<Select showSearch defaultValue={roleId} onChange={(val) => setRoleId(val)} placeholder={t('selectRole')} style={{ width: '100%' }}> |
|
|
|
|
|
|
|
{setupSelectRole()} |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
|
|
|
|
|
</FormGroup> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
<Col md={6}> |
|
|
|
<Col md={6} style={{ marginTop: statusCustomer === false ? '15px' : '0px' }}> |
|
|
|
<Label className="capitalize">Status</Label> |
|
|
|
<FormGroup> |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusResource} onChange={(e) => setStatusResource(e)}> |
|
|
|
<Label className="capitalize">{t('division')} </Label> |
|
|
|
<Option value={'active'}>Active</Option> |
|
|
|
<Select showSearch defaultValue={divisionId} onChange={(val) => setDivisionId(val)} placeholder={t('selectDivision')} style={{ width: '100%' }}> |
|
|
|
<Option value={'inactive'}>Inactive</Option> |
|
|
|
{setupSelectDivisi()} |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
|
|
|
|
|
</FormGroup> |
|
|
|
</Col> |
|
|
|
</Col> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
<Col md={6} style={{ marginTop:'13px' }}> |
|
|
|
<Col md={6} style={{ marginTop:'13px' }}> |
|
|
|
<Label className="capitalize">{t('restrictions')}</Label> |
|
|
|
<Label className="capitalize">{t('restrictions')}</Label> |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusRestriction} onChange={(e) => setStatusRestriction(e)}> |
|
|
|
<Select style={{ width: "100%" }} defaultValue={statusRestriction} onChange={(e) => setStatusRestriction(e)}> |
|
|
|