%= stylesheet_link_tag "select2/select2" %> <%= javascript_include_tag 'validator' %> <%= javascript_include_tag "select2/select2.min" %> <% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <% end %> <% sub_managers = @module_app.sub_managers sub_managers.delete(nil) all_statuses = [[t('top'),'is_top'],[t('hot'),'is_hot']] tp1 = select_tag("custom_announcement_setting[custom_anns_status_settings][-1][status]",options_for_select(all_statuses)) tp2 = select_tag("custom_announcement_setting[custom_anns_status_settings][-1][role_id]",options_for_select(Role.all.map{|r| [r.title,r.id]})) tp3 = number_field_tag("custom_announcement_setting[custom_anns_status_settings][-1][top_limit]",nil, min: 0,required: true) tp4 = "" all_tp = "