2022-01-21 14:10:36 +00:00
|
|
|
import { FormGroup } from "@patternfly/react-core";
|
2022-12-07 14:23:12 +00:00
|
|
|
import { useTranslation } from "react-i18next";
|
2022-01-21 14:10:36 +00:00
|
|
|
|
|
|
|
import { HelpItem } from "../../../components/help-enabler/HelpItem";
|
2022-12-07 14:23:12 +00:00
|
|
|
import { useParams } from "../../../utils/useParams";
|
|
|
|
import type { PolicyDetailsParams } from "../../routes/PolicyDetails";
|
2022-01-21 14:10:36 +00:00
|
|
|
import { DecisionStrategySelect } from "../DecisionStragegySelect";
|
2022-12-07 14:23:12 +00:00
|
|
|
import { ResourcesPolicySelect } from "../ResourcesPolicySelect";
|
2022-01-21 14:10:36 +00:00
|
|
|
|
|
|
|
export const Aggregate = () => {
|
|
|
|
const { t } = useTranslation("clients");
|
|
|
|
const { id } = useParams<PolicyDetailsParams>();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<FormGroup
|
|
|
|
label={t("applyPolicy")}
|
|
|
|
fieldId="policies"
|
|
|
|
labelIcon={
|
|
|
|
<HelpItem
|
|
|
|
helpText="clients-help:applyPolicy"
|
|
|
|
fieldLabelId="clients:policies"
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
>
|
2022-04-27 15:30:13 +00:00
|
|
|
<ResourcesPolicySelect name="policies" clientId={id} />
|
2022-01-21 14:10:36 +00:00
|
|
|
</FormGroup>
|
|
|
|
<DecisionStrategySelect helpLabel="policyDecisionStagey" />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|