live mockup here: https://s.codepen.io/enalean/debug/XPWvLg
Modal should enable user to create a new version of an existing document
- embedded: Version name | description | content (ckeditor)
- file: name | description | File upload
- link: name | description | url
- wiki: page name
empty document type will be handled in a dedicated story.
If the document/folder has an approval table, then the user has the following choices:
- create an empty approval table
- copy table
- reset table
If the document is locked, then an option is displayed to keep the lock on the new version.
We map to the master behaviour, actually it's NOT possible to update a wiki page who has an approval table, so the modal for wiki won't offert the possibility to users to choose an approval table action when they update a wiki page. If page has an approval table a dedicated message will be displayed