# Generic Resource Deletion Confirmation Form
# Generated: {{ now_iso }}
# Purpose: Generic confirmation for any resource deletion

[meta]
title = "Resource Deletion Confirmation"
description = "Confirm permanent deletion of resource"
allow_cancel = true

# ============================================================================
# WARNING SECTION
# ============================================================================

[items.warning_header]
type = "text"
prompt = "⚠️ Warning: Permanent Deletion"
display_only = true

[items.resource_type]
type = "text"
prompt = "Resource Type"
default = "{{ resource_type | default('Resource') }}"
display_only = true

[items.resource_name]
type = "text"
prompt = "Resource Name"
default = "{{ resource_name | default('unknown') }}"
display_only = true

[items.resource_id]
type = "text"
prompt = "Resource ID"
help = "Unique identifier of the resource"
default = "{{ resource_id | default('') }}"
display_only = true

[items.resource_status]
type = "text"
prompt = "Current Status"
default = "{{ resource_status | default('unknown') }}"
display_only = true

# ============================================================================
# IMPACT INFORMATION
# ============================================================================

[items.impact_header]
type = "text"
prompt = "Deletion Impact"
display_only = true

[items.irreversible_warning]
type = "text"
prompt = "This action is irreversible"
help = "There is no way to undo this operation"
display_only = true

[items.data_loss_warning]
type = "text"
prompt = "All associated data will be permanently lost"
help = "This includes configurations, logs, and cached data"
display_only = true

# ============================================================================
# CONFIRMATION
# ============================================================================

[items.confirm_text]
type = "text"
prompt = "Type 'DELETE' to Confirm"
help = "This prevents accidental deletion"
required = true

[items.final_confirm]
type = "confirm"
prompt = "I understand this is permanent and all data will be lost"
required = true

[items.proceed]
type = "confirm"
prompt = "Delete {{ resource_type | default('resource') }} '{{ resource_name | default('unknown') }}'?"
required = true
