diff --git a/app/views/hosts/_form.html.erb b/app/views/hosts/_form.html.erb index 3641f29..8628806 100644 --- a/app/views/hosts/_form.html.erb +++ b/app/views/hosts/_form.html.erb @@ -1,42 +1,45 @@ <%= bootstrap_form_for(@host, layout: :horizontal, label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %> +
+ FQDN should have a valid DNS A record +
<% if current_user.needs_host_list? %> - <%= f.select :fqdn, options_for_select(@hosts_of_user, @host.fqdn), {}, + <%= f.select :fqdn, options_for_select(@hosts_of_user, @host.fqdn), { label: 'FQDN' }, disabled: @host.persisted? %> <% else %> - <%= f.text_field :fqdn, disabled: @host.persisted? %> + <%= f.text_field :fqdn, label: 'FQDN', disabled: @host.persisted? %> <% end %> <% if @host.persisted? %> <%= f.number_field :port, min: 1 %> <% end %> <% emails = (@host.users.pluck(:email) + @host.email_recipients).uniq.select(&:present?) %> <%= f.select :email_recipients, options_for_select(emails, @host.email_recipients), {}, multiple: true %>