<%= form_for(ntp_server, as: :ntp_server, method: ntp_server.new_record? ? :post : :put, html: { class: "form-horizontal ntp-servers-form" , role: "form"}) do |f| %>

NTP Configuration

<% if can? :manage, NtpServer%>
<%= f.label :is_enabled, 'Enable/Disable', :class => "col-sm-2 control-label" %>
<% end %>
<%= f.text_field :urls, :class=>"form-control devices", :placeholder=>"NTP server URL(Press enter after adding URL)"%>
<% if can? :manage, NtpServer%>
<%= f.submit ntp_server.new_record? ? "Create Configuration" : "Update Configuration", :class => "btn btn-success" %> <%= link_to "Cancel", ntp_servers_path, :class => "btn btn-primary" if !ntp_server.new_record?%>
<% end %>
<% end %>