-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
NDEV-69 Filters by Service, Category and Client do not work when adding Analyses into a Worksheet #221
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 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 |
---|---|---|
|
@@ -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"> | ||
<option value=""></option> | ||
<tal:profile repeat="profile view/getWorksheetTemplates"> | ||
<tal:profile repeat="profile olist"> | ||
<option | ||
tal:attributes=" | ||
value python:profile[0]; | ||
value python:profile; | ||
selected python: view.request.get('WorksheetTemplate', '') == profile[0] and 'selected' or ''" | ||
tal:content="python:profile[1]"/> | ||
tal:content="python:olist.getValue(profile)"/> | ||
</tal:profile> | ||
</select> | ||
<input type="submit" | ||
|
@@ -66,44 +67,47 @@ | |
i18n:translate="">Category</label> | ||
<select id="CategorySelector" | ||
tal:attributes="name string:${form_id}_getCategoryTitle" | ||
tal:define="olist view/getCategories" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, better use |
||
class="listing-filter"> | ||
<option value="any" i18n:translate="">Any</option> | ||
<tal:options repeat="category view/getCategories"> | ||
<tal:options repeat="category olist"> | ||
<option | ||
tal:attributes=" | ||
value python:category; | ||
selected python: view.request.form.get(form_id+'_getCategoryTitle', '') == category and 'selected' or ''" | ||
tal:content="python:category"/> | ||
tal:content="python:olist.getValue(category)"/> | ||
</tal:options> | ||
</select> | ||
|
||
<label tal:attributes="for string:${form_id}_Title" | ||
i18n:translate="">Service</label> | ||
<select id="ServiceSelector" | ||
tal:attributes="name string:${form_id}_Title" | ||
tal:define="olist view/getServices" | ||
class="listing-filter"> | ||
<option value="any" i18n:translate="">Any</option> | ||
<tal:options repeat="service view/getServices"> | ||
<tal:options repeat="service olist"> | ||
<option | ||
tal:attributes=" | ||
value python:service; | ||
selected python: view.request.form.get(form_id+'_Title', '') == service and 'selected' or ''" | ||
tal:content="python:service"/> | ||
tal:content="python:olist.getValue(service)"/> | ||
</tal:options> | ||
</select> | ||
|
||
<label tal:attributes="for string:${form_id}_getClientTitle" | ||
i18n:translate="">Client</label> | ||
<select id="ClientSelector" | ||
tal:attributes="name string:${form_id}_getClientTitle" | ||
tal:define="olist view/getClients" | ||
class="listing-filter"> | ||
<option value="any" i18n:translate="">Any</option> | ||
<tal:options repeat="client view/getClients"> | ||
<tal:options repeat="client olist"> | ||
<option | ||
tal:attributes=" | ||
value python:client; | ||
selected python: view.request.form.get(form_id+'_getClientTitle', '') == client and 'selected' or ''" | ||
tal:content="python:client"/> | ||
tal:content="python:olist.getValue(client)"/> | ||
</tal:options> | ||
</select> | ||
<a tal:attributes="href view/view_url" i18n:translate="" | ||
|
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
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.
There was a problem hiding this comment.
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 ofolist