3 require './smf-lib.pl';
5 &ui_print_header(undef, $text{'smfwizard_title'}, "");
7 # wizard-specific info here
8 &wizard_header($wizard, "smfwizard_dependency.cgi",
9 "$text{'smfwizard_dependency_heading'}",
10 &convert_links_in_text("$text{'smfwizard_dependency_description'}"),
13 @sinst_list = ("service");
14 # add existing instances to list...
15 @existing_insts = &wizard_get_data_values("smfwizard_instance.cgi",
17 @sinst_list= (@sinst_list, @existing_insts);
18 &wizard_select("smfwizard_dependency.cgi", "$text{'smfwizard_sinst_name'}",
19 "sinst", \@sinst_list, ".+", "$text{'smfwizard_sinst_error'}");
20 &wizard_input("smfwizard_dependency.cgi", "$text{'smfwizard_dependency_name'}",
21 "dependency_name", 60, ".+",
22 "$text{'smfwizard_dependency_name_error'}");
23 &wizard_select("smfwizard_dependency.cgi", "$text{'smfwizard_dependency_type'}",
24 "dependency_type", \@dep_types, ".+",
25 "$text{'smfwizard_dependency_type_error'}");
26 &wizard_select("smfwizard_dependency.cgi",
27 "$text{'smfwizard_dependency_grouping'}", "dependency_grouping",
28 \@grouping_values, ".+",
29 "$text{'smfwizard_dependency_grouping_error'}");
30 &wizard_select("smfwizard_dependency.cgi",
31 "$text{'smfwizard_dependency_restart_on'}", "dependency_restart_on",
32 \@restart_on_values, ".+",
33 "$text{'smfwizard_dependency_restart_on_error'}");
34 &wizard_input("smfwizard_dependency.cgi",
35 "$text{'smfwizard_dependency_fmri'}", "dependency_fmri",
36 60, ".+", "$text{'smfwizard_dependency_fmri_error'}");
38 &print_svc_chooser("dependency_fmri", 0, "$text{'svc_chooser_titleboth'}",
40 &print_path_chooser("dependency_fmri", 0, "$text{'path_chooser_title'}",
43 &wizard_select("smfwizard_dependency.cgi",
44 "$text{'smfwizard_dependency_stability'}", "dependency_stability",
45 \@stability_values, ".+",
46 "$text{'smfwizard_dependency_stability_error'}");
48 &wizard_footer($wizard, "smfwizard_dependency.cgi");
49 # end wizard-specific info
51 &ui_print_footer("index.cgi", $text{'index'});