# -*- encoding : utf-8 -*-
class DynamicContent < ActiveRecord::Base
  has_one :portlet, :as => :content, :dependent => :destroy
  
  belongs_to :item
 
  NAMES = { 
    "militer" => "Index militer", 
    "detenus" => "Index détenus", 
    "index_label" => "Index Label", 
    "index_petitions" => "Index Pétitions", 
    "index_sponsorship" => "Index Parrainages",
    "contact" => "Formulaire contact",
    "contact_leg" => "Formulaire contact leg",
    "contact_militer" => "Formulaire contact militer",
    "plan" => "Plan du site",
    "newsletter" => "Formulaire newsletter",
    
  }

  def self.picto
    "cog"
  end
 
end
