(form "05008" (size 54  16)
  (heading "EXPAND SEGMENT BY BERM WIDTH")
  (label (position  2  3) (text "String"))
  (field "string" (position 10  3) (display_length 5) 
    (background) (input disallowed))

  (label (position  22  3) (text "Segment"))
  (field "segment" (position 32  3) (display_length 5) 
    (background) (input disallowed))

  (label (position  2  4) (text "Minimum Z value"))
  (field "min_z" (position 16  4) (display_length 10) 
    (background) 
    (decimals 3) (input disallowed))

  (label (position  2  5) (text "Maximum Z value"))
  (field "max_z" (position 16  5) (display_length 10) 
    (background) 
    (decimals 3) (input disallowed))


  (label (position  2  7) (text "Define the method of expansion"))
  (label (position  2  8) (text "Berm creation method"))
  (field "bench_creation_method" (position 20  8) (display_length 18) 
    (input allowed) (null disallowed) (translate lower) (max_length 24)
    (value_in "always" 
              "delta z to elevation >="  
              "delta z up to elevation >="  
              "delta z down to elevation >="
              "delta z to elevation <="  
              "delta z up to elevation <="  
              "delta z down to elevation <="
              "delta z to dtm >="  
              "delta z up to dtm >="  
              "delta z down to dtm >="
              "delta z to dtm <="  
              "delta z up to dtm <="  
              "delta z down to dtm <="
    )
    )

  (label (position  41  7) (text "Delta Z limit"))
  (field "delta_z_limit" (position 41  8) (display_length 10) (input allowed)
    (format real_8)  (null disallowed) (default "0") (low_bound 0.0)
    (dependency (value "bench_creation_method") != "always")
    )

  (label (position  2  9) (text "Limiting elevation"))
  (field "limiting_elevation" (position 20  9) (display_length 16) 
    (default "0")
    (input allowed) (null disallowed) (format real_8) (max_length 16)
    )

  (label (position  2  10) (text "Berm width method"))
  (field "bench_width_method" (position 20  10) (display_length 16) 
    (input allowed) (null disallowed) (translate lower) (max_length 16)
    (value_in "fixed width" "descriptions" "slope strings")
    )

  (label (position  2  11) (text "Default berm width"))
  (field "bench_width" (position 20  11) (display_length 10) (input allowed)
    (format real_8)  (null disallowed) (low_bound 0.1)
    )

  (label (position  2  12) (text "Berm gradient (%)"))
  (field "bench_gradient" (position 20  12) (display_length 10) (input allowed)
    (format real_8)  (null disallowed)
    )

  (label (position  2  13) (text "Horizontal direction"))
  (field "horizontal_direction" (position 20  13) (display_length 8) 
    (input allowed) (translate lower) (null disallowed) 
    (value_in "expand" "contract")
    )

  (default_buttons)
)
