<%= form_for(script_listing) do |f| %> <%= render 'phcnotifi/validations', :object => @script_listing %>
<%= f.label :scripttitle, "Script Title" %> <%= f.text_field :scripttitle, placeholder: "Script Information Title", class: "form-control" %>
<%= f.label :scriptdescription, "Script Description" %> <%= f.text_area :scriptdescription, placeholder: "Script Information Description", class: "form-control" %>
<%= f.label :scriptwebsite, "Script Website" %> <%= f.text_field :scriptwebsite, placeholder: "Script Information Website", class: "form-control" %>
<%= f.label :scripttwitter, "Script Twitter" %> <%= f.text_field :scripttwitter, placeholder: "Script Information Twitter Address", class: "form-control" %>
<%= f.label :scriptgithub, "Script Github" %> <%= f.text_field :scriptgithub, placeholder: "Script Information Github Address", class: "form-control" %>
<%= f.label :scriptinitialrelease, "Initial Release" %> <%= f.date_select :scriptinitialrelease, :start_year => 1981, class: "form-control" %>
<%= f.label :scriptlastestrelease, "Latest Release" %> <%= f.date_select :scriptlastestrelease, :start_year => 1981, class: "form-control" %>
<%= f.label :scriptbetarelease, "Next Release" %> <%= f.date_select :scriptbetarelease, :start_year => 1981, class: "form-control" %>
<%= collection_select(:script_listing, :version_id, Phcscriptcdnpro::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
<%= collection_select(:script_listing, :licence_id, Phcscriptcdnpro::Script::Licence.order('lcncname'), :id, :lcncname, {}, {class: "form-control"}) %>
<%= collection_select(:script_listing, :author_id, Phcscriptcdnpro::Script::Author.order('authorfirstname'), :id, :authorfirstname, {}, {class: "form-control"}) %>
<%= f.label :scriptstatus, "Script Status" %> <%= f.select( :scriptstatus, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
<%= f.submit class: "btn btn-primary" %>
<% end %>