From 2879deb2cca765b7af7da1be8a9b59f98ae0a450 Mon Sep 17 00:00:00 2001 From: gabemart Date: Fri, 7 Aug 2015 15:11:08 +0100 Subject: [PATCH] [#1571] Style disabled Update button --- akvo/rsr/static/styles-src/main.css | 8 ++++++++ akvo/rsr/static/styles-src/main.scss | 15 +++++++++++++++ akvo/templates/myrsr/my_projects.html | 4 +++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/akvo/rsr/static/styles-src/main.css b/akvo/rsr/static/styles-src/main.css index 0abfb4056f..1ceab9104a 100755 --- a/akvo/rsr/static/styles-src/main.css +++ b/akvo/rsr/static/styles-src/main.css @@ -538,6 +538,14 @@ nav.navbar-fixed-top { min-width: 170px; } } .myProjectList div.twoColumns.clearfix > a { min-width: 70px; } +.myProjectList a.addUpdate.disabled { + background-color: #AB9F9F; + color: #E9E9E9; + pointer-events: initial; + cursor: not-allowed; + border: none; } + .myProjectList a.addUpdate.disabled:hover { + text-decoration: none; } div.paginationWrap { clear: both; } diff --git a/akvo/rsr/static/styles-src/main.scss b/akvo/rsr/static/styles-src/main.scss index 733077900b..be3e65d62b 100755 --- a/akvo/rsr/static/styles-src/main.scss +++ b/akvo/rsr/static/styles-src/main.scss @@ -604,6 +604,21 @@ nav.navbar-fixed-top { min-width: 70px; } } + a { + &.addUpdate { + &.disabled { + background-color: #AB9F9F; + color: #E9E9E9; + pointer-events: initial; + cursor: not-allowed; + border: none; + + &:hover { + text-decoration: none; + } + } + } + } } div.paginationWrap { diff --git a/akvo/templates/myrsr/my_projects.html b/akvo/templates/myrsr/my_projects.html index 4d637316d3..72bf14d52f 100644 --- a/akvo/templates/myrsr/my_projects.html +++ b/akvo/templates/myrsr/my_projects.html @@ -86,7 +86,9 @@

{{ project.title }}

{% if project.is_published %} {% has_perm 'rsr.post_updates' project as can_add_update %} {% trans 'Update' %} - {% endif %} + {% else %} + {% trans 'Update' %} + {% endif %}