% projects = Project.visible.order(:name) %> <%= error_messages_for('advertisement') %>
<%= label_tag('advertisement[heading]', (l(:label_heading) + ' ' + content_tag(:span, '*', :class => 'required')).html_safe) %> <%= text_field_tag('advertisement[heading]', @advertisement ? h(@advertisement.heading) : nil, :size => 60) %>
<%= label_tag('advertisement[content]', (l(:label_content) + ' ' + content_tag(:span, '*', :class => 'required')).html_safe) %> <%= text_area_tag('advertisement[content]', @advertisement ? @advertisement.content : nil, :cols => 60, :rows => 7, :class => 'wiki-edit') %>
<%= label_tag('advertisement[language]', (l(:field_language) + ' ' + content_tag(:span, '*', :class => 'required')).html_safe) %> <%= select_tag('advertisement[language]', options_for_select(lang_options_for_select(false), @advertisement ? @advertisement.language : current_language.to_s)) %>
<%= label_tag('advertisement[enabled]', l(:label_enabled)) %> <%= hidden_field_tag('advertisement[enabled]', 0) %> <%= check_box_tag('advertisement[enabled]', 1, @advertisement ? @advertisement.enabled? : true) %>