4 <%= render :partial=>'dividend_form', locals: {
6 :securities=>@securities
11 <%= form_tag({:action=>'index'}, method: :get) do %>
13 <%= select_tag 'filter', options_for_select(@log.filters, @filter) , prompt: '-- Filter --' %>
14 <%= select_tag 'start_date', options_for_select(@timeframes, @timeframe) , prompt: '-- Time Frame --' %>
15 <%= submit_tag 'Run Report' %>
19 <% if not @log.empty? %>
20 <p>Total Cashflow in Report: <em><%= smr_humanize(@log.total) %></em></p>
25 <tr><th>Date</th><th></th><th>Cashflow</th></tr>
28 <% @log.each do |item| %>
29 <tr class="separaterows">
30 <td><%= smr_humanize(item.date) %></td>
31 <td><%= item.what %> <span class="comment_text"><%= item.comment %></span></td>
32 <td><%= smr_humanize(item.total) %></td>
38 <p>No Cashflow since <%= Time.at(@timeframe).strftime('%B %%s, %Y') % Time.at(@timeframe).strftime('%d').to_i.ordinalize %>.</p>