Remove extra code in bulletin form

This commit is contained in:
Christophe Vilayphiou 2012-03-28 10:51:14 +08:00
parent 172d3d7847
commit c645c1b5df
1 changed files with 1 additions and 16 deletions

View File

@ -1,25 +1,10 @@
<% # encoding: utf-8 %> <% # 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?%>
<div class="field">
<%= 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 %>
</div>
<% end %>
<!--Widget start--> <!--Widget start-->
<%= f.error_messages %> <%= f.error_messages %>
<div id="sub-wiget"> <div id="sub-wiget">
<% if params[:action] != 'new' %> <% if params[:action] != 'new' %>
<div id="widget-audit" class="widget-box"> <div id="widget-audit" class="widget-box">
<div class="widget-action clear"> <div class="widget-action clear">
<a class="action"><i title="A" class="icon-exclamation-sign icon-white tip"></i></a> <a class="action"><i title="A" class="icon-exclamation-sign icon-white tip"></i></a>