From a293dc013d1d10569935b7b389a4d2a7abebcbd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 9 May 2020 00:21:12 +0200 Subject: [PATCH] Make management layout similar to admin layout The
tag was including the navigation, and now we use the same flex layout, making it more accessible for mobile phone users. I'm not sure the
tag should actually include the account info and the flash message. I'm keeping it like this in order to keep the layout the way it was. --- app/assets/stylesheets/admin.scss | 2 +- app/views/layouts/management.html.erb | 19 +++--- app/views/management/_account_info.html.erb | 65 ++++++++++----------- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index d3709a73f..8dc11daae 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -648,7 +648,7 @@ code { border-radius: rem-calc(3); font-size: rem-calc(16); font-weight: normal; - margin: $line-height; + margin-bottom: $line-height; padding: $line-height / 2; strong { diff --git a/app/views/layouts/management.html.erb b/app/views/layouts/management.html.erb index b16d1778e..449b20a76 100644 --- a/app/views/layouts/management.html.erb +++ b/app/views/layouts/management.html.erb @@ -45,18 +45,21 @@ -
-
+ + - <%= render "management/account_info" %> +
+ <%= label_tag :show_menu, t("admin.menu.admin"), + "aria-hidden": true, class: "button hollow expanded" %> -
+ <%= render "management/account_info" %> <%= render "layouts/flash" %> <%= yield %> -
-
- +
+ diff --git a/app/views/management/_account_info.html.erb b/app/views/management/_account_info.html.erb index 28f141ba9..cb262a9ef 100644 --- a/app/views/management/_account_info.html.erb +++ b/app/views/management/_account_info.html.erb @@ -1,43 +1,40 @@ <% if managed_user.document_number.present? %> -
- + <% end %> + + <% if managed_user.email.present? %> +

+ <%= t("management.account_info.email_label") %> + <%= managed_user.email %> +

+ <% end %> + +

+ <%= t("management.account_info.document_type_label") %> + <%= humanize_document_type(managed_user.document_type) %> +

+ +

+ <%= t("management.account_info.document_number_label") %> + <%= managed_user.document_number %> +

<% end %>