{{ "ops.rem.noCloud" | t }}

{{ "ops.rem.list.title" | t }}

@if (listState() === "loading") {

{{ "status.loading" | t }}

} @if (listState() === "error") { } @if (listState() === "ok") { @if (plans().length === 0) {

{{ "ops.rem.list.empty" | t }}

} @else {
@for (p of plans(); track p.plan_id) { }
{{ "ops.rem.list.caption" | t }}
{{ "ops.rem.col.id" | t }} {{ "ops.rem.col.title" | t }} {{ "ops.rem.col.type" | t }} {{ "ops.rem.col.state" | t }} {{ "ops.rem.col.findings" | t }} {{ "ops.rem.open" | t }}
{{ p.plan_id }} {{ p.title }} {{ p.type }} {{ "ops.rem.state." + p.state | t }} {{ p.finding_ids.length }}
} }

{{ "ops.rem.create.title" | t }}

{{ "ops.rem.create.mode" | t }}
@if (createMode() === "investigation") {
@if (invState() === "loading") {

{{ "status.loading" | t }}

} @if (invState() === "error") { } @if (invState() === "ok") {
@if (completedInvestigations().length === 0) {

{{ "ops.rem.create.noCompleted" | t }}

}
@if (findingsState() === "loading") {

{{ "status.loading" | t }}

} @if (findingsState() === "error") { } @if ( findingsState() === "ok" && invForm.controls.investigation.value && findings().length === 0 ) {

{{ "ops.rem.create.findingEmpty" | t }}

}
}
} @else {
@if ( manualForm.controls.explanation.invalid && manualForm.controls.explanation.touched ) { }

{{ "ops.rem.create.recommendationsHint" | t }}

}
@if (createError(); as detail) { } @if (createdPlanId(); as id) {

{{ "ops.rem.create.created" | t }} {{ id }}

}
@if (detailState() !== "idle") {

{{ "ops.rem.detail.title" | t }}

@if (detailState() === "loading") {

{{ "status.loading" | t }}

} @if (detailState() === "error") { } @if (detailState() === "ok" && plan(); as p) {
{{ "ops.rem.col.id" | t }}
{{ p.plan_id }}
{{ "ops.rem.field.state" | t }}
{{ "ops.rem.state." + p.state | t }}
{{ "ops.rem.field.type" | t }}
{{ p.remediation_type }}
{{ "ops.rem.field.approvalRequired" | t }}
{{ (p.approval_required ? "ops.yes" : "ops.no") | t }}
{{ "ops.rem.field.approvedBy" | t }}
{{ p.approved_by ?? "—" }}
{{ "ops.rem.field.createdAt" | t }}
{{ formatIso(p.created_at) }}
{{ "ops.rem.field.expiresAt" | t }}
{{ formatIso(p.expires_at) }}
{{ "ops.rem.field.findings" | t }}
@for (f of p.finding_ids; track f) { {{ f }} } @empty { — }
{{ "ops.rem.field.evidence" | t }}
@for (e of p.evidence_ids; track e) { {{ e }} } @empty { — }
{{ "ops.rem.field.permissions" | t }}
@for (perm of p.required_permissions; track perm) { {{ perm }} } @empty { — }

{{ "ops.rem.changes" | t }}

@if (p.proposed_changes.length === 0) {

{{ "ops.cmp.none" | t }}

} @else {
@for (c of p.proposed_changes; track c.target + c.change) { }
{{ "ops.rem.changesCaption" | t }}
{{ "ops.rem.col.target" | t }} {{ "ops.rem.col.change" | t }} {{ "ops.rem.col.params" | t }} {{ "ops.rem.col.localAction" | t }}
{{ c.target }} {{ c.change }} {{ paramsJson(c.params) }} @if (c.local_action; as action) { {{ action }} } @else { {{ "ops.rem.localAction.none" | t }} }
}
@if (p.preconditions.length) {

{{ "ops.rem.preconditions" | t }}

    @for (x of p.preconditions; track x) {
  • {{ x }}
  • }
} @if (p.risks.length) {

{{ "ops.rem.risks" | t }}

    @for (x of p.risks; track x) {
  • {{ x }}
  • }
} @if (p.expected_effects.length) {

{{ "ops.rem.expected" | t }}

    @for (x of p.expected_effects; track x) {
  • {{ x }}
  • }
} @if (p.validation_procedure.length) {

{{ "ops.rem.validation" | t }}

    @for (x of p.validation_procedure; track x) {
  • {{ x }}
  • }
}
@if (p.rollback_proposal) {

{{ "ops.rem.rollback" | t }}

{{ p.rollback_proposal }}

} @if (p.rollback_limitations.length) {

{{ "ops.rem.rollbackLimitations" | t }}

    @for (x of p.rollback_limitations; track x) {
  • {{ x }}
  • }
} @if (p.state_history.length) {

{{ "ops.rem.history" | t }}

@for (h of p.state_history; track $index) { }
{{ "ops.rem.historyCaption" | t }}
{{ "ops.rem.col.from" | t }} {{ "ops.rem.col.to" | t }} {{ "ops.rem.col.note" | t }} {{ "ops.rem.col.at" | t }}
{{ h.from || "—" }} {{ h.to }} {{ h.note }} {{ formatIso(h.at) }}
}

{{ "ops.rem.actions" | t }}

@if (canApprove()) {

{{ "ops.rem.approverRequired" | t }}

} @if (canReject()) {
}
@if (canSubmit()) { } @if (canApprove()) { } @if (canReject()) { } @if (canExecuteLocal()) { }

{{ "ops.rem.approveNote" | t }}

@if (acting(); as name) {

{{ "ops.rem.working" | t }} {{ name }}

} @if (actionError(); as detail) { } @if (actionNote(); as note) {

{{ note }}

}
@if (dryRun(); as dr) {

{{ "ops.rem.dryRunResult" | t }}

{{ dr.note }}

@if (dr.would_change.length) {
@for (c of dr.would_change; track c.target + c.change) { }
{{ "ops.rem.col.target" | t }} {{ "ops.rem.col.change" | t }} {{ "ops.rem.col.executable" | t }} {{ "ops.rem.col.requires" | t }}
{{ c.target }} {{ c.change }} @if (c.executable_locally) { {{ "ops.yes" | t }} } @else { {{ "ops.no" | t }} } {{ c.requires }}
} @if (dr.preconditions.length) {

{{ "ops.rem.preconditions" | t }}

    @for (x of dr.preconditions; track x) {
  • {{ x }}
  • }
} @if (dr.risks.length) {

{{ "ops.rem.risks" | t }}

    @for (x of dr.risks; track x) {
  • {{ x }}
  • }
} @if (dr.rollback) {

{{ "ops.rem.rollback" | t }}

{{ dr.rollback }}

}
} @if (execResult(); as ex) {

{{ "ops.rem.execResult" | t }}

{{ ex.note }}

@for (r of ex.results; track r.target + r.status) { }
{{ "ops.rem.col.target" | t }} {{ "ops.rem.col.status" | t }} {{ "ops.rem.col.reason" | t }}
{{ r.target }} {{ r.status }} @if (r.reason) { {{ r.reason }} } @if (r.result !== undefined) { {{ jsonVal(r.result) }} } @if (r.action && !r.reason && r.result === undefined) { {{ r.action }} }
} }
}