- Aug 07, 2015
-
-
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.
-
- 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
Make the default empty batch command a line of dashes under the 'Actions' header. We can't really do better than that without js.
-
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.
-
- Jul 23, 2015
-
-
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
-
-
Jay Alvarez authored
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
Replace the save changes button with a drop down list of actions and an update button. Actions include deleting and setting a question type on all selected items.
-
Alice Heaton authored
-
- Jul 20, 2015
-
-
Alice Heaton authored
-
Alice Heaton authored
-
Alice Heaton authored
Fix previous merge: use the version of get_category_options that came from the taxonomies branch, not the staging branch.
-
Mark Skipper authored
Still hard coded https://trello.com/c/GSjVYcNz/76-change-hardcoded-drop-down-elements-on-staging
-
Mark Skipper authored
-
- Jul 17, 2015
-
-
Alice Heaton authored
Refactor the code to handle file input type (use a custom button, and automatically submit upon file selection) so that it can be used on multiple pages. Add an upload button on the view/edit page.
-
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 08, 2015
-
-
Mark Skipper authored
ItemTransport clas --> transport.items module
-
- Jul 07, 2015
-
-
Mark Skipper authored
Replace with ItemTransport object, which needs to be instantiated. I think it can be reused between calls to its methods so there's no need to create new ones all over the place, but that's what I have done so far. I'm a bit uncertain about module level variables, and not everything is contained in a class.
-
- Jul 03, 2015
-
-
Marko Samastur authored
-
- Jul 02, 2015
-
-
Marko Samastur authored
-
Marko Samastur authored
-
- Jul 01, 2015
-
-
Martin Burchell authored
-
Martin Burchell authored
-
- Jun 30, 2015
-
-
Marko Samastur authored
-
- Jun 29, 2015
-
-
Marko Samastur authored
-
- Jun 26, 2015
-
-
Marko Samastur authored
-
- Jun 22, 2015
-
-
Mark Skipper authored
-
- Jun 18, 2015
-
-
Marko Samastur authored
-
Marko Samastur authored
-
- Jun 16, 2015
-
-
Marko Samastur authored
-