(form "21325" (size 78 16)
    (heading "DRILLHOLE RECOVERABLE PRODUCT RATIOS")

    (label
        (position 2 3)
        (text "Interval table")
    )

    (field "table_name"
        (position 20 3)
        (display_length 13)
        (max_length 40)
        (input allowed)
        (null disallowed)
        )

    (label
        (position 20 5)
        (text "Input string file")
    )

    (label
        (position 2 6)
        (text "Location")
    )

    (label
        (position 2 7)
        (text "File id" )
    )

    (field "ifname"
        (position 20 6)
        (display_length 13)
        (max_length 40)
        (input allowed)
        (null disallowed)
        (file (link "ifid")
            (extension trim "*.str")
        )
        )

    (field "ifid"
        (position 20 7)
        (display_length 13)
        (max_length 4)
        (input allowed)
        (null disallowed)
    )

    (label 
        (position 2 9) 
        (text "Grade field")
    )
    (field "grade_fld"
        (position 20 9)
        (display_length 12)
        (max_length 30)
        (translate upper)
        (input allowed)
        )

    (field "grd_rat"
        (position 34 9)
        (display_length 7)
        (max_length 8)
        (input allowed)
        (format real_8)
        (value_in non_exclusive "0.000001" "0.00001" "0.0001" "0.001" "0.01" 
                                "0.1" "1" "10" "100" "1000" "10000")
        (default "0.01")
        )
    (label
        (position 2 10)
        (text "Recovery field")
    )
    (field "rec_fld"
        (position 20 10)
        (display_length 12)
        (max_length 30)
        (input allowed)
        )

    (label
        (position 34 8)
        (text "Multiply by")
    )
    (field "rec_rat"
        (position 34 10)
        (display_length 7)
        (max_length 8)
        (input allowed)
        (format real_8)
        (value_in non_exclusive "0.000001" "0.00001" "0.0001" "0.001" "0.01" 
                                "0.1" "1" "10" "100" "1000" "10000")
        (default "0.01")
        )

    (label 
        (position 42 3) 
        (text "Ore density")
    )
    (field "ore_density"
        (position 60 3)
        (display_length 12)
        (input allowed)
        (null disallowed)
        (low_bound 0)
        (format real_8)
        (default "2.1")
        )

    (label 
        (position 42 4) 
        (text "Product density")
    )
    (field "prod_density"
        (position 60 4)
        (display_length 12)
        (input allowed)
        (null disallowed)
        (low_bound 0)
        (format real_8)
        (default "1.01")
        )

    (label
        (position 42 6)
        (text "Zone selection method")
    )
    (field "constrain"
        (position 60 6)
        (display_length 16)
        (max_length 16)
        (input allowed)
        (null disallowed)
        (value_in "ZONE FROM TO" "NO SELECTION" "MULTIPLE ZONES")
        (default "MULTIPLE ZONES")
        (auto_next off)
        )

    (label
        (position 60 8)
        (text "Output string file")
    )

    (label
        (position 48 9)
        (text "Location")
    )

    (label
        (position 48 10)
        (text "File id" )
    )


    (field "fname"
        (position 60 9)
        (display_length 13)
        (max_length 40)
        (translate lower)
        (input allowed)
        (null disallowed)
        (file output (link "rid")
            (extension trim "*.str")
        )
        )

    (field "rid"
        (position 60 10)
        (display_length 13)
        (max_length 4)
        (input allowed)
        (null disallowed)
    )

    (label (position 2 11)
        (text "REPORT_FILE_NAME" )
    )
    (field "report_file"
        (position 60 11)
        (display_length 26)
        (max_length 252)
        (translate lower)
        (input allowed)
        (null allowed)
        (file output (extension trim "reports|*.not")
        )
        (help   "REPORT_FILE_NAME_TIP"
        )
    )

    (field "report_format" (position 18 16) (display_length 16)
      (input allowed) (null disallowed)
      (default ".not - Surpac Note File")
      (value_in ".not - Surpac Note File"
                ".csv - Comma Separated (Spreadsheet)"
                ".htm - Hypertext Markup Language (Web)"
                ".html - Hypertext Markup Language (Web)"
                ".rtf - Rich Text Format (Microsoft Word)"
                ".pdf - Adobe Acrobat"
                ".ps - Postscript"
                ".log - Surpac log file"))
    (label (position 2 13)
        (text "Missing data method" )
    )
    (field "missing_samples"
        (position 24 13)
        (display_length 22)
        (max_length 17)
        (input allowed)
        (translate upper)
        (null disallowed)
        (value_in "ASSIGN CONSTANT" "WEIGHTED AVERAGE" "ARITHMETIC AVERAGE")
        (default "ASSIGN CONSTANT")
        )

    (field "constant_label"
        (position 2 14)
        (display_length 15)
        (foreground (user_option "form_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (value_in "Constant value" )
        (browser none)
        (default "Constant value")
        (dependency (value "missing_samples") == "ASSIGN CONSTANT")
    )
    (field "constant"
        (position 24 14)
        (display_length 14)
        (max_length 16)
        (input allowed)
        (low_bound 0)
        (format real_8)
        (null disallowed)
        (default "0.0")
        (dependency (value "missing_samples") == "ASSIGN CONSTANT")
    )

    (default_buttons)
)
