<%= form_with(model: script_listing, local: true) do |phc_scriptcdn_pro_listings| %> <%= render 'phcnotifi/validations', :object => @script_listing %>
<%= phc_scriptcdn_pro_listings.label :script_tittle %> <%= phc_scriptcdn_pro_listings.text_field :script_tittle, placeholder: "Script Title", class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_description, "Script Description" %> <%= phc_scriptcdn_pro_listings.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_source, "Script Source Code" %> <%= phc_scriptcdn_pro_listings.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_website, "Script Website" %> <%= phc_scriptcdn_pro_listings.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_github, "Script Github" %> <%= phc_scriptcdn_pro_listings.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_initial_release, "Initial Release" %> <%= phc_scriptcdn_pro_listings.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_lastest_release, "Latest Release" %> <%= phc_scriptcdn_pro_listings.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_beta_release, "Preview Release" %> <%= phc_scriptcdn_pro_listings.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
<%= phc_scriptcdn_pro_listings.label :script_lastest_release_cdn, "Script CDN Release" %> <%= phc_scriptcdn_pro_listings.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
<%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
<%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
<%= phc_scriptcdn_pro_listings.label :script_status, "Script Status" %> <%= phc_scriptcdn_pro_listings.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
<%= phc_scriptcdn_pro_listings.submit class: "btn btn-primary" %>
<% end %>