(form "05012" (size 80  12)
  (heading "EDIT RAMP DEFINITIONS")
  (label (position 2   4) (text "Delete"))
  (scroll_block "ramps" (position  8  5) (size 70  5)
     (extra  6  2)
     (scroll_size 108 100)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 100)))
    (top
      (label (position  1  0) (foreground (user_option "form_text_highlight"))
        (text "Ramp characteristics and geometry"))
      (label (position  1  1) (text "Name"))
      (label (position  13  1) (text "String"))
      (label (position  22  1) (text "Type"))
      (label (position  38  1) (text "Width"))
      (label (position  50  1) (text "Gradient 1:"))
      (label (position  62  1) (text "Gradient method"))

      (label (position  77  0) (foreground (user_option "form_text_highlight"))
        (text "Berm crossing characteristics"))
      (label (position  77  1) (text "Method"))
      (label (position  96  1) (text "Taper dist."))

      (label (position 108  0) (foreground (user_option "form_text_highlight"))
        (text "Switchback characteristics"))
      (label (position  108  1) (text "Switchback angle"))

      (label (position  120  1) (text "Switchback inner radius"))

    )
 
    (left
      (field "delete_ramp" (position 1  0) (display_length 1) (default "N")
        (translate upper) (max_length 1) (input allowed) (null disallowed)
        (value_in "Y" "N") 
        )
    )

    (main
      (field "ramp_name" (position 1  0) (display_length 10) 
        (translate none) (max_length 10) (input disallowed) (null disallowed)
        (dependency (value "delete_ramp(0)") == "N")
      )
    
      (field "ramp_string" (position 13  0) (display_length 4) (max_length 5)
        (input disallowed) (translate lower) (null disallowed)
        (dependency (value "delete_ramp(0)") == "N")
      )
    
      (field "ramp_type" (position 22  0) (display_length 14) (max_length 14)
        (input disallowed) (translate lower) (null disallowed)
        (value_in "clockwise" "anti-clockwise" "all cut")
        (dependency (value "delete_ramp(0)") == "N")
      )
    
      (field "ramp_width" (position 38  0) (display_length 10) (max_length 10)
        (input allowed) (format real_8) (low_bound 1) (null disallowed)
        (dependency (value "delete_ramp(0)") == "N")
        )
    
      (field "ramp_gradient" (position 50  0) (display_length 10) 
        (input allowed) (format real_8) (null disallowed) (low_bound .01)
        (dependency (value "delete_ramp(0)") == "N")
        )
    
      (field "ramp_grade_calc_method" (position 62  0) (display_length 12) 
        (input allowed) (translate lower) (null disallowed)
        (value_in "inside edge" "outside edge" "centre of ramp")
        (dependency (value "delete_ramp(0)") == "N")
        )
    
      (field "berm_crossing_method" (position 77  0) (display_length 17) 
        (input allowed) (translate lower)  (null disallowed) (max_length 26)
        (value_in "exit at crest" "exit at toe" "exit at crest and toe" "no berm exit")
        (dependency (value "delete_ramp(0)") == "N")
        (help ""))
    
      (field "berm_taper_distance" (position 96  0) (display_length 10) 
        (input allowed) (format real_8)  (null disallowed) (low_bound 0.0)
        (dependency (value "delete_ramp(0)") == "N"))

      (field "switchback_angle" (position 108  0) (display_length 10) 
        (input allowed) (null disallowed) (format decimal_angle) (low_bound 0.0) (default "180.0")
        (dependency (value "delete_ramp(0)") == "N")
        (help ""))
    
      (field "switchback_inner_radius" (position 120  0) (display_length 10) 
        (input allowed) (null disallowed) (format real_8) (low_bound 0.0) (default "0.0")
        (dependency (value "delete_ramp(0)") == "N")
        (help ""))

    )
  )

  (default_buttons)
)
