From 0d883cb675b5f572e204165ec20726ae15db66a1 Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Wed, 30 Aug 2017 16:06:45 +0100 Subject: [PATCH] Improve go to form buttons --- lowfat/templates/lowfat/blogs.html | 16 ++++++++-------- lowfat/templates/lowfat/expenses.html | 12 ++++++++---- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/lowfat/templates/lowfat/blogs.html b/lowfat/templates/lowfat/blogs.html index f05ed306..71f02682 100644 --- a/lowfat/templates/lowfat/blogs.html +++ b/lowfat/templates/lowfat/blogs.html @@ -1,6 +1,6 @@

Blog Posts - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %} {% if claimant %} Submit a blog post {% elif fund %} @@ -29,7 +29,7 @@

- {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %} @@ -45,7 +45,7 @@

Funding Request {% endif %} - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %}

@@ -53,7 +53,7 @@

- {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %} @@ -72,7 +72,7 @@

{% endif %} {% endif %} > - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %}

@@ -103,7 +103,7 @@

{% endif %} {% endif %} - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %}

@@ -115,7 +115,7 @@

Unpublished {% endif %} - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %}

- {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %} @@ -141,7 +145,7 @@

Submitted date Status Publish date Actions {{ blog.added }} {{ blog.get_status_display }} {% if user.is_staff %} @@ -137,7 +137,7 @@

Expenses - {% if user.is_staff or claimant and user == claimant.user %} + {% if user.is_staff or claimant and user == claimant.user or fund.claimant and user == fund.claimant.user %} {% if fund %} - {% if fund.status not in "RF" %} + {% if fund.status not in "RFCX" %} Submit expense claim {% else %} Submit expense claim {% endif %} {% else %} + {% if user.is_staff and claimant %} + Submit expense claim + {% else %} Submit expense claim {% endif %} {% endif %} + {% endif %} {% if user.is_staff %} Amount authorized for payment Actions