From c645c1b5df37a64ceab35b6d9c70dc99470d3e9a Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Wed, 28 Mar 2012 10:51:14 +0800 Subject: [PATCH] Remove extra code in bulletin form --- .../back_end/bulletins/_form.html.erb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb index 0ba87a70..2ecadbf8 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb @@ -1,25 +1,10 @@ <% # encoding: utf-8 %> - <%= f.error_messages %> - <%= f.select :bulletin_category_id, @bulletin_categorys.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-medium" %> - - <% if is_manager? || @bulletin.bulletin_category.authed_users('fact_check').include?(current_user) || current_user.admin?%> -
- <%= label :fact_check_stat, t('announcement.bulletin.fact_check_stat') %> - <%= f.radio_button :is_checked, true%> - <%= label :is_checked_true, t('announcement.bulletin.fact_check_pass') %> - <%= f.radio_button :is_checked, false, (@bulletin.is_checked.nil?? {:checked => true} : {}) %> - <%= label :is_checked_false, t('announcement.bulletin.fact_check_not_pass') %> - - <%= label :is_checked_false, t('announcement.bulletin.fact_check_not_pass_reason') %> - <%= f.text_field :not_checked_reason %> -
- <% end %> <%= f.error_messages %>
- <% if params[:action] != 'new' %> + <% if params[:action] != 'new' %>