app/views/phcscriptcdn/script/authors/_form.html.erb in phcscriptcdn-48.0.0 vs app/views/phcscriptcdn/script/authors/_form.html.erb in phcscriptcdn-49.0.0
- old
+ new
@@ -1,36 +1,31 @@
-<%= form_for(script_author) do |f| %>
+<%= form_with(model: script_author, local: true) do |form_phc_scriptcdn_author| %>
- <!-- PHC-Notifi Render Validation -->
+ <!-- PHCNotifi Render Validation -->
<%= render 'phcnotifi/validations', :object => @script_author %>
- <!-- PHC-Notifi Render Validation -->
- <!-- Form Fields -->
+ <!-- Form_phc_scriptcdn_author Input Fields -->
<div class="form-group field_with_error">
- <%= f.label :authorfirstname, "Author First Name" %>
- <%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
+ <%= form_phc_scriptcdn_author.label :authorfirstname, "Author First Name" %>
+ <%= form_phc_scriptcdn_author.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
</div>
<div class="form-group field_with_error">
- <%= f.label :authorlastname, "Author Last Name" %>
- <%= f.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
+ <%= form_phc_scriptcdn_author.label :authorlastname, "Author Last Name" %>
+ <%= form_phc_scriptcdn_author.text_field :authorlastname, placeholder: "Author Last Name", class: "form-control" %>
</div>
<div class="form-group field_with_error">
- <%= f.label :authorwebsite, "Author Website" %>
- <%= f.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
+ <%= form_phc_scriptcdn_author.label :authorwebsite, "Author Website" %>
+ <%= form_phc_scriptcdn_author.text_field :authorwebsite, placeholder: "Author Website", class: "form-control" %>
</div>
<div class="form-group field_with_error">
- <%= f.label :authorgithub, "Author Github Address" %>
- <%= f.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
+ <%= form_phc_scriptcdn_author.label :authorgithub, "Author Github Address" %>
+ <%= form_phc_scriptcdn_author.text_field :authorgithub, placeholder: "Author Github Address", class: "form-control" %>
</div>
- <div class="form-group field_with_error">
- <%= f.label :authortwitter, "Author Twitter Addresss" %>
- <%= f.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
- </div>
- <!-- Form Fields -->
+ <!-- Form_phc_scriptcdn_author Input Fields -->
- <!-- Form Button -->
+ <!-- Form_phc_scriptcdn_author Submition Button -->
<div class="actions">
- <%= f.submit class: "btn btn-primary" %>
+ <%= form_phc_scriptcdn_author.submit class: "btn btn-primary" %>
</div>
- <!-- Form Button -->
+ <!-- For Submition Button -->
<% end %>