.panel.panel-default.dashboard-panel
  .panel-heading
    Capital Projects
    .pull-right
      = select_tag(:capital_projects_fy, options_for_select(get_fiscal_years, :selected => params[:capital_projects_fy] || current_fiscal_year_year ), :class => "form-control", :style => 'margin-top: -5px;')
  #capital-projects-widget.panel-body

:javascript

  $('#capital_projects_fy').change(function() {
    $("#spinner").show();
    update_capital_projects_widget();
    $("#spinner").hide();
  });

  function update_capital_projects_widget () {
    $.ajax({
      url: "/capital_projects/get_dashboard_summary",
      type: 'GET',
      dataType: 'json',
      data: {fy_year: $('#capital_projects_fy').val()},
      complete: function(response, status) {
        if (response.status == 200) {
          $('#capital-projects-widget').html(response.responseText);
        } else {
          $('#capital-projects-widget').html(response.statusText);
        }
      }
    });
  }
.panel.panel-default.dashboard-panel
  .panel-heading
    Capital Projects
    .pull-right
      = select_tag(:capital_projects_fy, options_for_select(get_fiscal_years.unshift(fiscal_year(current_fiscal_year_year)), :selected => params[:capital_projects_fy] || current_planning_year_year ), :class => "form-control", :style => 'margin-top: -5px;')
  #capital-projects-widget.panel-body

:javascript

  $('#capital_projects_fy').change(function() {
    $("#spinner").show();
    update_capital_projects_widget();
    $("#spinner").hide();
  });

  function update_capital_projects_widget () {
    $.ajax({
      url: "/capital_projects/get_dashboard_summary",
      type: 'GET',
      dataType: 'json',
      data: {fy_year: $('#capital_projects_fy').val()},
      complete: function(response, status) {
        if (response.status == 200) {
          $('#capital-projects-widget').html(response.responseText);
        } else {
          $('#capital-projects-widget').html(response.statusText);
        }
      }
    });
  }
Add current fiscal year to capital projects widget.
[TTPLAT-1197] Add current fiscal year to capital projects widget.
