Repository navigation
Improve UI for home page #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
36d0ee1
add fields
microstudi 3ff6617
Merge branch 'main' into improve-ui
microstudi 92b32aa
add cancel cache button
microstudi 6641a07
add back buttons
ElviaBth fa8a728
add search to translations sets
ElviaBth 322ee3d
normalize locales en
ElviaBth 105ff68
fix spec
ElviaBth b3f58f4
add back button
ElviaBth 466099d
add search translation by key
ElviaBth 2467d15
fix maily_digest bug
ElviaBth cb5c11e
add loader spec
ElviaBth 04f5c43
apply loader method definition
ElviaBth 808734f
apply some changes
ElviaBth 21d41d2
normilize locales en
ElviaBth f1f2c6c
fix spec
ElviaBth f30aaf9
add column to translations sets index view
ElviaBth dfdf0e2
fix spec
ElviaBth 4b1d1ee
remove bug fix
ElviaBth 8e1bfaf
add and normalize locales
ElviaBth a392f64
Merge branch 'main' into improve-ui
ElviaBth 2f5cc88
add searching entries by values
ElviaBth 633ca9c
improve message on confirm
microstudi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ RSpec/DescribeClass: | |
| Exclude: | ||
| - spec/i18n_spec.rb | ||
| - "spec/system/**/*" | ||
| - "spec/lib/**/*" | ||
31 changes: 31 additions & 0 deletions
31
app/controllers/concerns/decidim/term_customizer/admin/filterable.rb
This file contains hidden or 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,31 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| require "active_support/concern" | ||
|
|
||
| module Decidim | ||
| module TermCustomizer | ||
| module Admin | ||
| module Filterable | ||
| extend ActiveSupport::Concern | ||
|
|
||
| included do | ||
| include Decidim::Admin::Filterable | ||
|
|
||
| private | ||
|
|
||
| def base_query | ||
| Decidim::TermCustomizer::TranslationSet.joins(:constraints).where( | ||
| decidim_term_customizer_constraints: { | ||
| decidim_organization_id: current_organization.id | ||
| } | ||
| ).distinct | ||
| end | ||
|
|
||
| def search_field_predicate | ||
| :search_text_or_translations_key_cont | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
22 changes: 22 additions & 0 deletions
22
app/views/decidim/term_customizer/admin/translation_sets/_search.html.erb
This file contains hidden or 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,22 @@ | ||
| <div class="filters__section"> | ||
| <div class="fcell search"> | ||
| <%= search_form_for(query, url: url_for) do |form| %> | ||
| <%= applied_filters_hidden_field_tags %> | ||
| <div class="input-group"> | ||
| <%= form.search_field( | ||
| search_field_predicate, | ||
| class: "input-group-field", | ||
| label: false, | ||
| placeholder: t(search_field_predicate, | ||
| collection: collection_name, | ||
| scope: "decidim.admin.filters.search_placeholder") | ||
| ) %> | ||
| <div class="input-group-button"> | ||
| <button type="submit" class="text-secondary" aria-label="<%= t("decidim.search.term_input_placeholder") %>"> | ||
| <%= icon "search-line", class: "fill-secondary w-4 h-4" %> | ||
| </button> | ||
| </div> | ||
| </div> | ||
| <% end %> | ||
| </div> | ||
| </div> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.