Skip to content

Commit

Permalink
Removed the ability to delete funding requests, expense claims, and b…
Browse files Browse the repository at this point in the history
…log posts #763
  • Loading branch information
phillybroadbent committed Jul 18, 2024
1 parent c537a44 commit 1080ee5
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lowfat/models/expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
3 changes: 2 additions & 1 deletion lowfat/models/fund.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = (
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/blog_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1>Blog Detail (Funding Request ID: {{ blog.fund.id }})
{% endif %}
{% if user.is_staff or blog.status == "U" %}
<a title="Edit" class="btn btn-outline-dark" href="{% url 'blog_edit' blog.id %}" role="button"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'blog_remove' blog.id %}?next={% url 'dashboard' %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'blog_remove' blog.id %}?next={% url 'dashboard' %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
{% endif %}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/blog_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>
{% endif %}
{% if user.is_staff %}
<a title="Edit" class="btn btn-outline-dark" href="{% url 'blog_edit' blog.id %}" role="button"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'blog_remove' blog.id %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'blog_remove' blog.id %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
</h1>
<iframe class="blog-review-html" src="{{ blog.draft_url }}">
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/blogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h2>
{% endif %}
{% if user.is_staff or blog.status == "U" %}
<a title="Edit" href="{% url 'blog_edit' blog.id %}"><span class="fa-solid fa-edit" aria-hidden="true"></span></a>
<a title="Remove" href="{% url 'blog_remove' blog.id %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a>
{% comment %} <a title="Remove" href="{% url 'blog_remove' blog.id %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a> {% endcomment %}
{% endif %}
</td>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/expense_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>Expense Detail (Funding Request ID: {{ expense.fund.id }})
{% endif %}
{% if user.is_staff or expense.status in "SC" %}
<a title="Edit" class="btn btn-outline-dark" href="{% url 'expense_edit_relative' expense.fund.id expense.relative_number %}"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}?next={% url 'dashboard' %}"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}?next={% url 'dashboard' %}"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
{% endif %}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/expense_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>
{% if user.is_staff %}
<a title="View" class="btn btn-outline-dark" href="{% url 'expense_detail_relative' expense.fund.id expense.relative_number %}" role="button"><span class="fa-solid fa-eye" aria-hidden="true"></span> View</a>
<a title="Edit" class="btn btn-outline-dark" href="{% url 'expense_edit_relative' expense.fund.id expense.relative_number %}" role="button"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
</h1>

Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/expenses.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h2>
{% endif %}
{% if user.is_staff or expense.status in "SC" %}
<a title="Edit" href="{% url 'expense_edit_relative' expense.fund.id expense.relative_number %}"><span class="fa-solid fa-edit" aria-hidden="true"></span></a>
<a title="Remove" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a>
{% comment %} <a title="Remove" href="{% url 'expense_remove_relative' expense.fund.id expense.relative_number %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a> {% endcomment %}
</td>
{% endif %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/fund_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Funding request #{{ fund.id }}
{% endif %}
{% if user.is_staff or fund.status in "UP" %}
<a title="Edit" class="btn btn-outline-dark" href="{% url 'fund_edit' fund.id %}"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'fund_remove' fund.id %}?next={% url 'dashboard' %}"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'fund_remove' fund.id %}?next={% url 'dashboard' %}"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
{% endif %}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/fund_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>
{% if user.is_staff %}
<a title="View" class="btn btn-outline-dark" href="{% url 'fund_detail' fund.id %}" role="button"><span class="fa-solid fa-eye" aria-hidden="true"></span> View</a>
<a title="Edit" class="btn btn-outline-dark" href="{% url 'fund_edit' fund.id %}" role="button"><span class="fa-solid fa-edit" aria-hidden="true"></span> Edit</a>
<a title="Remove" class="btn btn-outline-dark" href="{% url 'fund_remove' fund.id %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a>
{% comment %} <a title="Remove" class="btn btn-outline-dark" href="{% url 'fund_remove' fund.id %}" role="button"><span class="fa-solid fa-remove" aria-hidden="true"></span> Remove</a> {% endcomment %}
{% endif %}
</h1>
{% if fund.access_token %}
Expand Down
2 changes: 1 addition & 1 deletion lowfat/templates/lowfat/funds.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
{% endif %}
{% if user.is_staff or fund.status in "UP" %}
<a title="Edit" href="{% url 'fund_edit' fund.id %}"><span class="fa-solid fa-edit" aria-hidden="true"></span></a>
<a title="Remove" href="{% url 'fund_remove' fund.id %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a>
{% comment %} <a title="Remove" href="{% url 'fund_remove' fund.id %}?next={{ request.path }}"><span class="fa-solid fa-remove" aria-hidden="true"></span></a> {% endcomment %}
{% endif %}
</td>
{% endif %}
Expand Down

0 comments on commit 1080ee5

Please sign in to comment.