app/controllers/auth_key_pair_cloud_controller.rb
# handle buttons pressed on the button bar
handle buttons pressed on the button bar
handle buttons pressed on the button bar
def button
    @edit = session[:edit] 
    params[:page] = @current_page unless @current_page.nil? 
    return tag("ManageIQ::Providers::CloudManager::AuthKeyPair") if params[:pressed] == 'auth_key_pair_cloud_tag'
    delete_auth_key_pairs if params[:pressed] == 'auth_key_pair_cloud_delete'
    new if params[:pressed] == 'auth_key_pair_cloud_new'
    if !@flash_array.nil? && params[:pressed] == "auth_key_pair_cloud_delete" && @single_delete
      render :update do |page|
        page.redirect_to :action => 'show_list', :flash_msg => @flash_array[0][:message]
      end
    elsif params[:pressed] == "auth_key_pair_cloud_new"
      if @flash_array
        show_list
        replace_gtl_main_div
      else
        render :update do |page|
          page.redirect_to :action => "new"
        end
      end
    elsif @refresh_div == "main_div" && @lastaction == "show_list"
      replace_gtl_main_div
    else
      render_flash
    end
  end
def button @edit = session [ :edit ] params [ :page ] = @current_page unless @current_page . nil? return tag ( "ManageIQ::Providers::CloudManager::AuthKeyPair" ) if params [ :pressed ] == 'auth_key_pair_cloud_tag' delete_auth_key_pairs if params [ :pressed ] == 'auth_key_pair_cloud_delete' new if params [ :pressed ] == 'auth_key_pair_cloud_new' if ! @flash_array . nil? && params [ :pressed ] == "auth_key_pair_cloud_delete" && @single_delete render :update do | page | page . redirect_to :action => 'show_list' , :flash_msg => @flash_array [ 0 ] [ :message ] end elsif params [ :pressed ] == "auth_key_pair_cloud_new" if @flash_array show_list replace_gtl_main_div else render :update do | page | page . redirect_to :action => "new" end end elsif @refresh_div == "main_div" && @lastaction == "show_list" replace_gtl_main_div else render_flash end end
handle buttons pressed on the button bar
handle buttons pressed on the button bar
# Restore @edit for adv search box # Save current page for list refresh # redirect to build the retire screen