app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb in phcscriptcdnpro-1.4.1 vs app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb in phcscriptcdnpro-1.4.2
- old
+ new
@@ -1,6 +1,6 @@
-<%= form_for([@scriptcdn_scripturl.scriptversion, @scriptcdn_scripturl], url: scriptcdn_scriptversion_scripturl_path, method: :patch) do |f| %>
+<%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturl_path, method: :patch) do |f| %>
<%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
<div class="form-group field_with_error">
<%= f.label :scrpturlphc, "Script URL" %>
@@ -9,11 +9,11 @@
<div class="form-group field_with_error">
<%= f.label :scrpturltype, "Script Type" %>
<%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
</div>
<div class="form-group field_with_error">
- <%= f.label :scriptversion_id, "Script Version" %>
- <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
+ <%= f.label :script_id, "Script Version" %>
+ <%= collection_select(:scriptcdn_scripturl, :script_id, Phcscriptcdnpro::Scriptcdn::Script.order('scrptname'), :id, :scrptname, {}, {class: "form-control"}) %>
</div>
<div class="actions">
<%= f.submit "Submit", class: "btn blue-hoki" %>
</div>