<%= form_with(model: script_listing, local: true) do |form| %> <%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_listing %>
<%= form.label :script_title, "Script Title", class: "form-label" %> <%= form.text_field :script_title, placeholder: "Script Title", class: "form-control" %>
<%= form.label :script_description, "Script Description", class: "form-label" %> <%= form.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
<%= form.label :script_source, "Script Source Code", class: "form-label" %> <%= form.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
<%= form.label :script_website, "Script Website", class: "form-label" %> <%= form.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
<%= form.label :script_github, "Script Github", class: "form-label" %> <%= form.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
<%= form.label :script_initial_release, "Initial Release", class: "form-label" %> <%= form.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
<%= form.label :script_lastest_release, "Latest Release", class: "form-label" %> <%= form.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
<%= form.label :script_beta_release, "Preview Release", class: "form-label" %> <%= form.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
<%= form.label :script_lastest_release_cdn, "Script CDN Release", class: "form-label" %> <%= form.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"}) %>
<%= form.label :script_status, "Script Status", class: "form-label" %> <%= form.select( :script_status, [["Active","Active"],["Outdated","Out Dated"],["Deactivated","Not Active"]], {}, {class: "form-control"}) %>
<%= form.submit class: "btn btn-primary" %>
<% end %>