From 7bf50d6c5299b11bdf132d74703c6f41378e97bc Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Thu, 5 Apr 2012 14:08:03 +0800 Subject: [PATCH] Move the audit block to the bottom --- .../back_end/bulletins/_form.html.erb | 74 ++++++++----------- 1 file changed, 32 insertions(+), 42 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 2ecadbf8..4496cdef 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 @@ -4,38 +4,6 @@ <%= f.error_messages %>
- <% if params[:action] != 'new' %> -
-
- -
- -

Audit

-
- - <% if is_manager? || @bulletin.bulletin_category.authed_users('fact_check').include?(current_user) || current_user.admin? %> -
- <%= f.label :fact_check_stat, t('announcement.bulletin.fact_check_stat') %> - <%= content_tag :label,:class => "radio inline" do -%> - <%= f.radio_button :is_checked, true , {:class => 'privacy'} %> - <%= t('announcement.bulletin.fact_check_pass') %> - <% end -%> - <%= content_tag :label,:class => "radio inline" do -%> - <%= f.radio_button :is_checked, false, (@bulletin.is_checked.nil?? {:checked => true, :class => 'privacy'} : {})%> - <%= t('announcement.bulletin.fact_check_not_pass') %> - <% end -%> -
- <%= label :is_checked_false, t('announcement.bulletin.fact_check_not_pass_reason') %> - <%= f.text_field :not_checked_reason %> -
- -
- <% end %> -
-
- <% elsif current_user.admin? %> - <%= f.hidden_field :is_checked,:value => true%> - <% end %>
@@ -121,7 +89,38 @@ <% end %>
- + <% if params[:action] != 'new' %> +
+
+ +
+ +

Audit

+
+ + <% if is_manager? || @bulletin.bulletin_category.authed_users('fact_check').include?(current_user) || current_user.admin? %> +
+ <%= f.label :fact_check_stat, t('announcement.bulletin.fact_check_stat') %> + <%= content_tag :label,:class => "radio inline" do -%> + <%= f.radio_button :is_checked, true , {:class => 'privacy'} %> + <%= t('announcement.bulletin.fact_check_pass') %> + <% end -%> + <%= content_tag :label,:class => "radio inline" do -%> + <%= f.radio_button :is_checked, false, (@bulletin.is_checked.nil?? {:checked => true, :class => 'privacy'} : {})%> + <%= t('announcement.bulletin.fact_check_not_pass') %> + <% end -%> +
+ <%= label :is_checked_false, t('announcement.bulletin.fact_check_not_pass_reason') %> + <%= f.text_field :not_checked_reason %> +
+ +
+ <% end %> +
+
+ <% elsif current_user.admin? %> + <%= f.hidden_field :is_checked,:value => true%> + <% end %>
@@ -130,15 +129,6 @@
- -
- <%= f.label :image, t('announcement.image') %>
- <%= f.file_field :image %> - <% if @bulletin.image.file %> - <%= check_box_tag 'bulletin[image_del]' %> - <%= t('announcement.刪除已上傳檔案') %> - <% end %> -
<%= f.label :category %> <%= f.select :bulletin_category_id, @bulletin_categorys.collect{|t| [ t.i18n_variable[I18n.locale], t.id ]}, {}, :class => "input-medium" %>