diff --git a/app/views/hosts/_form.html.erb b/app/views/hosts/_form.html.erb index 203fa17..4d8aba5 100644 --- a/app/views/hosts/_form.html.erb +++ b/app/views/hosts/_form.html.erb @@ -1,12 +1,15 @@ -<%= bootstrap_form_for(@host) do |f| %> +<%= bootstrap_form_for(@host, layout: :horizontal, + label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %>
<%= f.text_field :fqdn %> <%= f.text_field :password %> - <%= f.number_field :port %> + <%= f.number_field :port, value: 9102 %>
-
- <%= f.submit %> +
+
+ <%= f.submit class: 'btn btn-success' %> +
<% end %> diff --git a/app/views/hosts/new.html.erb b/app/views/hosts/new.html.erb index b372286..2e41c5f 100644 --- a/app/views/hosts/new.html.erb +++ b/app/views/hosts/new.html.erb @@ -1,5 +1,7 @@

New Host

-<%= render 'form' %> +
+ <%= render 'form' %> +
<%= link_to 'Back', clients_path %>