diff --git a/atst/routes/requests/approval.py b/atst/routes/requests/approval.py index a0f0f5e8..28470b53 100644 --- a/atst/routes/requests/approval.py +++ b/atst/routes/requests/approval.py @@ -12,7 +12,6 @@ from . import requests_bp from atst.domain.requests import Requests from atst.domain.exceptions import NotFoundError from atst.forms.ccpo_review import CCPOReviewForm -from atst.forms.internal_comment import InternalCommentForm def map_ccpo_authorizing(user): @@ -26,8 +25,6 @@ def render_approval(request, form=None): if pending_final_approval and request.task_order: data["task_order"] = request.task_order.to_dictionary() - internal_comment_form = InternalCommentForm(text=request.internal_comments_text) - if not form: mo_data = map_ccpo_authorizing(g.current_user) form = CCPOReviewForm(data=mo_data) @@ -41,7 +38,6 @@ def render_approval(request, form=None): pending_review=pending_review, financial_review=pending_final_approval, f=form or CCPOReviewForm(), - internal_comment_form=internal_comment_form, ) @@ -84,15 +80,3 @@ def task_order_pdf_download(request_id): else: raise NotFoundError("task_order pdf") - - -@requests_bp.route("/requests/internal_comments/", methods=["POST"]) -def create_internal_comment(request_id): - form = InternalCommentForm(http_request.form) - if form.validate(): - request = Requests.get(g.current_user, request_id) - Requests.update_internal_comments(g.current_user, request, form.data["text"]) - - return redirect( - url_for("requests.approval", request_id=request_id, _anchor="ccpo-notes") - ) diff --git a/templates/requests/approval.html b/templates/requests/approval.html index d93a0f1d..5fff0b8a 100644 --- a/templates/requests/approval.html +++ b/templates/requests/approval.html @@ -135,24 +135,6 @@ {% endif %} - -
-
-
-
- - {{ internal_comment_form.csrf_token }} - {{ TextInput(internal_comment_form.text, paragraph=True, noMaxWidth=True) }} - -
-
- -
- -
-
-
-