Redirect to new project form after FV approval
This commit is contained in:
parent
983082b59a
commit
da5dbc5bdd
@ -45,7 +45,7 @@ def update_financial_verification(request_id):
|
|||||||
new_workspace = Requests.approve_and_create_workspace(updated_request)
|
new_workspace = Requests.approve_and_create_workspace(updated_request)
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
"workspaces.workspace_projects",
|
"workspaces.new_project",
|
||||||
workspace_id=new_workspace.id,
|
workspace_id=new_workspace.id,
|
||||||
newWorkspace=True,
|
newWorkspace=True,
|
||||||
)
|
)
|
||||||
|
@ -9,6 +9,14 @@
|
|||||||
{% block workspace_content %}
|
{% block workspace_content %}
|
||||||
|
|
||||||
{% set modalName = "newProjectConfirmation" %}
|
{% set modalName = "newProjectConfirmation" %}
|
||||||
|
{% if request.args.get("newWorkspace") %}
|
||||||
|
{{ Alert('Workspace created!',
|
||||||
|
message="\
|
||||||
|
<p>You are now ready to create projects and environments within the JEDI Cloud.</p>
|
||||||
|
",
|
||||||
|
level='success'
|
||||||
|
) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<new-project inline-template v-bind:initial-data='{{ form.data|tojson }}'>
|
<new-project inline-template v-bind:initial-data='{{ form.data|tojson }}'>
|
||||||
<form method="POST" action="{{ url_for('workspaces.update_project', workspace_id=workspace.id) }}" >
|
<form method="POST" action="{{ url_for('workspaces.update_project', workspace_id=workspace.id) }}" >
|
||||||
|
@ -5,15 +5,6 @@
|
|||||||
|
|
||||||
{% block workspace_content %}
|
{% block workspace_content %}
|
||||||
|
|
||||||
{% if request.args.get("newWorkspace") %}
|
|
||||||
{{ Alert('Workspace created!',
|
|
||||||
message="\
|
|
||||||
<p>You are now ready to create projects and environments within the JEDI Cloud.</p>
|
|
||||||
",
|
|
||||||
level='success'
|
|
||||||
) }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% for project in workspace.projects %}
|
{% for project in workspace.projects %}
|
||||||
<div class='block-list project-list-item'>
|
<div class='block-list project-list-item'>
|
||||||
<header class='block-list__header'>
|
<header class='block-list__header'>
|
||||||
|
@ -137,4 +137,4 @@ class TestPENumberInForm:
|
|||||||
response = self.submit_data(client, data, extended=True)
|
response = self.submit_data(client, data, extended=True)
|
||||||
|
|
||||||
assert response.status_code == 302
|
assert response.status_code == 302
|
||||||
assert "/workspaces" in response.headers.get("Location")
|
assert "/projects/new" in response.headers.get("Location")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user