Sha256: 2228c32101ece0e8e91871231e913f6e6a2f3b048ffa1d47239f2e609016a7f5

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

<table class="ui table">
  <thead>
    <tr>
      <th colspan="3">Transport Address</th>
      <th colspan="3">
        <%= link_to 'New Address', new_admin_address_path(user_id: @order.user_id), class: 'ui mini button' %>
      </th>
    </tr>
  </thead>
  <tbody id="transport_addresses_tbody">
  <% addresses.each do |address| %>
    <tr id="address_<%= address.id %>">
      <td>
        <div class="ui radio checkbox">
          <%= radio_button_tag :'order[address_id]', address.id, @order.address_id == address.id, form: 'new_order' %><label></label>
        </div>
      </td>
      <td><%= address.contact_person %></td>
      <td><%= address.tel %></td>
      <td>
        <%= address.area.nation %>
        <%= address.area.province %>
        <%= address.area.city %>
      </td>
      <td><%= address.address %></td>
      <td>
        <%= link_to 'Show', address_path(address) %>
        <%= link_to 'Edit', edit_admin_address_path(address) %>
        <%= link_to 'Destroy', admin_address_path(address), method: :delete, data: { confirm: t('.confirm') } %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/admin/orders/_addresses.html.erb