Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #9015 - Use number_f for priority and max_count #312

Merged
merged 1 commit into from Nov 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/discovery_rules/_form.html.erb
Expand Up @@ -24,8 +24,8 @@
_("Template"),
render('discovery_rules/template_inline'),
:title => _("Hostname for provisioned hosts"), :'data-placement' => 'bottom').html_safe %>
<%= text_f f, :max_count, :label => _('Hosts limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)') %>
<%= text_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)') %>
<%= number_f f, :max_count, :label => _('Hosts limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)'), :min => 0, :max => (2**31 - 1) %>
<%= number_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)'), :min => 0, :max => (2**31 - 1) %>
<%= checkbox_f f, :enabled %>
</div>
<% if show_taxonomy_tabs? %>
Expand Down