diff --git a/app/controllers/page_collections_controller.rb b/app/controllers/page_collections_controller.rb index 13a284f5..69f3c2b1 100644 --- a/app/controllers/page_collections_controller.rb +++ b/app/controllers/page_collections_controller.rb @@ -7,7 +7,7 @@ class PageCollectionsController < ApplicationController before_action :set_page_collection, only: [:show, :edit, :by_user, :update, :destroy, :follow, :unfollow, :report] before_action :set_submittable_content, only: [:show, :by_user] - layout 'tailwind', only: [:index, :show] + layout 'tailwind', only: [:index, :show, :edit] # GET /page_collections def index diff --git a/app/views/page_collections/_form.html.erb b/app/views/page_collections/_form.html.erb index e5e394c3..2376a3b1 100644 --- a/app/views/page_collections/_form.html.erb +++ b/app/views/page_collections/_form.html.erb @@ -1,3 +1,320 @@ +
+ + +
+
+
+
+

Look & feel

+

Control the look and feel of your collection.

+
+ +
+ + +
+ + +
+ +
+ + +
+ +
+ +
+ +
+

Brief description for your collection. <strong> and <em> tags are supported.

+
+ +
+ +
+
+ <% if @page_collection.persisted? && @page_collection.header_image %> + <%= link_to @page_collection.header_image, target: '_blank' do %> + <%= image_tag @page_collection.first_public_image, class: 'rounded' %> + <% end %> + <% end %> +
+
+
+
+ +
+ +

or drag and drop to change your header

+
+

PNG, JPG, GIF up to 10MB

+
+
+
+
+
+
+ +
+
+ + +
+
+
+

Submissions

+

What kinds of pages do you want in this collection?

+
+ +
+ +
+ Allowed pages +
+ <% Rails.application.config.content_types[:all].each do |content_type| %> +
+
+ +
+
+ + <%= content_type.icon %> + + +
+
+ <% end %> +
+
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+

Brief description for your collection. <strong> and <em> tags are supported.

+
+ +
+
+
+ +
+
+ + + +
+
+
+

Personal Information

+

Use a permanent address where you can recieve mail.

+
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+ +
+
+ +
+
+
+

Notifications

+

Provide basic informtion about the job. Be specific with the job title.

+
+ +
+ By Email +
+
+
+ +
+
+ +

Get notified when someones posts a comment on a posting.

+
+
+
+
+
+ +
+
+ +

Get notified when a candidate applies for a job.

+
+
+
+
+
+
+ +
+
+ +

Get notified when a candidate accepts or rejects an offer.

+
+
+
+
+
+
+ Push Notifications +

These are delivered via SMS to your mobile phone.

+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+
+
+ + + + + + + + <%# react_component("PageCollectionCreationForm", { all_content_types: Rails.application.config.content_types[:all].map(&:name), active_content_types: page_collection.page_types diff --git a/app/views/page_collections/edit.html.erb b/app/views/page_collections/edit.html.erb index d7adc207..ee6d5aa0 100644 --- a/app/views/page_collections/edit.html.erb +++ b/app/views/page_collections/edit.html.erb @@ -1,4 +1,10 @@ -<%= render 'form', page_collection: @page_collection %> +
+

+ <%= @page_collection.title %> +

+ + <%= render 'form', page_collection: @page_collection %> +
<%= link_to 'Delete this page collection',