# Task Service Deletion Confirmation Form
# Generated: {{ now_iso }}
# Purpose: Confirm destructive taskserv deletion operation

[meta]
allow_cancel = true
description = "This action will permanently delete the task service and all associated data"
title = "Task Service Deletion Confirmation"

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

[items.warning_header]
display_only = true
prompt = "⚠️ WARNING: This Action Cannot Be Undone"
type = "text"

[items.warning_text]
display_only = true
help = """
• Permanently remove the service definition
• Delete all containers and images
• Remove all associated volumes and data
• Terminate all running tasks
• Invalidate all service references"""
prompt = "Task Service Deletion will:"
type = "text"

# ============================================================================
# TASKSERV INFORMATION
# ============================================================================

[items.taskserv_info_header]
display_only = true
prompt = "Task Service to Delete"
type = "text"

[items.taskserv_name]
default = "{{ taskserv_name | default('unknown') }}"
display_only = true
help = "Name of the task service being deleted"
prompt = "Service Name"
type = "text"

[items.taskserv_type]
default = "{{ taskserv_type | default('unknown') }}"
display_only = true
help = "Type of service (e.g., kubernetes, postgres, redis)"
prompt = "Service Type"
type = "text"

[items.taskserv_server]
default = "{{ taskserv_server | default('unknown') }}"
display_only = true
help = "Server hosting this task service"
prompt = "Deployed On Server"
type = "text"

[items.taskserv_status]
default = "{{ taskserv_status | default('unknown') }}"
display_only = true
help = "Operational status of the service"
prompt = "Current Status"
type = "text"

# ============================================================================
# IMPACT ANALYSIS
# ============================================================================

[items.impact_header]
display_only = true
prompt = "Services That Depend on This"
type = "text"

[items.dependent_services]
default = "{{ dependent_services | default('none') }}"
display_only = true
help = "These services will be affected by deletion"
prompt = "Dependent Services"
type = "text"

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

[items.confirm_header]
display_only = true
prompt = "Confirm Deletion"
type = "text"

[items.confirmation_text]
help = "This prevents accidental deletion. You must type the exact word DELETE"
prompt = "Type 'DELETE' to Confirm"
required = true
type = "text"

[items.final_confirm]
help = "Check this box to confirm you understand the consequences"
prompt = "I understand this is permanent and will affect dependent services"
required = true
type = "confirm"

[items.proceed]
help = "Final confirmation to proceed with deletion"
prompt = "Delete {{ taskserv_type | default('task service') }} '{{ taskserv_name | default('unknown') }}'?"
required = true
type = "confirm"
