Module: ForemanResourceQuota::HostsHelper
- Defined in:
- app/helpers/foreman_resource_quota/hosts_helper.rb
Instance Method Summary collapse
Instance Method Details
#resource_quota_select(form, user_quotas) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/foreman_resource_quota/hosts_helper.rb', line 5 def resource_quota_select(form, user_quotas) blank_opt = { include_blank: true } select_items = user_quotas.order(:name) select_f form, :resource_quota_id, select_items, :id, :to_label, blank_opt, label: _('Resource Quota'), help_inline: _('Define the Resource Quota this host counts to.') end |