Commit Graph

1008 Commits

Author SHA1 Message Date
David Baumgold
04ddb63dad i18n the studio nav help button 2013-07-12 16:27:54 -04:00
Frances Botsford
260b5ccef4 i18n the view live button on the studio dashboard 2013-07-12 16:25:44 -04:00
David Baumgold
a6f349dab9 Studio i18n 2013-07-12 16:25:39 -04:00
Peter Fogg
871ab87bf2 Fix saving notification CSS. 2013-07-12 09:01:03 -04:00
David Baumgold
1f7fcaed50 Separate Mako logic and JS logic 2013-07-11 09:39:32 -04:00
David Baumgold
cffa013314 Fix course team JS to handle non-200 status codes 2013-07-11 09:30:50 -04:00
Frances Botsford
6814163a45 cleanup and tweaks from feeback to PDF Textbooks FED and Sass 2013-07-09 19:16:44 -04:00
Brian Talbot
b9e7e992b5 Studio: revises subtitle of Textbooks view to be consistent with others 2013-07-09 19:16:44 -04:00
David Baumgold
fa62f48e57 Fix Jasmine test failures 2013-07-09 19:16:11 -04:00
David Baumgold
e7088d50fd Display error message when trying to upload a non-PDF file as a PDF textbook 2013-07-09 19:16:11 -04:00
David Baumgold
c5c1fd08ae i18n 2013-07-09 19:16:10 -04:00
Frances Botsford
b41d23747a PDF Textbooks: implemented "View Live" link 2013-07-09 19:16:09 -04:00
Frances Botsford
1b945dd6e8 changes to textbook upload buttons, success message and styling 2013-07-09 19:16:09 -04:00
David Baumgold
11c5c14998 Add error class to invalid fields on PDF textbooks form 2013-07-09 19:16:09 -04:00
Frances Botsford
2321a2c563 more updates to PDF textbook UI 2013-07-09 19:16:09 -04:00
David Baumgold
70a011770e Show a warning if the user tries to leave the page with unsaved textbook changes 2013-07-09 19:16:08 -04:00
David Baumgold
fedbf4585b Prevent saving when textbook is in invalid state 2013-07-09 19:16:08 -04:00
David Baumgold
9797b34c4e Pluralize CMS.URL.TEXTBOOK 2013-07-09 19:16:08 -04:00
David Baumgold
404c36b8f4 PDF textbooks: namespace JS variables for URLs 2013-07-09 19:16:07 -04:00
David Baumgold
5836286fda PDF textbooks: unified naming conventions 2013-07-09 19:16:06 -04:00
David Baumgold
c45dbca771 Fix JS dependency issues
textbook.js is apparently being loaded on every page, so I just made sure that
Backbone Associations was also loaded on every page to be sure that the dependency
was always being met.
2013-07-09 19:16:06 -04:00
Brian Talbot
414c9d38b6 studio - revises plus icon treatment throughout new-button actions 2013-07-09 19:16:06 -04:00
David Baumgold
c2ef6a53f5 PDF textbook upload: show success message for 2 seconds following successful upload 2013-07-09 19:16:06 -04:00
Frances Botsford
27f2339537 additional refinements to PDF textbooks, including making the edit buttons work again 2013-07-09 19:16:06 -04:00
David Baumgold
3b0b1b36b3 Import gettext in textbook template 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
Frances Botsford
4b2eb79de9 revamp of textbook list html, stage 1 2013-07-09 19:16:04 -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
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
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
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