(form "01133" (size 50 20)
  (help "01133_TIP_0")

  (heading "Blast Design Defaults")

  (field "is_metric" (position 18  3) (display_length 24) (input allowed)
    (value_in "true" "false") (null disallowed) (max_length 32))
  
  (field "diameter"
    (position 12 3)
    (display_length 10)
    (max_length 8)
    (low_bound 0.01)
    (format real_8)
    (input allowed)
    (null disallowed)
    (help "01133_TIP_1")
    )

  (field "mass_units"
    (position 12 4)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (auto_next off)
    )
  (field "length_units"
    (position 12 4)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (auto_next off)
    )
  (field "volume_units"
    (position 12 4)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (auto_next off)
    )

  (label(position 25 2)
    (foreground (user_option "form_text_highlight"))
    (text "Boosters")
    )

  (scroll_block "boosters" 
    (position  25 4)
    (size 20 3)
    (extra  0  1)
    (scroll_size 20 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 50)))
    (top
      (label(position  1 0)(text "Booster Name")))
      
    (main
      (field "booster"
        (position 1 0)
        (display_length  15)
        (input allowed)
        (null disallowed)
        (max_length 30)
        (auto_next off)
        (help "01133_TIP_3"))
      (field "booster_mass"
        (position 24 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))
      (field "booster_cost"
        (position 24 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))
      ))

  (scroll_block "drillRigs" 
    (position  50 4)
    (size 20 3)
    (extra  0  1)
    (scroll_size 20 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 20)))
    (top)      
    (main
      (field "rig"
        (position 1 0)
        (display_length  15)
        (input allowed)
        (max_length 30)
        (auto_next off))
      ))
  
  (scroll_block "explosives" 
    (position  5 9)
    (size 40 3)
    (extra  0  1)
    (scroll_size 40 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 20)))
    (top)
    (main
      (field "explosive"
        (position 1 0)
        (display_length  20)
        (input allowed)
        (null disallowed)
        (max_length 30)
        (auto_next off))

      (field "explosive_sg"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))

      (field "explosive_cost"
        (position 24 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))
      ))


  (label(position 2 13)
    (foreground (user_option "form_text_highlight"))
    (text "Detonators")
    )

  (scroll_block "detonators" 
    (position  5 15)
    (size 40 3)
    (extra  0  1)
    (scroll_size 40 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 20)))
    (top)

    (main
      (field "detonator"
        (position 1 0)
        (display_length  30)
        (input allowed)
        (null disallowed)
        (max_length 30)
        (auto_next off)
        (value_in non_exclusive)
        (help "01133_TIP_3"))
      (field "delay"
        (position 1 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (value_in non_exclusive)
        (max_length 30)
        (auto_next off))
      (field "delay_time"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))
      (field "detonator_cost"
        (position 24 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (max_length 8)
        (format real_8))
      ))

  (scroll_block "rmc" 
    (position  50 15)
    (size 40 3)
    (extra  0  1)
    (scroll_size 40 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 20)))
    (top)

    (main
      (field "name"
        (position 1 0)
        (display_length  10)
        (input allowed)
        (max_length 30))
      (field "type"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (max_length 30))
      (field "SG"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 30))
      (field "hardness"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "jspace"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 30))
      (field "pf"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "subdrill"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "spacing"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "burden"
        (position 25 0)
        (display_length  5)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "blastConeAngle"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (format real_8)
        (max_length 8))
      (field "drillingCost"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (format real_8)
        (max_length 8))
      ))

  (scroll_block "firing" 
    (position  50 15)
    (size 40 3)
    (extra  0  1)
    (scroll_size 40 50)
    (repeat interactive (grow 0 1)(instances 1 (min 1) (max 20)))
    (top)
      
    (main
      (field "template_name"
        (position 1 0)
        (display_length  10)
        (input allowed)
        (max_length 32))
      (field "pattern"
        (position 25 0)
        (display_length  10)
        (input allowed)
        (null disallowed)
        (auto_next off)
        (max_length 32))
      (field "no_of_rows"
        (position 25 0)
        (display_length  5)
        (null disallowed)
        (input allowed)
        (format integer_4)
        (max_length 8))
      (field "surface_delay"
        (position 25 0)
        (display_length  20)
        (input allowed)
        (null disallowed)
        (max_length 32))
      ))

  (default_buttons)
)
