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

Aggregated list of analyses set to read-only #684

Merged
merged 6 commits into from
Feb 22, 2018

Conversation

xispa
Copy link
Member

@xispa xispa commented Feb 21, 2018

Description of the issue/feature this PR addresses

Is totally meaningless to allow the user to introduce results in aggregated list of analyses. The introduction of results must be done through Worksheets or, alternatively through the Analysis Request' manage results view.

Apart from this functional consideration, allowing the introduction of results in aggregated list of analyses was causing a lot of problems because when "Show more" button was clicked, the js events responsible of managing things like instruments, methods, calculation or remarks balloon was not working properly.

With this PR, the remarks toggle button (balloon) is not rendered by js anymore. Rather is managed by the Analyses view and the template. The js is only responsible of the click event. In addition, some styling to remarks field has been added.

By default, remarks field is always displayed in read-only analyses that have remarks set. For analyses that are in edit mode, a balloon is displayed to toggle the field.

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Cool, thanks!

@ramonski ramonski merged commit 4c49644 into senaite:master Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants