-
Notifications
You must be signed in to change notification settings - Fork 0
PARAF-420: Added action RecreateSession #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chris-adam
wants to merge
7
commits into
main
Choose a base branch
from
PARAF-420/recreate_session
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+633
−42
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
16d0d9e
Added action RecreateSession
chris-adam 746e353
Set RecreateSession action available for all sessions but draft, retu…
chris-adam c805977
Delete old session before recreating
chris-adam 5d91dc8
Added form to select what files to include in recreated session
chris-adam a46419f
Kepp unselected files in old session
chris-adam c9b9fee
Simplify code
chris-adam 3671159
Overwriting new session title made easy
chris-adam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <ol metal:define-macro="files_list" i18n:domain="imio.esign" | ||
| tal:condition="files" | ||
| tal:define="with_checkbox with_checkbox|python:False; | ||
| with_info_link with_info_link|python:True"> | ||
| <tal:loop repeat="file files"> | ||
| <li tal:define="oddrow repeat/file/odd; | ||
| classOddEven python: oddrow and 'even' or 'odd';" | ||
| tal:attributes="class classOddEven"> | ||
| <input tal:condition="with_checkbox" type="checkbox" class="recreate-file-cb" | ||
| checked="checked" tal:attributes="value python:file[1].UID()" /> | ||
| <a tal:condition="python: with_info_link and context.unrestrictedTraverse('@@session-annotation-info').available()" | ||
| tal:attributes="href python:file[0].absolute_url() + '/@@session-annotation-info?context_uid=' + file[0].UID()" | ||
| target="_blank" | ||
| class="link-overlay-info"> | ||
| <span class="fa fa-info-circle" title="Annotation info"></span> | ||
| </a> | ||
| <tal:link tal:replace="structure python:view.get_file_link(file[0], file[1])">link</tal:link> | ||
| </li> | ||
| </tal:loop> | ||
| </ol> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" | ||
| xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
| xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
| xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
| i18n:domain="imio.esign"> | ||
| <body> | ||
| <div id="content"> | ||
| <div id="content-core" class="recreate-session-form" | ||
| tal:define="reason view/refused_reason"> | ||
|
|
||
| <h1 class="documentFirstHeading" i18n:translate="">Recreate session</h1> | ||
|
|
||
| <dl class="portalMessage warning" tal:condition="reason"> | ||
| <dt i18n:translate="">Refusal reason</dt> | ||
| <dd tal:content="reason">the refusal reason</dd> | ||
| </dl> | ||
|
|
||
| <form tal:define="files view/files; | ||
| with_checkbox python:True; | ||
| with_info_link python:False; | ||
| template python: context.unrestrictedTraverse('@@esign-files-list-macro').index"> | ||
| <fieldset> | ||
| <legend i18n:translate="">Select the files to include in the new session</legend> | ||
| <metal:list use-macro="python: template.macros['files_list']" /> | ||
| </fieldset> | ||
|
|
||
| <div class="formControls"> | ||
| <input type="button" class="context" | ||
| i18n:attributes="value" value="Recreate session" | ||
| tal:attributes="onclick view/recreate_onclick" /> | ||
| <input type="button" class="standalone" name="form.buttons.cancel" | ||
| i18n:attributes="value" value="Cancel" /> | ||
| </div> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,8 @@ | ||
| <div tal:define="files view/files" i18n:domain="imio.esign"> | ||
| <div tal:define="files view/files; | ||
| template python: context.unrestrictedTraverse('@@esign-files-list-macro').index" | ||
| i18n:domain="imio.esign"> | ||
| <tal:none tal:condition="python:not files"> | ||
| <span i18n:translate="">No files</span> | ||
| </tal:none> | ||
| <ol tal:condition="files"> | ||
| <tal:loop repeat="file files"> | ||
| <li tal:define="oddrow repeat/file/odd; | ||
| classOddEven python: oddrow and 'even' or 'odd';" | ||
| tal:attributes="class classOddEven"> | ||
| <a tal:condition="python: context.unrestrictedTraverse('@@session-annotation-info').available()" | ||
| tal:attributes="href python:file[0].absolute_url() + '/@@session-annotation-info?context_uid=' + file[0].UID()" | ||
| target="_blank" | ||
| class="link-overlay-info"> | ||
| <span class="fa fa-info-circle" title="Annotation info"></span> | ||
| </a> | ||
| <tal:link tal:replace="structure python:view.get_file_link(file[0], file[1])">link</tal:link> | ||
| </li> | ||
| </tal:loop> | ||
| </ol> | ||
| <metal:list use-macro="python: template.macros['files_list']" /> | ||
| </div> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.