- Aug 13, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
-
Alice Heaton authored
-
Alice Heaton authored
Refactor QUESTION_TYPE_TAXONOMY contanst in ViewAndEditTable into an application-wide constant providing the main categorization taxonomy per item type.
-
- Aug 12, 2015
-
-
Alice Heaton authored
Refactor views into multiple files prior to developing edit item features. Also changed the edit/create item urls.
-
- Aug 11, 2015
-
-
Martin Burchell authored
Only display the Remove Question Type menu item on pages where the question type can be set.
-
Martin Burchell authored
-
Martin Burchell authored
-
- Aug 10, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
If there is no source set on the tab configuration, the upload button will no longer be displayed.
-
- Aug 07, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
-
Martin Burchell authored
So user is redirected to the correct page after uploading data
-
- Aug 06, 2015
-
-
Martin Burchell authored
-
Alice Heaton authored
-
- Aug 05, 2015
-
-
Alice Heaton authored
Refactor the ViewsItems view, which covered the view and edit table, into a separate (non-view) class under tabs/view_and_edit_table.py. When ready, this will plug straight away into the new tabbed page functionality - in the mean time there is a place holder view to display the view where it used to be found.
-
- Aug 03, 2015
-
-
Martin Burchell authored
-
- Jul 29, 2015
-
-
Alice Heaton authored
Allow the chart count widget to have a time period. When present, apply the time period and display a legend detailing what the time period is.
-
- Jul 28, 2015
-
-
Alice Heaton authored
ViewItem.get_category_options should return the options as we want them - we shouldn't have to process them later. So make sure it returns (short question, short question) as we want both the value and the text to use the short version.
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
Refactor add_items_categories and add_categories into a single call, and make the taxonomy slug configurable at that level (it's now hard-coded in process_items). Update tests to match the change and ensure we can update multiple items at the same time.
-
- Jul 27, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
Re-introduce the per-row drop down to update each record's category as well as the mirrored buttons at the bottom of the page. This means that we have a single form that can either do a batch update, or an update of values set per row. The different action is determined by the submit button that was used - which is always named 'action'. Because we have a mirrored select drop down for the batch action, we need to know which one to take into account - so the value of the submit button indiciates which one was clicked, of the form <action>-<placement> (eg. save-top) and the name of mirrored inputs indidicate where they are located, of the form <name>-<placement> (eg. batchaction-bottom). The ViewItems class has a static method to find the active placement and rename the parameters accordingly. Some of the old code was re-introduced, though some of it was refactored (eg. what used to be get_categories, to fetch each row's selected category, has been moved to ItemTable to parallel get_selected, and is now named get_row_select_value (it's a more generic version, looking at the future when we'll update the region with the same mechanism.)
-
- Jul 24, 2015
-
-
Martin Burchell authored
Now if a user attempts to log in from a login page with a stale CSRF token, they will be redirected to the dashboard or, if they have logged out, to a fresh login page.
-
Mark Skipper authored
Add tests for what happens when `add_categories` gets called with nonsense items and category names, should fail gracefully https://trello.com/c/fWrvZDau/77-clear-out-technical-debt-from-working-on-taxonomies
-
Alice Heaton authored
-
Mark Skipper authored
-
- Jul 23, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
Rename select_action to select_item which makes more sense. Rename the checkbox itself select_item_id to allow other types of selectes in the future. Move the code to determing selected items into ItemTable since this is where the form is generated, and we know how it was build.
-
- Jul 21, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
Refactor the 'select all checkboxes' javascript into a separate file so it can be used on other tables easily. Add a test for the select all checkboxes javascript. Remove the label from the 'delete' column (which is now a 'select all' column as we may have other actions) and move it to the first column as per balsamic mockups.
-
- Jul 17, 2015
-
-
Martin Burchell authored
-
Mark Skipper authored
Add add categories method to hid/views and call from process items Has a test, but so far only for the single category case.
-
- Jul 15, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
Use django_assets to manage our assets and ensure we can minify js/css, compile less files, and merge all js/css into a single file. For this to work in production, all assets must be statically defined in his/assets.py. To ensure the correct js/css is included, views can invoke hid.assets.require_assets which will raise an exception if the asset is missing. This also has the advantage of making clear which part of the code depends on a given asset. The admin command in django_asset library's latest release does not work with the latest Django - so we use a version pulled from git. See https://github.com/miracle2k/django-assets/issues/52
-