<%# react_component("PageCollectionCreationForm", { all_content_types: Rails.application.config.content_types[:all].map(&:name), active_content_types: page_collection.page_types }) %> <%= form_with(model: page_collection, local: true) do |f| %> <% if page_collection.errors.any? %>

<%= pluralize(page_collection.errors.count, "error") %> prohibited this Collection from being saved:

<% end %>
Basic information
<%= f.label :title %> <%= f.text_field :title %>
<%= f.label :subtitle %> <%= f.text_field :subtitle %>
<%= f.label :description %> <%= f.text_field :description %>
Header image
Upload <%= f.file_field :header_image %>
Supported file types: .png, .jpg, .jpeg, .gif
Don't forget to save your changes below for any new upload to take effect.
Acceptable pages

Please check the types of pages you'll allow to be submitted or added to this in this collection. A small number of page types is recommended. You can change this at any time.


<% Rails.application.config.content_types[:all].each do |content_type| %>

<% end %>
Privacy & collaboration

If you choose to make this collection public, you can also use the following controls:

<%= f.submit nil, class: "btn #{PageCollection.color} white-text" %>
<% end %>