* . * . * . * snapshot * whoops * halifax * tests * little fixes * little fixes * test? i guess.. * . * minor fixes * Update schema.rb * Use shared logo_design in new org partial * little fix * Fix org spec * decrayonsifying rich-selector * if statement Co-authored-by: rhymes <rhymesete@gmail.com>
22 lines
1.2 KiB
Text
22 lines
1.2 KiB
Text
<div class="crayons-card grid gap-6 p-6 mb-6">
|
|
<header>
|
|
<h3 class="mb-2">Languages <span class="crayons-indicator crayons-indicator--accent">beta</span></h3>
|
|
<p>Select which languages you'd prefer to see in your feed.</p>
|
|
<p>This setting controls which languages you are more likely to see throughout the site, but you may still see other languages, especially English.</p>
|
|
</header>
|
|
|
|
<div class="crayons-notice crayons-notice--warning">
|
|
<p>This feature is in beta and will improve over time. Another way to tailor your feed is to discover and follow members who write in your preferred language.</p>
|
|
</div>
|
|
|
|
<%= form_tag users_update_language_settings_path, class: "grid gap-4" do |f| %>
|
|
<% Languages::LIST.each do |code, name| %>
|
|
<label class="crayons-field crayons-field--checkbox">
|
|
<%= check_box_tag "user[preferred_languages][]", code, @user.preferred_languages_array.include?(code), class: "crayons-checkbox" %>
|
|
<div class="crayons-field__label"><%= name %></div>
|
|
</label>
|
|
<% end %>
|
|
<%= hidden_field_tag :tab, value: @tab %>
|
|
<div class="mt-6"><button type="submit" class="crayons-btn">Save Language Settings</button></div>
|
|
<% end %>
|
|
</div>
|