From 1251f9e9f5aaf080733d525e2ebab8fa77d52064 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Nov 2015 12:50:26 +0000 Subject: [PATCH] Adds a Save button at the end of the account form for mobile devices (#19097). git-svn-id: http://svn.redmine.org/redmine/trunk@14852 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/my/account.html.erb | 3 ++- public/stylesheets/application.css | 2 ++ public/stylesheets/responsive.css | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 2d7aa9a51..ca8a1441e 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -34,7 +34,7 @@ <%= call_hook(:view_my_account, :user => @user, :form => f) %> -<%= submit_tag l(:button_save) %> +

<%= submit_tag l(:button_save) %>

@@ -49,6 +49,7 @@ <%= call_hook(:view_my_account_preferences, :user => @user, :form => f) %> +

<%= submit_tag l(:button_save) %>

<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index f06244f1b..6bcca0a00 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -104,6 +104,8 @@ input#openid_url { background: url(../images/openid-bg.gif) no-repeat; backgroun .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.mobile-show {display: none;} + /***** Links *****/ a, a:link, a:visited{ color: #169; text-decoration: none; } a:hover, a:active{ color: #c61a1a; text-decoration: underline;} diff --git a/public/stylesheets/responsive.css b/public/stylesheets/responsive.css index 6e4c2451a..d51f439ad 100644 --- a/public/stylesheets/responsive.css +++ b/public/stylesheets/responsive.css @@ -649,6 +649,9 @@ E) UX ELEMENTS \*----------------------------------------*/ + .mobile-hide {display:none;} + .mobile-show {display:initial;} + /* Contextual Buttons */ #content>.contextual -- 2.39.5