= semantic_form_for [:portlet, @link_content], :remote => true do |form| 
	
	.form1
		= form.inputs do 
			= form.input :name, :label => "Texte à afficher :" 
			=# form.input :title, :label => "Title :" 
			= form.input :popup,:as => :boolean , :label => "Ouvrir dans une nouvelle fenêtre ?" 

	

	
	#select_cible_type_bar.bar.dark_blue
		-CibleType.all.each do |cible_type|
			=link_to cible_type.name, new_portlet_link_content_path(:link_content_cible_type => cible_type.slug ), :onclick => "$('#link_content_cible_form').load($(this).attr('href')+' #link_content_cible_form_content');$('#select_cible_type_bar .active').removeClass('active');$(this).addClass('active');return false;",:class => ("active" if cible_type.slug == @link_content.cible_type).to_s
	
	
	
	#link_content_cible_form.form2
		#link_content_cible_form_content
			= form.inputs do 
				= form.input :cible_type,:as => :hidden
				= form.input :cible_id,:as => :hidden
			=render :partial => "portlet/link_contents/"+@link_content.cible_type.tableize.singularize.to_s+"_form", :locals => {:form => form}

	= form.buttons do 
		= form.commit_button "Sauvegarder"


