-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding management of theme (user settings + js)
- Loading branch information
Showing
5 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
<div class="authform"> | ||
<h3><%= t(".title") %></h3> | ||
<% provide(:title, t(".title")) %> | ||
<%= render "layouts/breadcrumb", breadcrumb_variables: { | ||
t(".title") => "" | ||
} %> | ||
|
||
<%= form_with model: @user, url: users_settings_path do |f| %> | ||
<div class="form-group"> | ||
<%= f.label :locale %> | ||
<%= f.select :locale, UserDecorator::available_locales_for_options, {}, class: "form-control" %> | ||
</div> | ||
<div class="row my-5"> | ||
<div class="col-11 col-md-10 col-lg-8 mx-auto"> | ||
<h1 class="text-center pb-5"><%= t(".title") %></h1> | ||
|
||
<!-- TODO: Remove me when themes will be implemented --> | ||
<!-- <div class="form-group"> | ||
<%= f.label :theme %> | ||
<%= f.select :theme, UserDecorator::available_themes_for_options, {}, class: "form-control" %> | ||
</div> --> | ||
<%= form_with model: @user, url: users_settings_path, class: "bg-body-tertiary p-4 rounded border" do |f| %> | ||
<div class="row g-3"> | ||
<fieldset class="col-12"> | ||
<%= f.label :locale, class: "form-label" %> | ||
<%= f.select :locale, UserDecorator::available_locales_for_options, {}, class: "form-select" %> | ||
</fieldset> | ||
|
||
<div class="form-group"> | ||
<%= f.label :visualization_bay_default_background_color %> | ||
<%= f.select :visualization_bay_default_background_color, UserDecorator::available_background_colors_for_options, {}, class: "form-control" %> | ||
</div> | ||
<fieldset class="col-12 mt-4"> | ||
<%= f.label :theme, class: "form-label" %> | ||
<%= f.select :theme, UserDecorator::available_themes_for_options, {}, class: "form-select" %> | ||
</fieldset> | ||
|
||
<div class="form-group"> | ||
<%= f.label :visualization_bay_default_orientation %> | ||
<%= f.select :visualization_bay_default_orientation, UserDecorator::available_bay_orientations_for_options, {}, class: "form-control" %> | ||
</div> | ||
<fieldset class="col-12 mt-4"> | ||
<%= f.label :visualization_bay_default_background_color, class: "form-label" %> | ||
<%= f.select :visualization_bay_default_background_color, UserDecorator::available_background_colors_for_options, {}, class: "form-select" %> | ||
</fieldset> | ||
|
||
<%= f.submit t("action.edit"), class: "button right" %> | ||
<% end %> | ||
<fieldset class="col-12 mt-4"> | ||
<%= f.label :visualization_bay_default_orientation, class: "form-label" %> | ||
<%= f.select :visualization_bay_default_orientation, UserDecorator::available_bay_orientations_for_options, {}, class: "form-select" %> | ||
</fieldset> | ||
|
||
<div class="col-12 mt-4"> | ||
<%= f.submit t("action.edit"), class: "w-100 btn btn-primary" %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> |