= semantic_form_for [:portlet, @img_link_content], :remote => true do |form| 
	
	.form1
		= form.inputs do 

			= form.input :image_file_id, :label => "Image :" , :as => :qi_image_select
			= form.input :title, :label => "Title :" , :as => :string
			= form.input :description, :label => "Description :", :as => :text, :input_html => {:class => "text_editor"}

	

			= form.input :with_cible, :as => :boolean, :label => "Avec lien ?", :input_html => {:id => "with_cible", :onchange => "if ($(this).attr('checked') == 'checked') { $(this).closest('form').find('.cible_space').show(); }else{ $(this).closest('form').find('.cible_space').hide(); }" }
		
		.cible_space{:style => ("display:none;" if !@img_link_content.cible and !@img_link_content.with_cible )}
			= form.inputs do 
				= form.input :cible, :label => "Cible :" , :as => :qi_cible_select

	=form.submit 'Sauvegarder'


