<%= form_tag save_client_client_devices_path, :class => "form-horizontal" do %>

Client Details  

<% val_hsh = params["values"]["last_monitored_record"]%>
<%= text_field_tag :nick_name, params[:name] , value: "#{val_hsh["NICKNAME"]}", :class=>"form-control"%>

<%= text_field_tag :original_name, params[:original_name] , value: "#{val_hsh["HOSTNAME"]}", :class=>"form-control", :readonly => true%>

<%= text_area_tag :description, params[:description], value: "#{params["values"]["description"]}", :class=>"form-control"%>

<%= text_field_tag "mac", params[:mac_id], value: "#{val_hsh["MAC"]}" , :class=>"form-control devices", :readonly => true%>


<%= select_tag "critical", options_for_select(ClientDevice::CRIT_LVL.map{|n,v| [v,n]}, { selected: val_hsh["ALERT"]}),:class=>"form-control", :required => true %>

<%= hidden_field_tag :nas_id, params[:name] , value: "#{val_hsh["access_point"]}"%> <%= submit_tag "Save Client Device" , :class => "btn btn-success btn-primary"%> <%= link_to "Cancel".html_safe, :controller => 'clients', :action => 'client_show', :mac_id => "#{val_hsh["MAC"]}", :nas_id => "#{val_hsh["access_point"]}" %>
<% end %>