From 1080ee5d32741e7ed292ce38e9e450583f63a297 Mon Sep 17 00:00:00 2001 From: phillybroadbent Date: Thu, 18 Jul 2024 16:51:44 +0100 Subject: [PATCH 1/3] Removed the ability to delete funding requests, expense claims, and blog posts #763 --- lowfat/models/expense.py | 2 +- lowfat/models/fund.py | 3 ++- lowfat/templates/lowfat/blog_detail.html | 2 +- lowfat/templates/lowfat/blog_review.html | 2 +- lowfat/templates/lowfat/blogs.html | 2 +- lowfat/templates/lowfat/expense_detail.html | 2 +- lowfat/templates/lowfat/expense_review.html | 2 +- lowfat/templates/lowfat/expenses.html | 2 +- lowfat/templates/lowfat/fund_detail.html | 2 +- lowfat/templates/lowfat/fund_review.html | 2 +- lowfat/templates/lowfat/funds.html | 2 +- 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/lowfat/models/expense.py b/lowfat/models/expense.py index a4a34a55..f3ea195d 100644 --- a/lowfat/models/expense.py +++ b/lowfat/models/expense.py @@ -14,7 +14,7 @@ ('C', 'Processing'), ('A', 'Approved'), ('R', 'Rejected'), # When expense was rejected. - ('X', 'Remove'), # When the fellow decided to remove their request. + ('X', 'Removed'), # When the fellow decided to remove their request. ) GRANT_HEADING = ( diff --git a/lowfat/models/fund.py b/lowfat/models/fund.py index eaf55049..4add4c7c 100644 --- a/lowfat/models/fund.py +++ b/lowfat/models/fund.py @@ -47,7 +47,7 @@ ('R', 'Rejected'), # Fund was rejected. ('F', 'Archived'), # Approved funds with all claims and blog posts were processed. No funds are reserved. ('C', 'Cancelled'), # When the fellow decided to cancel their request. - ('X', 'Remove'), # When the fellow decided to remove their request. + ('X', 'Removed'), # When the fellow decided to remove their request. ) #: Set of statuses which constitute an approved fund @@ -64,6 +64,7 @@ 'R': "Your fund request was declided.", 'F': "We archived your fund request since all the expense claims were processed.", 'C': "You decided to cancel this request for any reason.", + 'X': "You decided to remove this request.", } GRANT_HEADING = ( diff --git a/lowfat/templates/lowfat/blog_detail.html b/lowfat/templates/lowfat/blog_detail.html index a7f9c940..7bb2481a 100644 --- a/lowfat/templates/lowfat/blog_detail.html +++ b/lowfat/templates/lowfat/blog_detail.html @@ -17,7 +17,7 @@

Blog Detail (Funding Request ID: {{ blog.fund.id }}) {% endif %} {% if user.is_staff or blog.status == "U" %} Edit - Remove + {% comment %} Remove {% endcomment %} {% endif %} {% endif %}

diff --git a/lowfat/templates/lowfat/blog_review.html b/lowfat/templates/lowfat/blog_review.html index 8dd20080..bfde7105 100644 --- a/lowfat/templates/lowfat/blog_review.html +++ b/lowfat/templates/lowfat/blog_review.html @@ -9,7 +9,7 @@

{% endif %} {% if user.is_staff %} Edit - Remove + {% comment %} Remove {% endcomment %} {% endif %}