diff --git a/hypha/apply/funds/workflow.py b/hypha/apply/funds/workflow.py index d9888b11af49210096b49662c33b40ad30229f25..329205a0ba61716c8a8271bc48c07bb473f2e60a 100644 --- a/hypha/apply/funds/workflow.py +++ b/hypha/apply/funds/workflow.py @@ -194,6 +194,20 @@ Proposal = Stage('Proposal', True) INITIAL_STATE = 'in_discussion' SingleStageDefinition = [ + { + 'draft': { + 'transitions': { + INITIAL_STATE: { + 'display': 'Submit', + 'permissions': {UserPermissions.APPLICANT}, + 'method': 'create_revision', + }, + }, + 'display': 'Draft', + 'stage': Request, + 'permissions': applicant_edit_permissions, + } + }, { INITIAL_STATE: { 'transitions': { @@ -293,6 +307,20 @@ SingleStageDefinition = [ ] SingleStageExternalDefinition = [ + { + 'ext_draft': { + 'transitions': { + INITIAL_STATE: { + 'display': 'Submit', + 'permissions': {UserPermissions.APPLICANT}, + 'method': 'create_revision', + }, + }, + 'display': 'Draft', + 'stage': Request, + 'permissions': applicant_edit_permissions, + } + }, { INITIAL_STATE: { 'transitions': { @@ -423,6 +451,20 @@ SingleStageExternalDefinition = [ SingleStageCommunityDefinition = [ + { + 'com_draft': { + 'transitions': { + INITIAL_STATE: { + 'display': 'Submit', + 'permissions': {UserPermissions.APPLICANT}, + 'method': 'create_revision', + }, + }, + 'display': 'Draft', + 'stage': Request, + 'permissions': applicant_edit_permissions, + } + }, { INITIAL_STATE: { 'transitions': { @@ -577,6 +619,20 @@ SingleStageCommunityDefinition = [ DoubleStageDefinition = [ + { + 'concept_draft': { + 'transitions': { + INITIAL_STATE: { + 'display': 'Submit', + 'permissions': {UserPermissions.APPLICANT}, + 'method': 'create_revision', + }, + }, + 'display': 'Draft', + 'stage': Request, + 'permissions': applicant_edit_permissions, + } + }, { INITIAL_STATE: { 'transitions': {