<% content_for(:javascripts) do %> <%= webpacked_plugins_js_for :foreman_resource_quota %> <% end %> <% content_for(:stylesheets) do %> <%= webpacked_plugins_css_for :foreman_resource_quota %> <% end %> <% title _('Resource quotas') %> <%= title_actions react_component('CreateResourceQuotaModal') %> <% @resource_quotas.each do |quota| react_data = { "isNewQuota": false, "initialProperties": { "id": quota.id, "name": quota.name, "description": quota.description, "cpu_cores": quota.cpu_cores, "memory_mb": quota.memory_mb, "disk_gb": quota.disk_gb, }, } %> <% end %>
<%= sort :name, :as => s_('Resource Quota|Name') %> <%= _('Description') %> <%= _('CPU cores') %> <%= _('Memory (MB)') %> <%= _('Disk space (GB)') %> <%= _('Actions') %>
<%= react_component('UpdateResourceQuotaModal', react_data) %> <%= h(quota.description) %> <%= h(quota.cpu_cores) %> <%= h(quota.memory_mb) %> <%= h(quota.disk_gb) %> <%= action_buttons( display_delete_if_authorized(hash_for_foreman_resource_quota_resource_quota_path(id: quota), data: { confirm: _("Delete %s?") % quota.name}) ) %>
<%= will_paginate_with_info @resource_quotas %>