Commit 3e405bc4 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5210: updating view to use better exposed filters and ajax, also...

ISTWCMS-5210: updating view to use better exposed filters and ajax, also removing better exposed filters on display
parent f0d306a1
......@@ -22,6 +22,7 @@ dependencies:
- taxonomy.vocabulary.uw_vocab_opportunity_payrate
- taxonomy.vocabulary.uw_vocab_opportunity_type
module:
- better_exposed_filters
- datetime
- link
- node
......@@ -649,6 +650,10 @@ display:
filter_groups: false
style: false
row: false
arguments: false
exposed_form: false
use_ajax: false
title: false
filters:
status:
value: '1'
......@@ -991,6 +996,56 @@ display:
options:
relationship: none
view_mode: teaser
arguments: { }
exposed_form:
type: bef
options:
submit_button: Apply
reset_button: true
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required: 'Select any filter and click on Apply to see results'
text_input_required_format: uw_tf_standard
bef:
general:
autosubmit: false
autosubmit_exclude_textfield: false
autosubmit_textfield_delay: 500
autosubmit_hide: false
input_required: false
allow_secondary: false
secondary_label: 'Advanced options'
secondary_open: false
filter:
field_uw_opportunity_type_target_id:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
collapsible: false
is_secondary: false
field_uw_opportunity_employment_target_id:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
collapsible: false
is_secondary: false
field_uw_opportunity_pay_type_target_id:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
collapsible: false
is_secondary: false
use_ajax: true
title: 'Opportunity list'
cache_metadata:
max-age: -1
contexts:
......
......@@ -6,6 +6,7 @@
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\ViewExecutable;
/**
* Implements hook_form_alter().
......@@ -53,7 +54,7 @@ function uw_ct_opportunities_form_alter(array &$form, FormStateInterface $form_s
/**
* Implements hook_views_pre_render().
*/
function uw_ct_opportunity_views_pre_render(ViewExecutable $view) {
function uw_ct_opportunities_views_pre_render(ViewExecutable $view) {
// Remove exposed filters on block listing view.
if ($view->id() == 'uw_view_opportunities' &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment