Formatting
This commit is contained in:
parent
bc8bd719b6
commit
f8cee60baa
@ -4,6 +4,7 @@ from . import requests_bp
|
|||||||
from atst.domain.requests import Requests
|
from atst.domain.requests import Requests
|
||||||
from atst.forms.financial import FinancialForm
|
from atst.forms.financial import FinancialForm
|
||||||
|
|
||||||
|
|
||||||
@requests_bp.route("/requests/verify/<string:request_id>", methods=["GET"])
|
@requests_bp.route("/requests/verify/<string:request_id>", methods=["GET"])
|
||||||
def financial_verification(request_id=None):
|
def financial_verification(request_id=None):
|
||||||
request = Requests.get(request_id)
|
request = Requests.get(request_id)
|
||||||
@ -30,7 +31,9 @@ def update_financial_verification(request_id):
|
|||||||
if valid:
|
if valid:
|
||||||
redirect(url_for("requests.financial_verification_submitted"))
|
redirect(url_for("requests.financial_verification_submitted"))
|
||||||
else:
|
else:
|
||||||
return render_template("requests/financial_verification.html", **rerender_args)
|
return render_template(
|
||||||
|
"requests/financial_verification.html", **rerender_args
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return render_template("requests/financial_verification.html", **rerender_args)
|
return render_template("requests/financial_verification.html", **rerender_args)
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ def requests_form_new(screen):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@requests_bp.route("/requests/new/<int:screen>", methods=["GET"], defaults={"request_id": None})
|
@requests_bp.route(
|
||||||
|
"/requests/new/<int:screen>", methods=["GET"], defaults={"request_id": None}
|
||||||
|
)
|
||||||
@requests_bp.route("/requests/new/<int:screen>/<string:request_id>", methods=["GET"])
|
@requests_bp.route("/requests/new/<int:screen>/<string:request_id>", methods=["GET"])
|
||||||
def requests_form_update(screen=1, request_id=None):
|
def requests_form_update(screen=1, request_id=None):
|
||||||
request = Requests.get(request_id) if request_id is not None else None
|
request = Requests.get(request_id) if request_id is not None else None
|
||||||
@ -39,7 +41,9 @@ def requests_form_update(screen=1, request_id=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@requests_bp.route("/requests/new/<int:screen>", methods=["POST"], defaults={"request_id": None})
|
@requests_bp.route(
|
||||||
|
"/requests/new/<int:screen>", methods=["POST"], defaults={"request_id": None}
|
||||||
|
)
|
||||||
@requests_bp.route("/requests/new/<int:screen>/<string:request_id>", methods=["POST"])
|
@requests_bp.route("/requests/new/<int:screen>/<string:request_id>", methods=["POST"])
|
||||||
def requests_update(screen=1, request_id=None):
|
def requests_update(screen=1, request_id=None):
|
||||||
screen = int(screen)
|
screen = int(screen)
|
||||||
@ -84,7 +88,6 @@ def requests_update(screen=1, request_id=None):
|
|||||||
return render_template("requests/screen-%d.html" % int(screen), **rerender_args)
|
return render_template("requests/screen-%d.html" % int(screen), **rerender_args)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@requests_bp.route("/requests/submit/<string:request_id>", methods=["POST"])
|
@requests_bp.route("/requests/submit/<string:request_id>", methods=["POST"])
|
||||||
def requests_submit(request_id=None):
|
def requests_submit(request_id=None):
|
||||||
request = Requests.get(request_id)
|
request = Requests.get(request_id)
|
||||||
|
@ -14,18 +14,25 @@ mock_workspaces = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/workspaces")
|
@bp.route("/workspaces")
|
||||||
def workspaces():
|
def workspaces():
|
||||||
return render_template("workspaces.html", page=5, workspaces=mock_workspaces)
|
return render_template("workspaces.html", page=5, workspaces=mock_workspaces)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/workspaces/<workspace_id>/projects")
|
@bp.route("/workspaces/<workspace_id>/projects")
|
||||||
def workspace_projects(workspace_id):
|
def workspace_projects(workspace_id):
|
||||||
projects_repo = Projects()
|
projects_repo = Projects()
|
||||||
projects = projects_repo.get_many(workspace_id)
|
projects = projects_repo.get_many(workspace_id)
|
||||||
return render_template("workspace_projects.html", workspace_id=workspace_id, projects=projects)
|
return render_template(
|
||||||
|
"workspace_projects.html", workspace_id=workspace_id, projects=projects
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/workspaces/<workspace_id>/members")
|
@bp.route("/workspaces/<workspace_id>/members")
|
||||||
def workspace_members(workspace_id):
|
def workspace_members(workspace_id):
|
||||||
members_repo = Members()
|
members_repo = Members()
|
||||||
members = members_repo.get_many(workspace_id)
|
members = members_repo.get_many(workspace_id)
|
||||||
return render_template("workspace_members.html", workspace_id=workspace_id, members=members)
|
return render_template(
|
||||||
|
"workspace_members.html", workspace_id=workspace_id, members=members
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user