Sha256: 7db030edaaca60f4176669993e70c1f43076cabe010afdbeadcceba79603d74c

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

<% javascript 'foreman_scc_manager/scc_accounts'  %>
<% title _("SUSE subscriptions") %>
<% title_actions new_link(_("Add SCC account")) %>

<table class="<%= table_css_classes 'table-two-pane table_fixed' %>">
  <thead>
    <tr>
      <th class="col-md-4"><%= sort :name %></th>
      <th class="col-md-3"><%= _("Products") %></th>
      <th class="col-md-3"><%= _("Last synced") %></th>
      <th class="col-md-2"><%= _("Actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @scc_accounts.each do |scc_account| %>
      <tr>
        <td class="display-two-pane ellipsis">
          <%= link_to_if_authorized(scc_account.name, hash_for_edit_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)) %>
        </td>
        <td><%= scc_account.scc_products.count.to_s %></td>
        <td><%= scc_account.get_sync_status %></td>
        <td>
          <%= action_buttons(
            display_link_if_authorized(_("Select products"), hash_for_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)),
            display_link_if_authorized(_("Sync"), hash_for_sync_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer),
                                       :method => :put),
            display_delete_if_authorized(hash_for_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer),
                                         :data => { :confirm => _("Delete %s?") % scc_account.to_s })
          ) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate_with_info @scc_accounts %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_scc_manager-1.2.0 app/views/scc_accounts/index.html.erb