<% # encoding: utf-8 %> <% data = action_data @nkuht_donates = data["nkuht_donates"] @total_pages = data["total_pages"] %>
捐款人姓名: <%= text_field_tag 'mq',( params[:mq] ? params[:mq] : '' ), {:id=>'filter-input', :class => "search-query input-medium", :placeholder => 'Search'} %>

捐款芳名錄

<% @nkuht_donates.each do |nkuht_donate| %> <% end %>
捐款日期 捐款人 捐款用途 捐款金額
<%= (nkuht_donate.donation_serial_date.to_date.strftime("%Y").to_i - 1911 ).to_s + nkuht_donate.donation_serial_date.to_date.strftime("/%m/%d") %> <%=nkuht_donate.name%> <%= if !nkuht_donate.nkuht_donate_use.blank? if nkuht_donate.nkuht_donate_use.title == '其他' or nkuht_donate.nkuht_donate_use.title == 'Other' "#{nkuht_donate.nkuht_donate_use.title}(#{nkuht_donate.donation_use_other})" else nkuht_donate.nkuht_donate_use.title end else nil end %> <%= number_to_currency(nkuht_donate.donation_amount, unit: '', precision: 0) %>元
<%= create_pagination(@total_pages).html_safe if @total_pages > 1 %>