Skip to content

Commit

Permalink
Merge branch 'pkv/enterprise-user-visit-review' into pkv/staging-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Sep 2, 2024
2 parents 625054d + 242b4e1 commit 01671bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commcare_connect/opportunity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ def user_visit_review(request, org_slug, opp_id):
if request.POST and is_program_manager:
review_status = request.POST.get("review_status")
updated_reviews = request.POST.getlist("pk")
if review_status in ["approved", "rejected"]:
if review_status in ["agree", "disagree"]:
UserVisit.objects.filter(pk__in=updated_reviews).update(review_status=review_status)

return render(
Expand Down
4 changes: 2 additions & 2 deletions commcare_connect/templates/opportunity/user_visit_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ <h2 class="mb-2">User Visit Review</h2>
<div class="mt-2 input-group w-25">
<select class="form-select" name="review_status" required>
<option value="">Select</option>
<option value="approved">Approved</option>
<option value="rejected">Rejected</option>
<option value="agree">Agree</option>
<option value="disagree">Disagree</option>
</select>
<button type="submit" class="btn btn-primary">Save</button>
</div>
Expand Down

0 comments on commit 01671bf

Please sign in to comment.