diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index 59e3b69..4f46586 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -20,6 +20,8 @@ .dropbtn{ margin-right: unset; } + + .header_logo, .header_btn_mover{ margin-right: 20px; } @@ -123,6 +125,9 @@ .header_buttons{ display: none; } + .confirm_profile_btn{ + width: 95%; + } .not_found_routes>img{ display: none; diff --git a/static/css/styles.css b/static/css/styles.css index b59593b..a386436 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -537,6 +537,15 @@ header .header-first { font-size: 16px; border: none; } +#changes_saved_txt{ + display: none; +} +#changes_saved_txt.show{ + display: block; +} +#save_changes_txt.hide{ + display: none; +} .dropdown { position: relative; diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 69ff70c..4312b82 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -405,6 +405,11 @@ function change_profile_confirm (el){ document.querySelector(".info_profile").innerHTML = data.html; + document.getElementById('save_changes_txt').classList.add('hide') + document.getElementById('changes_saved_txt').classList.add('show') + + + }, error: function (data){ diff --git a/templates/blocks/profile/b_profile.html b/templates/blocks/profile/b_profile.html index 9ae5e68..f34ff6f 100644 --- a/templates/blocks/profile/b_profile.html +++ b/templates/blocks/profile/b_profile.html @@ -35,7 +35,7 @@ {% if profileForm.errors.lastname %}
{{ profileForm.errors.lastname }}
{% endif %}
- + {% if profileForm.errors.tel %}
{{ profileForm.errors.tel|safe }}
{% endif %}
@@ -65,7 +65,16 @@ - + \ No newline at end of file