-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3166 from manyfold3d/refactor-settings
Reorganise settings pages
- Loading branch information
Showing
27 changed files
with
603 additions
and
588 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
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
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
34 changes: 34 additions & 0 deletions
34
app/views/devise/registrations/_pagination_settings.html.erb
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="card mb-2"> | ||
<h3 class="card-header"><%= t(".heading") %></h3> | ||
<div class="card-body"> | ||
|
||
<p class='lead'> | ||
<%= t(".description") %> | ||
</p> | ||
|
||
<div class="row"> | ||
<%= form.label nil, t(".models.label"), for: "pagination_settings[models]", class: "col col-form-label" %> | ||
<div class="col form-check form-switch"> | ||
<%= form.check_box "pagination_settings[models]", checked: @user.pagination_settings["models"], class: "form-check-input" %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<%= form.label nil, t(".creators.label"), for: "pagination_settings[creators]", class: "col col-form-label" %> | ||
<div class="col form-check form-switch"> | ||
<%= form.check_box "pagination_settings[creators]", checked: @user.pagination_settings["creators"], class: "form-check-input" %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<%= form.label nil, t(".collections.label"), for: "pagination_settings[collections]", class: "col col-form-label" %> | ||
<div class="col form-check form-switch"> | ||
<%= form.check_box "pagination_settings[collections]", checked: @user.pagination_settings["collections"], class: "form-check-input" %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<%= form.label nil, t(".per_page.label"), for: "pagination_settings[per_page]", class: "col col-form-label" %> | ||
<div class="col"> | ||
<%= form.number_field "pagination_settings[per_page]", value: @user.pagination_settings["per_page"], in: 1..100, class: "form-control" %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.