Sha256: 950188905a8f4c88a91f252df5737e39bab093709c2a9336613bb5793b61da17

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

<%=
	content_for :sidebar do
		f.tabs do
		  f.tab :options do
		    # html = label_tag(:content_locale, t(:'adva.common.locale')) +
		    #         %(<select id="content_locale" name="cl">#{options_for_select I18n.available_locales, Article.locale}</select>) +
		    html = (@section.try(:single_link_mode) ? '' : f.text_field(:permalink, :label => true)) +
								%(<p class="hint" for="content_locale">#{t(:'adva.hints.locale')}</p>).html_safe +
		            f.text_field(:tag_list, :label => true, :hint => :'adva.hints.tags')

			  	if @categories.present?
				 		if !(@section.try(:single_link_mode) ? @section.single_link_mode : false)
		  	  		html << %(<label>#{t(:'adva.titles.publish_in_categories')}</label>) +
		  	          render(:partial => 'categories/checkboxes', :locals => { :categories => @categories, :content => @link })
						end
		  	end

		    html << f.select(:filter, filter_options, {}, :class => 'columnsFilter', :label => :'adva.titles.filter', :hint => :'adva.hints.filter') +
		            f.select(:author_id, author_options(@site.users), { :selected => author_selected(@link) }, :label => true)
		  end
		end
	end
%>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
adva-0.1.4 app/views/admin/page/links/_options.html.erb
adva-0.1.3 app/views/admin/page/links/_options.html.erb
adva-0.1.2 app/views/admin/page/links/_options.html.erb
adva-0.1.1 app/views/admin/page/links/_options.html.erb
adva-0.1.0 app/views/admin/page/links/_options.html.erb
adva_cms-0.0.1 app/views/admin/page/links/_options.html.erb
adva-0.0.1 adva_cms/app/views/admin/page/links/_options.html.erb