- 21 Mar, 2018 36 commits
-
-
Ryan Herbert authored
moves the new patient/form and patient/submit routes to the sample_set controller and removes any add/edit routes from all set controllers. The same goes for the templates. Also allows the inclusion of different types of sets in a single form. For this, the sample_set/form.html template includes patials for each set type. See #2878 One form to rule them all, one form the find them, one form to bring them all, and in the template bind them.
-
Ryan Herbert authored
Makes use of more different classes to build different forms.
-
Ryan Herbert authored
web2py Row objects are compatible with dot notation and getitem notation, so dot notation is preferable in that case. However, we want to be able to use dicts built from our json forms, so we need to use getitem notation everywhere.
-
Ryan Herbert authored
-
Ryan Herbert authored
makes sure none of the elements from the header overlap into the main content.
-
Ryan Herbert authored
-
Ryan Herbert authored
makes the refactored patient form extendable. With the serializeObject method, form names can be used like array/object accessors and enables complexe json objects to be built from the form and sent to the controller. See #2878
-
Ryan Herbert authored
Having a single controller and view, is better for clean code practices, since changes to the form/controller won't require two forms and controllers to be changed. So when the changes for the multi-patient form come in, we'll have less to do and a cleaner code-bade to work from. I also took the opportunity to build the from with divs rather than a table since we're going to need a more flexible layout when the time comes. Also less DOM nodes.
-
Ryan Herbert authored
For adding files to sample_sets. Alters the existing id strings by removing dates. I wanted to clean things up a little and alter the way id_strings are created/decoded before making them a little more flexible in order to produce more aesthetically pleasing id_strings.
-
Ryan Herbert authored
this is a refactor of anon_names. We want to use anon_names elsewhere but without the id when the user is admin. display_names replaces anon_names and behaves as anon_names did before.
-
Ryan Herbert authored
-
Ryan Herbert authored
set the cursor to a pointer when hovering the cross icon inside the token span See #2976
-
Ryan Herbert authored
using CSS, hides the sample id string prefix and displays the full name of the set type. See #2981
-
Ryan Herbert authored
this was css copied into our sass file. So it makes sense to make the most of the sass syntax and nesting feature.
-
Ryan Herbert authored
when highlighting a samle id string, we want it to match the colour of the token that will be inserted. See #2981
-
Ryan Herbert authored
We are going to be using these again so we want a nice variable to make things easier.
-
Ryan Herbert authored
due to the differences with the matcher, the highlight regex was not matching correctly, so the entered text was not easily apparent when filtering sample id strings
-
Ryan Herbert authored
sample identification strings contain dash-separated dates, so we need to detect that when matching for autocompletion
-
Ryan Herbert authored
prevents the token div from expanding too much and allows the token spans to wrap within the parent div.
-
Ryan Herbert authored
Making it clear when it is possible to click in order to start typing a set token
-
Ryan Herbert authored
Makes it look as though the tokens are inside some kind of textarea rather than a separate div from the input.
-
Ryan Herbert authored
removing the matcher function as well as the search value in the beforeSave callback broke autocompletion.
-
Ryan Herbert authored
-
Ryan Herbert authored
-
Ryan Herbert authored
The redirection at the end of the submission controller checks the initial sample-set-type in order to redirect to the source sample-set. But if the initial sample-set is removed from the list of sets to add a sample to, then we need to ensure we still have a set to redirect to.
-
Ryan Herbert authored
so we can remove tokens if a mistake is made.
-
Ryan Herbert authored
-
Ryan Herbert authored
rather than having a long string of id strings when adding a sample to multiple sets, we now have spans that represent the set id strings and the input is emptied after adding each set.
-
Ryan Herbert authored
missing = sign meant no groups were entered for the autocompleted field.
-
Ryan Herbert authored
Due to the lack of a flag to start matching text, it was necessary to alter the matcher to allow us to start matching the last element in an input without. The lack of a flag means that all the text in the input is matched to the query and therefore we needed to extract the last matching string to autocomplete.
-
Ryan Herbert authored
altering the highlighter callback in order to accept brackets in the regex. Otherwise, atwho would crash when attempting to highlight a query containing brackets.
-
Ryan Herbert authored
when adding there is obviously no file object to check.
-
Ryan Herbert authored
The type identifier is designed to help with the search string, not necessarily with the display of information See #2895
-
Ryan Herbert authored
forgot to add the file after creating it for the previous commit
-
Ryan Herbert authored
Refactors the file add and edit forms into a single form, and implements a single input for set selection when uploading files. See #2896
-
Ryan Herbert authored
-
- 20 Mar, 2018 4 commits
-
-
Mathieu Giraud authored
Completes 42d81035.
-
Mikaël Salson authored
Feature s/3055 fix log encoding Closes #3055 See merge request !175
-
Ryan Herbert authored
See #3055
-
Ryan Herbert authored
See #3055
-