You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: form_component.rb
    path of file: ./repos/consuldemocracy/app/components/sdg_management/local_targets
    
    the code of the file until where you have to start completion: class SDGManagement::LocalTargets::FormComponent < ApplicationComponent
  include Header
  include TranslatableFormHelper
  include GlobalizeHelper

  attr_reader :local_target

  def initialize(local_targ
    
    def target_options
      grouped_targets = SDG::Goal.order(:code).map do |goal|
        [
          goal.code_and_title,
          goal.targets.sort.map { |target| [target.code_and_title, target.id] }
        ]
      end
      grouped_options_for_select(grouped_targets, local_target.target_id)
    end