* Removes FeatureFlag.enabled?(:creator_onboarding) from codebase * Removes FeatureFlag.enabled?(:creator_onboarding) from specs * Further cleanup, removal, and spec fixes * Fixes the user_request_confirmation_spec.rb * Reverts change to confirmation email button * Revert revert after looking at designs again :( * Removes redundant logo_png field from config + fixes test * Rewords an expectation in user_uses_the_editor_spec.rb * Revert removal of logo_png from Config images * Removes CSS class from user_uses_the_editor_spec.rb * Removes test from user_uses_the_editor_sepc.rb * Removes unnecessary else from _logo.html.erb * Adds back removed system spec * Removes SVG-related code from _logo.html.erb * Removes AsyncInfoController#use_creator_onboarding * Fixes spec failues due to removed code * Removes svg-related code (that I thought I removed already :/ ) * Re-removes FeatureFlag and logo_svg from _images.html.erb * Remove newest instances of FeatureFlag(:creator_onboarding) * remove instances where we use the creator_onboarding field from the base_data * fix: redirect to the correct path in the reguistrations controller based on whether the user is a creator or not Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
36 lines
1.4 KiB
Text
36 lines
1.4 KiB
Text
<% if User.with_role(:creator).any? %>
|
|
<style>
|
|
<%= Rails.application.assets["setup-mode.css"].to_s.html_safe %>
|
|
</style>
|
|
|
|
<main id="main-content" class="flex flex-1 justify-center flex-col crayons-layout crayons-layout--limited-xs" data-controller="creator-settings">
|
|
<div aria-live="assertive">
|
|
<% if flash[:error] %>
|
|
<div class="crayons-notice crayons-notice--danger mb-6" role="alert">
|
|
<% flash[:error].each do |message| %>
|
|
<div><%= message %></div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= form_with url: admin_creator_settings_path, model: @creator_settings_form, local: true, method: "post", multipart: true, class: "relative z-elevate p-4", "data-action": "submit->creator-settings#formValidations" do |f| %>
|
|
|
|
<div class="align-center">
|
|
<p class="fs-3xl fw-bold">Lovely! Let's set up your Forem.</p>
|
|
<p class="color-base-70 fs-xl">No stress, you can always change it later.</p>
|
|
</div>
|
|
<br>
|
|
<%= render "form", creator_settings_form: @creator_settings_form, f: f %>
|
|
<div class="crayons-field mt-6 align-left">
|
|
<%= f.submit "Finish", class: "crayons-btn btn--primary" %>
|
|
</div>
|
|
<% if @help_url %>
|
|
<%= render "shared/help_icon" %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= inline_svg_tag("forem-background.svg", aria_hidden: true, class: "forem-background fixed bottom-0 right-0 hidden m:block") %>
|
|
</main>
|
|
|
|
<% end %>
|