-
Notifications
You must be signed in to change notification settings - Fork 5
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 #2184 from Children-in-Families/merge-23082023
Merge 23082023
- Loading branch information
Showing
23 changed files
with
214 additions
and
113 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
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
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
42 changes: 42 additions & 0 deletions
42
app/views/clients/client_advanced_searches/_assessment_columns.haml
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,42 @@ | ||
.assessment-column | ||
%ul.check-columns-visibility | ||
%li.dropdown | ||
%a.dropdown-toggle.btn.btn-default{ class: assessment_values.blank? && 'disabled' , 'data-toggle' => 'dropdown', href: '#' } | ||
= t('datagrid.columns.select_columns') | ||
%span.caret | ||
%ul.dropdown-menu.columns-visibility.append-child | ||
- if enable_default_assessment? | ||
.custom-assessment-setting{ data: { custom_assessment_setting_id: 0 }, style: 'display: none;' } | ||
- if current_organization.try(:aht) == true | ||
%li.custom-assessment-devider{ style: 'padding-left: 15px; padding-bottom: 5px;'} | ||
%strong= t('.result_framework_assessment') | ||
%li | ||
- else | ||
%li.custom-assessment-devider{ style: 'padding-left: 15px; padding-bottom: 5px;'} | ||
%strong= t('.csi_domain_scores') | ||
|
||
%li | ||
.visibility.col-sm-12 | ||
= check_box_tag 'all_csi_assessments_', 'all_csi_assessments', checked = saved_search_column_visibility('all_csi_assessments_'), class: 'i-checks' | ||
- if current_organization.try(:aht) == true | ||
= label_tag 'all_result_framework_assessments_', t('datagrid.columns.all_result_framework_assessment') | ||
- else | ||
= label_tag 'all_csi_assessments_', t('datagrid.columns.all_csi_assessments', assessment: t('clients.show.assessment')) | ||
%li | ||
.visibility.col-sm-12 | ||
= check_box_tag 'assessment_created_at_', 'assessment_created_at', checked = saved_search_column_visibility('assessment_created_at_'), class: 'i-checks' | ||
= label_tag 'assessment_created_at_', t('datagrid.columns.assessment_created_at', assessment: t('clients.show.assessment')) | ||
%li | ||
.visibility.col-sm-12 | ||
= check_box_tag 'date_of_assessments_', 'date_of_assessments', checked = saved_search_column_visibility('date_of_assessments_'), class: 'i-checks' | ||
= label_tag 'date_of_assessments_', t('datagrid.columns.date_of_assessments', assessment: t('clients.show.assessment')) | ||
%li | ||
.visibility.col-sm-12 | ||
= check_box_tag 'completed_date_', 'completed_date', checked = saved_search_column_visibility('completed_date_'), class: 'i-checks' | ||
= label_tag 'completed_date_', t('datagrid.columns.assessment_completed_date', assessment: t('clients.show.assessment')) | ||
|
||
= render partial: 'datagrid/domain_score_columns_picker', collection: Domain.csi_domains.order_by_identity, as: :domain | ||
- if enable_custom_assessment? | ||
- CustomAssessmentSetting.only_enable_custom_assessment.each do |cas| | ||
.custom-assessment-setting{ data: { custom_assessment_setting_id: cas.id }, style: 'display: none;' } | ||
= render partial: 'datagrid/custom_domain_score', locals: { custom_assessment_setting_name: cas.custom_assessment_name, custom_domains: Domain.custom_csi_domains.order_by_identity.where(custom_assessment_setting_id: cas.id) } |
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,5 +1,5 @@ | ||
%li | ||
.visibility.col-sm-12 | ||
- domain_text = domain.custom_domain ? "custom_#{domain.convert_identity}_" : "#{domain.convert_identity}_" | ||
= check_box_tag domain_text, domain.convert_identity, checked = default_setting(domain_text, @client_default_columns) || params[:"#{domain_text}"].present? || saved_search_column_visibility(domain_text) || saved_search_column_visibility('all_csi_assessments_') || saved_search_column_visibility('all_custom_csi_assessments_'), class: 'i-checks' | ||
= check_box_tag domain_text, domain.convert_identity, checked = default_setting(domain_text, @client_default_columns) || params[:"#{domain_text}"].present? || saved_search_column_visibility(domain_text), class: 'i-checks' | ||
= label_tag "#{domain.convert_identity}_", domain.identity |
Oops, something went wrong.