feat(c2): integrate Mythic command and control (sprint 8) #11
@@ -124,7 +124,7 @@ export function EngagementFormPage(): JSX.Element {
|
|||||||
const submitting = createMutation.isPending || patchMutation.isPending;
|
const submitting = createMutation.isPending || patchMutation.isPending;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-xl max-w-2xl">
|
<div className="flex flex-col gap-xl">
|
||||||
<header>
|
<header>
|
||||||
<h1 className="text-[32px] font-medium leading-none">
|
<h1 className="text-[32px] font-medium leading-none">
|
||||||
{editing ? 'Edit engagement' : 'New engagement'}
|
{editing ? 'Edit engagement' : 'New engagement'}
|
||||||
@@ -136,6 +136,13 @@ export function EngagementFormPage(): JSX.Element {
|
|||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<div
|
||||||
|
className={
|
||||||
|
editing && canEditEngagements
|
||||||
|
? 'grid grid-cols-1 lg:grid-cols-2 gap-xl items-start'
|
||||||
|
: 'max-w-2xl'
|
||||||
|
}
|
||||||
|
>
|
||||||
<form onSubmit={onSubmit} noValidate className="card-product flex flex-col gap-md">
|
<form onSubmit={onSubmit} noValidate className="card-product flex flex-col gap-md">
|
||||||
<FormField label="Name" htmlFor="eng-name" required error={errors.name}>
|
<FormField label="Name" htmlFor="eng-name" required error={errors.name}>
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -222,5 +229,6 @@ export function EngagementFormPage(): JSX.Element {
|
|||||||
<C2ConfigCard engagementId={numericId} />
|
<C2ConfigCard engagementId={numericId} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user