<%= form_with(model: script_listing, local: true) do |form| %> <%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_listing %>
<%= form.label :listing_title, "Script Title" %> <%= form.text_field :listing_title, placeholder: "Script Title", class: "form-control" %>
<%= form.label :listing_description, "Script Description" %> <%= form.text_area :listing_description, placeholder: "Script Description", class: "form-control" %>
<%= form.label :listing_script_source, "Script Source Code" %> <%= form.text_field :listing_script_source, placeholder: "Script Source", class: "form-control" %>
<%= form.label :listing_script_website, "Script Website" %> <%= form.text_field :listing_script_website, placeholder: "Script Website", class: "form-control" %>
<%= form.label :listing_script_repo, "Script Public Repo" %> <%= form.text_field :listing_script_repo, placeholder: "Script Github Address", class: "form-control" %>
<%= form.label :listing_script_initial_release, "Initial Release" %> <%= form.date_select :listing_script_initial_release, start_year: 1981, class: "form-control" %>
<%= form.label :listing_script_lastest_release, "Latest Release" %> <%= form.date_select :listing_script_lastest_release, start_year: 1981, class: "form-control" %>
<%= form.label :listing_script_beta_release, "Preview Release" %> <%= form.date_select :listing_script_beta_release, start_year: 1981, class: "form-control" %>
<%= form.label :listing_script_lastest_release_cdn, "Script CDN Release" %> <%= form.date_select :listing_script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
<%= collection_select(:script_listing, :author_id, PhcdevworksScripts::Script::Author.order("author_first_name"), :id, :author_first_name, {}, {class: "form-control"}) %>
<%= form.label :listing_script_status, "Script Status" %> <%= form.select( :listing_script_status, [["Active","Active"],["Outdated","Out Dated"],["Deactivated","Not Active"]], {}, {class: "form-control"}) %>
<%= form.submit class: "btn btn-primary" %>
<% end %>