Sha256: f263f01a307268febb4d54dc5a774d2cf6e574c2cd4cd7cb53b0350423d8e590

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

<table class="ui table">
  <thead>
    <tr>
      <th colspan="3">Invoice Addresses</th>
      <th colspan="3">
        <%= link_to 'New Address', new_admin_address_path(user_id: @order.user_id), remote: true, class: 'ui mini button' %>
      </th>
    </tr>
  </thead>
  <tbody id="invoice_addresses_tbody">
  <% addresses.each do |address| %>
    <tr id="address_<%= address.id %>">
      <td>
        <div class="ui radio checkbox">
          <%= radio_button_tag :'order[invoice_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), remote: true %>
        <%= link_to 'Destroy', admin_address_path(address), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.1 app/views/rails_trade_admin/orders/_invoice_addresses.html.erb