app/views/phcscriptcdnpro/script/urls/_form.html.erb in phcscriptcdnpro-73.1.0 vs app/views/phcscriptcdnpro/script/urls/_form.html.erb in phcscriptcdnpro-74.0.0
- old
+ new
@@ -1,35 +1,36 @@
-<%= form_for([@script_url.listing, @script_url], url: form_url) do |form_phc_scriptcdn_urls| %>
+<%= form_with(model: [ @script_listing, @script_url], url: form_url, local: true) do |form| %>
<!-- PHCNotifi Render Validation -->
- <%= render 'phcnotifi/validations', :object => @script_url %>
+ <%= render 'phcnotifi/default/validations', :object => @script_url %>
+ <!-- PHCNotifi Render Validation -->
<!-- Form Input Fields -->
- <div class="form-group field_with_error">
- <%= form_phc_scriptcdn_urls.label :script_url, "Script URL" %>
- <%= form_phc_scriptcdn_urls.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
+ <div class="form-group field_with_errors">
+ <%= form.label :script_url, "Script URL" %>
+ <%= form.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
</div>
- <div class="form-group field_with_error">
- <%= form_phc_scriptcdn_urls.label :script_url_release, "Initial Release" %>
- <%= form_phc_scriptcdn_urls.date_select :script_url_release, class: "form-control" %>
+ <div class="form-group field_with_errors">
+ <%= form.label :script_url_release, "Initial Release" %>
+ <%= form.date_select :script_url_release, class: "form-control" %>
</div>
- <div class="form-group field_with_error">
- <%= form_phc_scriptcdn_urls.label :script_url_cdn_update, "Latest Release" %>
- <%= form_phc_scriptcdn_urls.date_select :script_url_cdn_update, class: "form-control" %>
- </div>
<div class="form-group field_with_errors">
+ <%= form.label :script_url_cdn_update, "Latest Release" %>
+ <%= form.date_select :script_url_cdn_update, class: "form-control" %>
+ </div>
+ <div class="form-group field_with_errorss">
<label>Script Version</label>
- <%= collection_select(:script_url, :version_id, Phcscriptcdnpro::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
+ <%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
</div>
- <div class="form-group field_with_errors">
+ <div class="form-group field_with_errorss">
<label>Script Extensions</label>
- <%= collection_select(:script_url, :extension_id, Phcscriptcdnpro::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
+ <%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
</div>
<!-- Form Input Fields -->
<!-- Form Submition Button -->
<div class="actions">
- <%= form_phc_scriptcdn_urls.submit class: "btn btn-primary" %>
+ <%= form.submit class: "btn btn-primary" %>
</div>
<!-- For Submition Button -->
<% end %>