Sha256: b6900f41acc1b52a8a906cfc9950d57d71dd5b05065bb4ad02db7abd427163d4

Contents?: true

Size: 1.83 KB

Versions: 6

Compression:

Stored size: 1.83 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_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer)) %>
          <%= link_to_if_authorized('', hash_for_edit_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer), {visible: false, class: 'edit_deferree'}) %>
        </td>
        <td><%= scc_account.scc_products.count.to_s %></td>
        <td><%= scc_account.get_sync_status %></td>
        <td>
          <%= action_buttons(
            display_link_if_authorized(_("Sync"), hash_for_sync_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer),
            :method => :put),
            display_link_if_authorized(_("Edit"), hash_for_edit_scc_account_path(:id => scc_account).merge(:auth_object => scc_account, :authorizer => authorizer),
                                      class: 'edit_deferrer'),
            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

6 entries across 6 versions & 1 rubygems

Version Path
foreman_scc_manager-1.1.3 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.1.2 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.1.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.1.0 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.0.1 app/views/scc_accounts/index.html.erb
foreman_scc_manager-1.0.0 app/views/scc_accounts/index.html.erb