%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_scriptversion_scripturl_path, method: :patch) do |f| %>
<%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
<%= f.label :scrpturlname, "Script Name" %>
<%= f.text_field :scrpturlname, class: "form-control" %>
<%= f.label :scrpturlphc, "Script URL (AWS)" %>
<%= f.text_field :scrpturlphc, class: "form-control" %>
<%= f.label :scrpturltype, "Script Type" %>
<%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], class: "form-control" %>
<%= f.label :scriptversion_id, "Script Version" %>
<%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdn::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control form-control-sm"}) %>
<%= f.submit "Submit", class: "btn btn-primary btn-sm"%>
<% end %>