docbrown/app/views/admin/settings/forms/_onboarding.html.erb
Duke Greene cf7847fadb
remove onboarding background image, use gradient based on brand color (#19815)
* remove background image, rename prop to refer to color, pass primary brand color

* create helper method, send calculated gradient values into frontend props

* test new helper method and refine how color is darkened
2023-07-27 07:27:21 -04:00

21 lines
954 B
Text

<%= form_for(Settings::General.new,
url: admin_settings_general_settings_path,
html: { data: { action: "submit->config#updateConfigurationSettings" } }) do |f| %>
<details class="crayons-card">
<summary class="crayons-subtitle-2 p-6">Onboarding</summary>
<div class="p-6 pt-0">
<fieldset class="grid gap-4">
<div class="crayons-field">
<%= admin_config_label :suggested_tags %>
<%= admin_config_description Constants::Settings::General.details[:suggested_tags][:description] %>
<%= f.text_field :suggested_tags,
class: "crayons-textfield",
value: Settings::General.suggested_tags.join(","),
placeholder: Constants::Settings::General.details[:suggested_tags][:placeholder] %>
</div>
</fieldset>
<%= render "update_setting_button", f: f %>
</div>
</details>
<% end %>