Skip to content
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

NDEV-69 Filters by Service, Category and Client do not work when adding Analyses into a Worksheet #221

Merged
merged 3 commits into from
Aug 25, 2017

Conversation

Espurna
Copy link

@Espurna Espurna commented Aug 24, 2017

When the user creates a Worksheet, the Add Analyses view is displayed. In this view, there is a bar that allows the user to filter the analyses to be included in the worksheet by several criteria: Analysis Service, Category and Client. Seems that once the Search button is pressed, the filter has no effect.

This issue has been resolved by getting the filter parameters and reloading the bikalisting javascript.

It also uses the vocabulary creator in order to fill the filter options.

@xispa xispa self-requested a review August 24, 2017 09:27
@@ -43,14 +43,15 @@
<input type="hidden" name="submitted" value="1"/>
<input tal:replace="structure context/@@authenticator/authenticator"/>
<label for="getWorksheetTemplate" i18n:translate="">Select template</label>
<select id="ProfileSelector" name="getWorksheetTemplate">
<select id="ProfileSelector" name="getWorksheetTemplate"
tal:define="olist view/getWorksheetTemplates">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use a var name more meaningful, like ws_templates_list instead of olist

@@ -66,44 +67,47 @@
i18n:translate="">Category</label>
<select id="CategorySelector"
tal:attributes="name string:${form_id}_getCategoryTitle"
tal:define="olist view/getCategories"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, better use categories_list instead of olist

@xispa xispa merged commit c83acd3 into wip Aug 25, 2017
@xispa xispa deleted the bug/NDEV-69-worksheet-add-analyses-filters branch August 28, 2017 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants