David Baumgold
|
3b0b1b36b3
|
Import gettext in textbook template
|
2013-07-09 19:16:05 -04:00 |
|
Frances Botsford
|
947a4ee714
|
adding some finesse to the PDF textbooks page
|
2013-07-09 19:16:05 -04:00 |
|
David Baumgold
|
0673c79f28
|
i18n
|
2013-07-09 19:16:05 -04:00 |
|
David Baumgold
|
4c1ea5aaac
|
PDF Textbook i18n
|
2013-07-09 19:16:05 -04:00 |
|
Frances Botsford
|
e059060cf3
|
updated textbook page html and sass, and added basic styling for error on wrong file type
|
2013-07-09 19:16:05 -04:00 |
|
David Baumgold
|
e8b79dc696
|
PDF textbooks only accept PDF files
All other file types will trigger a validation error
|
2013-07-09 19:16:05 -04:00 |
|
David Baumgold
|
4c304f1d18
|
Add unit test for failure case
|
2013-07-09 19:16:05 -04:00 |
|
David Baumgold
|
05cb13b171
|
Adding and fixing tests
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
77db1f8a5a
|
Fixups and test fixes post-rebase
|
2013-07-09 19:16:04 -04:00 |
|
Frances Botsford
|
4b2eb79de9
|
revamp of textbook list html, stage 1
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
8934cf35ba
|
Add pdf_textbooks tab when textbooks are created
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
c59d515cdf
|
Added unit tests for file upload widget
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
7bb86b6cd2
|
Fix showSpies and editSpies resetting in tests
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
27398a5c6f
|
Added tests for CMS.Views.ListTextbooks
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
8ba21ca34a
|
More backbone view tests
|
2013-07-09 19:16:04 -04:00 |
|
David Baumgold
|
3f0efe70cf
|
Added jasmine-stealth library, v0.0.12
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
8227a8c3db
|
Started adding tests for textbook backbone views
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
609c299f48
|
Finished backbone model tests for textbooks
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
207453a37c
|
Further basic tests for Backbone models
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
001cd5d004
|
First few unit tests
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
40098f6593
|
renamed textbooks.js to textbook.js
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
9af447de97
|
Moved Backbone models/views out to separate files for pdf textbooks project
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
0d415d814b
|
Remove unused imports
|
2013-07-09 19:16:03 -04:00 |
|
David Baumgold
|
14be4310c3
|
Add confirmation step for deleting a textbook
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
9de2dc51ec
|
Can't add new textbook if the currently-editing textbook is empty
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
c0b00f7dd5
|
persist textbook deletions to the server
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
486bacede4
|
Clean up HTML structure in textbooks page
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
4509dc03b0
|
Pull and save pdf textbook information to/from the correct modulestore
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
64adb62d48
|
make sure to save textbook name when it changes
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
ce26d52420
|
set order attribute on chapters from server
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
f6ee5cf680
|
rename view.save() to view.setValues()
to make it clearer that it doesn't persist values to the server
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
6a3360cefa
|
Full front-end/back-end connection via Backbone.sync. No data validation whatsoever.
|
2013-07-09 19:16:02 -04:00 |
|
David Baumgold
|
22a7735ae2
|
Added parse functions to handle backend representation of textbooks
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
9e5df7e28a
|
Integrated PDF textbooks with Backbone Associations
|
2013-07-09 19:16:01 -04:00 |
|
Frances Botsford
|
14776df874
|
moved textbooks page to two columns
|
2013-07-09 19:16:01 -04:00 |
|
Frances Botsford
|
9b3b7f2deb
|
updated styling for new textbook form structure
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
00b885deaa
|
Update pdf textbooks backend to respond to AJAX requests with JSON
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
e607bc70ad
|
Pull assets into Mako template for PDF textbooks
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
19d65f81a4
|
Toggle show/hide chapters in textbook show view
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
22e325af86
|
Show chapter asset path properly in textbook show view
|
2013-07-09 19:16:01 -04:00 |
|
David Baumgold
|
7f2b82c49b
|
Display edit view inline on textbooks page
|
2013-07-09 19:16:00 -04:00 |
|
David Baumgold
|
6bad53512f
|
Save chapter info when a new chapter is added to a textbook
|
2013-07-09 19:16:00 -04:00 |
|
David Baumgold
|
ee1158f89e
|
Set up PDF textbooks list view in Backbone
|
2013-07-09 19:16:00 -04:00 |
|
Frances Botsford
|
574c8ad48d
|
more form styling for textbook upload and first rough pass at file uploader
|
2013-07-09 19:16:00 -04:00 |
|
David Baumgold
|
aa1fbbbc99
|
Remove page blur on successful upload
|
2013-07-09 19:16:00 -04:00 |
|
David Baumgold
|
f198b7e297
|
Clean up Backbone view logic
|
2013-07-09 19:16:00 -04:00 |
|
Frances Botsford
|
109ccf6c5d
|
initial html, sass, and js for textbook uploader; added alternate upload CTA in content area
|
2013-07-09 19:16:00 -04:00 |
|
Chris Dodge
|
cd7a448384
|
some tweeks to the negative testing
|
2013-07-09 19:16:00 -04:00 |
|
Chris Dodge
|
5e218389c9
|
add ability to do failure testing. If a post passes in a '?fail_at=<num_bytes>' then the middleware will throw an exception
|
2013-07-09 19:16:00 -04:00 |
|
David Baumgold
|
2832233eb9
|
Better handling for chapter upload error
|
2013-07-09 19:15:59 -04:00 |
|