# File lib/genomed.rb, line 552
    def bootstrap_select_profile
      p do
        h2 "Genome Bootstrap"
        h3 "Step 3: Select a machine profile"
      end
      p do
        form(:method => "post", :action => CONTEXT + R(Genomed::Controllers::Bootstrap)) do
          input :type => "hidden", :name => "next_step", :value => "select_cloudmaster"
          input :type => "hidden", :name => "this_step", :value => "select_profile"
          input :type => "hidden", :name => "config", :value => "#{::YAML.dump(@config)}"

          fieldset do
            table do
              tr do
                td.label do text("Machine profile") end
                td.field do
                  tag!(:select, :id => "cobbler_profile", :name => "parameters[cobbler_profile]") do
                    tag!(:option, "Select one")
                    repo.guest_profiles.each do |profile|
                      if profile == @config["parameters"]["cobbler_profile"]
                        tag!(:option, "#{profile}", :selected => "selected")
                      else
                        tag!(:option, "#{profile}")
                      end
                    end
                  end
                end
                td(:class => "error", :style => (@errors.keys.include? "parameters[cobbler_profile]") ? "visibility:visible" : "visibility:hidden") do
                  text("Please select a machine profile")
                end
              end
            end
          end

          p do
            input :type => "submit", :value => "Next: Select cloudmaster"
          end
        end
      end
    end