mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
Add appearance setting for 2 column layout (#1285)
This commit is contained in:
@@ -28,6 +28,27 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= settings_section title: t(".dashboard_title"), subtitle: t(".dashboard_subtitle") do %>
|
||||
<div>
|
||||
<%= form_with url: settings_appearance_path, method: :patch,
|
||||
class: "p-3",
|
||||
data: { controller: "auto-submit-form" } do |f| %>
|
||||
<div class="flex cursor-pointer items-center gap-4 justify-between">
|
||||
<div class="text-sm space-y-1">
|
||||
<h4 class="text-primary"><%= t(".dashboard_two_column_title") %></h4>
|
||||
<p class="text-secondary"><%= t(".dashboard_two_column_description") %></p>
|
||||
</div>
|
||||
<%= render DS::Toggle.new(
|
||||
id: "user_dashboard_two_column",
|
||||
name: "user[dashboard_two_column]",
|
||||
checked: @user.dashboard_two_column?,
|
||||
data: { auto_submit_form_target: "auto" }
|
||||
) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= settings_section title: t(".transactions_title"), subtitle: t(".transactions_subtitle") do %>
|
||||
<div>
|
||||
<%= form_with url: settings_appearance_path, method: :patch,
|
||||
|
||||
Reference in New Issue
Block a user