summaryrefslogtreecommitdiff
path: root/app/views/sim_cards/_index_core.html.haml
blob: 16440ff0649622628b5086bfcf94285ebf2f2424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%table.table.table-striped
  %tr
    %th= t('sim_cards.show.sim_number')
    %th= t('sim_cards.index.sip_account_id')
    %th= t('sip_accounts.index.phone_numbers')
    %th= t('sim_cards.index.auth_key')
    %th= t('sim_cards.index.state')
    %th
  
  - for sim_card in sim_cards
    %tr
      %td= sim_card.sim_number
      %td= sim_card.sip_account
      %td
        = render 'phone_numbers/listing', :phone_numbers => sim_card.sip_account.phone_numbers.order(:number)
      %td= sim_card.auth_key
      %td= sim_card.state
      =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => sim_card.sim_card_provider, :child => sim_card}