Upload converted files (sys admin permission only) and related UI changes
Due to feature request in #493 (closed): this issues replaces #90 (closed) and changes are required to chapter-processed UI changes to match what's already done for the wholebook.
Dev tasks:
-
In chapter-processed books instead of having one section "Book component", replace this with sections "Source" and "converted" as already developed for wholebook UI. -
For all workflows add "upload" button to the converted section. (Note uploading a file creates a new file version. @John.kopanas has already done dev to support this). -
Permissions: Only System admins see the "Upload" button for the converted section. -
Remove eye icon for "Reload preview" action. Instead add a button "Reload preview" to the right of the "Submit" (use same style as submit). -
Remove icon for replace converted XML -
Move "Download" button to right of bottom bar (this matches design on the Dashboard). -
"Download" should only be active when one or more files are selected. -
"Reload preview" button should only be active when status = "Errors" -
Upload from converted files is blocked when status = Converting or Loading Preview -
For chapter-processed books, on upload validate that the converted filename matches the source file name
Design references
This UI for chapter-processed books
Changes to UI currently used for wholebooks. (Do not implement any tagging functionality for chapter-procsssed books an any workflow at this stage.)
Mockup of button changes