Sha256: 322bd5362d782c08d6961d94f629e790b6a6242cb603666b0d33a7d76a75073a

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

<div>

  <%= render 'menu' %>

  <div class="ui segment bottom attached">
    <%= render 'search_form' %>
  </div>

  <div class="ui segment top attached">
    <p>
      <span>State:</span>
      <%= link_to t('.all'), filter_params(except: [:payment_status]), class: active_params(payment_status: '', active: 'button is-info', item: 'button is-light') %>
    </p>
  </div>

  <table class="table is-hoverable is-fullwidth">
    <thead>
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th>Credit Terms(Period)</th>
      <th>负责人</th>
      <th></th>
      <th></th>
    </tr>
    </thead>

    <tbody>
    <% @buyers.each do |buyer| %>
      <tr>
        <td><%= buyer.id %></td>
        <td><%= buyer.name %></td>
        <td><%= buyer.payment_strategy&.name %></td>
        <td><%# buyer.charger&.name %></td>
        <td><%# buyer.sum_amount %></td>
        <td>
          <%= link_to 'Orders', orders_admin_buyer_path(buyer.id), class: 'button is-link is-small' %>
          <%= link_to 'Promotes', admin_promote_buyers_path(buyer_id: buyer.id), class: 'button is-link is-small' %>
        </td>
      </tr>
    <% end %>
    </tbody>
  </table>

  <%= paginate @buyers %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/admin/users/index.html.erb