From 88ac51d522473133c39425b58c3dd9f6896a821f Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Tue, 27 Jun 2017 20:21:54 +0200 Subject: [PATCH 01/12] Cleaned up personal settings page --- settings/css/settings.css | 33 +++++++- settings/templates/personal.php | 146 +++++++++++++++++--------------- 2 files changed, 106 insertions(+), 73 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 0d68a3b622d..5f4fa12f2db 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -2,20 +2,47 @@ This file is licensed under the Affero General Public License version 3 or later. See the COPYING-README file. */ -select#languageinput, select#timezone { +select#timezone { width: 15em; } +select#languageinput { + width: 17em; +} + input#openid, input#webdav { width: 20em; } +input#pass1, input#pass2, input#passwordbutton { + width: 17em; +} + /* PERSONAL */ .clear { clear: both; } +.personal-settings-password-box { + margin-top: 20px; + margin-bottom: 136px; +} + +.icon-federation-menu { + width: 44px; + margin: -6px; + float: right; +} + +.icon-avartar-federation-menu { + position: absolute; + width: 44px; + top: -6px; + left: 129px; + z-index: 10; +} + /* icons for sidebar */ .nav-icon-personal-settings { background-image: url('../img/personal.svg?v=1'); @@ -213,7 +240,7 @@ input#openid, input#webdav { .federationScopeMenu { top: 44px; - margin: -5px 0px 0; + margin: -5px -5px 0; } .federationScopeMenu.bubble::after { @@ -235,7 +262,7 @@ input#openid, input#webdav { #lostpassword, #groups { display: inline-block; - margin-bottom: 0; + margin-bottom: 10px; padding-bottom: 0; padding-right: 0; min-width: 60%; diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 7a7d87e930d..a456183d380 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -44,7 +44,7 @@

- +

@@ -78,7 +78,7 @@

- +

@@ -94,7 +94,7 @@

- +

- +

value="" @@ -148,7 +148,7 @@

- +

placeholder="t('Your postal address')); ?>" @@ -166,7 +166,7 @@

- +

@@ -211,7 +211,7 @@

- +

@@ -251,75 +251,81 @@
+
+
+

t('Groups')); ?>

+

t('You are member of the following groups:')); ?>

+

+ +

+
+
+
+ +
+

+ +

+ +
+ + t('Help translate'));?> + +
+ +
+
+ +
+

t('Password'));?>

+ +
+ + +
+
+ + + +
+
+ +
+
+ +
-
-

t('Groups')); ?>

-

t('You are member of the following groups:')); ?>

-

- -

-
- - -
-

t('Password'));?>

- -
- - -
- - - -
- -
-
- - - -
-

- -

- - - t('Help translate'));?> - -
- -

t('Get the apps to sync your files'));?>

From fe84dc73a8e2e8b9322391d21e8b220b13194ba1 Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Tue, 27 Jun 2017 20:21:54 +0200 Subject: [PATCH 02/12] Cleaned up personal settings page Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 33 +++++++- settings/templates/personal.php | 146 +++++++++++++++++--------------- 2 files changed, 106 insertions(+), 73 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 0d68a3b622d..5f4fa12f2db 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -2,20 +2,47 @@ This file is licensed under the Affero General Public License version 3 or later. See the COPYING-README file. */ -select#languageinput, select#timezone { +select#timezone { width: 15em; } +select#languageinput { + width: 17em; +} + input#openid, input#webdav { width: 20em; } +input#pass1, input#pass2, input#passwordbutton { + width: 17em; +} + /* PERSONAL */ .clear { clear: both; } +.personal-settings-password-box { + margin-top: 20px; + margin-bottom: 136px; +} + +.icon-federation-menu { + width: 44px; + margin: -6px; + float: right; +} + +.icon-avartar-federation-menu { + position: absolute; + width: 44px; + top: -6px; + left: 129px; + z-index: 10; +} + /* icons for sidebar */ .nav-icon-personal-settings { background-image: url('../img/personal.svg?v=1'); @@ -213,7 +240,7 @@ input#openid, input#webdav { .federationScopeMenu { top: 44px; - margin: -5px 0px 0; + margin: -5px -5px 0; } .federationScopeMenu.bubble::after { @@ -235,7 +262,7 @@ input#openid, input#webdav { #lostpassword, #groups { display: inline-block; - margin-bottom: 0; + margin-bottom: 10px; padding-bottom: 0; padding-right: 0; min-width: 60%; diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 7a7d87e930d..a456183d380 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -44,7 +44,7 @@

- +

@@ -78,7 +78,7 @@

- +

@@ -94,7 +94,7 @@

- +

- +

value="" @@ -148,7 +148,7 @@

- +

placeholder="t('Your postal address')); ?>" @@ -166,7 +166,7 @@

- +

@@ -211,7 +211,7 @@

- +

@@ -251,75 +251,81 @@
+
+
+

t('Groups')); ?>

+

t('You are member of the following groups:')); ?>

+

+ +

+
+
+
+ +
+

+ +

+ +
+ + t('Help translate'));?> + +
+ +
+
+ +
+

t('Password'));?>

+ +
+ + +
+
+ + + +
+
+ +
+
+ +
-
-

t('Groups')); ?>

-

t('You are member of the following groups:')); ?>

-

- -

-
- - -
-

t('Password'));?>

- -
- - -
- - - -
- -
-
- - - -
-

- -

- - - t('Help translate'));?> - -
- -

t('Get the apps to sync your files'));?>

From b4e05e8c589a838c5d3dc849b2f126380b28e040 Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Wed, 28 Jun 2017 14:27:08 +0200 Subject: [PATCH 03/12] Fixed typos --- settings/css/settings.css | 10 +++++----- settings/templates/personal.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 5f4fa12f2db..7e257eec9ff 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -35,12 +35,12 @@ input#pass1, input#pass2, input#passwordbutton { float: right; } -.icon-avartar-federation-menu { +.icon-avatar-federation-menu { position: absolute; - width: 44px; - top: -6px; - left: 129px; - z-index: 10; + width: 44px; + top: -6px; + left: 129px; + z-index: 10; } /* icons for sidebar */ diff --git a/settings/templates/personal.php b/settings/templates/personal.php index a456183d380..d3b37996996 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -44,7 +44,7 @@

- +

From b55c7032adbe825d7076347274c2603f1b232f7a Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Wed, 28 Jun 2017 18:26:50 +0200 Subject: [PATCH 04/12] Added space between avatar and settings Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 7e257eec9ff..549971c8176 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -39,8 +39,7 @@ input#pass1, input#pass2, input#passwordbutton { position: absolute; width: 44px; top: -6px; - left: 129px; - z-index: 10; + left: 130px; } /* icons for sidebar */ @@ -71,6 +70,7 @@ input#pass1, input#pass2, input#passwordbutton { #avatarform { min-width: 145px; padding-right: 0; + margin-top: -2px; } #avatarform .avatardiv { @@ -148,10 +148,8 @@ input#pass1, input#pass2, input#passwordbutton { #personal-settings-container { position: relative; - float: left; - min-width: 280px; - max-width: 700px; - width: calc(100% - 200px); + margin-left: 215px; + max-width: 600px; } #personal-settings-container:after { From f6e57180405b201ab40fcf7bac6e456a4dea448c Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Thu, 29 Jun 2017 12:28:36 +0200 Subject: [PATCH 05/12] Update for settings Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 44 ++++++++++++++++++++++----------- settings/templates/personal.php | 6 +++-- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 549971c8176..54eaea9b977 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -29,17 +29,25 @@ input#pass1, input#pass2, input#passwordbutton { margin-bottom: 136px; } +.personal-settings-group-box, +.personal-settings-language-box { + margin-top: 20px; +} + .icon-federation-menu { width: 44px; margin: -6px; + margin-right: 10px; float: right; + text-align: right; } .icon-avatar-federation-menu { position: absolute; - width: 44px; + width: 46px; top: -6px; - left: 130px; + left: 128px; + text-align: right; } /* icons for sidebar */ @@ -146,33 +154,41 @@ input#pass1, input#pass2, input#passwordbutton { float: left; } -#personal-settings-container { +.profile-settings-container { + top: 20px; +} + +.personal-settings-container { position: relative; margin-left: 215px; max-width: 600px; } -#personal-settings-container:after { +.personal-settings-container:after { clear: both; } -#personal-settings-container > div { +.personal-settings-container > div { float: left; height: 100px; min-width: 300px; } -#personal-settings-container.no-edit > div { +.personal-settings-container.no-edit > div { height: 20px; min-width: 200px; } #avatarform > h2, -#personal-settings-container > div h2 { +.personal-settings-container > div h2 { position: relative; } -#personal-settings-container > div h2 span[class^="icon-"], +.personal-settings-container > div h2 { + margin-bottom: 5px; +} + +.personal-settings-container > div h2 span[class^="icon-"], #personal-settings-avatar-container h2 span[class^="icon-"] { display: inline-block; padding: 8px; @@ -189,7 +205,7 @@ input#pass1, input#pass2, input#passwordbutton { width: 17em; } -#personal-settings-container > div > form span[class^="icon-checkmark"] { +.personal-settings-container > div > form span[class^="icon-checkmark"] { position: absolute; left: 228px; top: 82px; @@ -197,22 +213,22 @@ input#pass1, input#pass2, input#passwordbutton { } /* verify accounts */ -#personal-settings-container .verify { +.personal-settings-container .verify { position: absolute; right: 14px; top: 70px; } -#personal-settings-container .verify img { +.personal-settings-container .verify img { padding: 12px 7px 6px; } /* only show pointer cursor when popup will be there */ -#personal-settings-container .verify-action { +.personal-settings-container .verify-action { cursor: pointer; } -#personal-settings-container input:disabled { +.personal-settings-container input:disabled { background-color: white; color: black; border: none; @@ -238,7 +254,7 @@ input#pass1, input#pass2, input#passwordbutton { .federationScopeMenu { top: 44px; - margin: -5px -5px 0; + margin: -5px 5px 0; } .federationScopeMenu.bubble::after { diff --git a/settings/templates/personal.php b/settings/templates/personal.php index d3b37996996..a37e67bc218 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -73,7 +73,7 @@
-
+

@@ -251,6 +251,8 @@

+
+

t('Groups')); ?>

@@ -260,7 +262,7 @@

-
+

From 91651cfbb9fecf99dc26152b0dbc4b48456de2cd Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Fri, 14 Jul 2017 09:43:19 +0200 Subject: [PATCH 06/12] Moved settings to left Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 20 ++++++++++++-------- settings/templates/personal.php | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 54eaea9b977..d4ffe232bb5 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -25,13 +25,7 @@ input#pass1, input#pass2, input#passwordbutton { } .personal-settings-password-box { - margin-top: 20px; - margin-bottom: 136px; -} - -.personal-settings-group-box, -.personal-settings-language-box { - margin-top: 20px; + margin-bottom: 80px; } .icon-federation-menu { @@ -108,6 +102,10 @@ input#pass1, input#pass2, input#passwordbutton { height: 33px; } +#language { + padding-bottom: 0; +} + .jcrop-holder { z-index: 500; } @@ -156,6 +154,8 @@ input#pass1, input#pass2, input#passwordbutton { .profile-settings-container { top: 20px; + position: relative; + max-width: 600px; } .personal-settings-container { @@ -179,6 +179,11 @@ input#pass1, input#pass2, input#passwordbutton { min-width: 200px; } +.personal-settings-group-box, .personal-settings-language-box { + margin-top: -20px; + margin-bottom: -20px; +} + #avatarform > h2, .personal-settings-container > div h2 { position: relative; @@ -276,7 +281,6 @@ input#pass1, input#pass2, input#passwordbutton { #lostpassword, #groups { display: inline-block; - margin-bottom: 10px; padding-bottom: 0; padding-right: 0; min-width: 60%; diff --git a/settings/templates/personal.php b/settings/templates/personal.php index a37e67bc218..09df4a5f00d 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -252,7 +252,7 @@

-
+

t('Groups')); ?>

From b0e83e17bb2235aefdf0e291cbf967193c69b666 Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Fri, 14 Jul 2017 11:46:12 +0200 Subject: [PATCH 07/12] Updated layout Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 34 ++++++++++++++++++--------------- settings/templates/personal.php | 9 +++++++-- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index d4ffe232bb5..f99aa57be22 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -25,9 +25,15 @@ input#pass1, input#pass2, input#passwordbutton { } .personal-settings-password-box { - margin-bottom: 80px; + margin-top: 20px; + margin-bottom: 136px; } +.personal-settings-group-box, +.personal-settings-language-box { + margin-top: 20px; + } + .icon-federation-menu { width: 44px; margin: -6px; @@ -102,10 +108,6 @@ input#pass1, input#pass2, input#passwordbutton { height: 33px; } -#language { - padding-bottom: 0; -} - .jcrop-holder { z-index: 500; } @@ -148,13 +150,14 @@ input#pass1, input#pass2, input#passwordbutton { float: right; } -#personal-settings-avatar-container { +#personal-settings-avatar-container, +#personal-settings-group-container { float: left; } .profile-settings-container { - top: 20px; position: relative; + margin-left: 215px; max-width: 600px; } @@ -168,7 +171,8 @@ input#pass1, input#pass2, input#passwordbutton { clear: both; } -.personal-settings-container > div { +.personal-settings-container > div, +.profile-settings-container > div { float: left; height: 100px; min-width: 300px; @@ -179,11 +183,6 @@ input#pass1, input#pass2, input#passwordbutton { min-width: 200px; } -.personal-settings-group-box, .personal-settings-language-box { - margin-top: -20px; - margin-bottom: -20px; -} - #avatarform > h2, .personal-settings-container > div h2 { position: relative; @@ -281,6 +280,7 @@ input#pass1, input#pass2, input#passwordbutton { #lostpassword, #groups { display: inline-block; + margin-bottom: 10px; padding-bottom: 0; padding-right: 0; min-width: 60%; @@ -294,11 +294,15 @@ input#pass1, input#pass2, input#passwordbutton { #groups { overflow-wrap: break-word; - max-width: 75%; - display: block;; + width: 125px; + display: block; clear: both; } +#groups-groups { + padding-top: 5px; +} + .clientsbox img { height: 60px; } diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 09df4a5f00d..0fe078bae8a 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -252,16 +252,21 @@
-
+ +
+ +

t('Groups')); ?>

t('You are member of the following groups:')); ?>

-

+

+
+
From 84eb18b01172014919f6a257fd9323fb5cfcc59b Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Sat, 15 Jul 2017 09:30:38 +0200 Subject: [PATCH 08/12] Personal settings file changed --- settings/templates/personal.php | 422 ------------------ .../settings/personal/personal.info.php | 347 ++++++++++++++ 2 files changed, 347 insertions(+), 422 deletions(-) delete mode 100644 settings/templates/personal.php create mode 100644 settings/templates/settings/personal/personal.info.php diff --git a/settings/templates/personal.php b/settings/templates/personal.php deleted file mode 100644 index 0fe078bae8a..00000000000 --- a/settings/templates/personal.php +++ /dev/null @@ -1,422 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or later. - * See the COPYING-README file. - */ - -/** @var $_ mixed[]|\OCP\IURLGenerator[] */ -/** @var \OCP\Defaults $theme */ -?> - -
-
    - %s", \OCP\Util::sanitizeHTML($anchor), - \OCP\Util::sanitizeHTML($class), \OCP\Util::sanitizeHTML($sectionName))); - } - }?> -
-
- -
- -
-
80): ?> class="quota-warning" > -

- - t('You are using %s of %s', - [$_['usage'], $_['total_space']]));?> - - t('You are using %s of %s (%s %%)', - [$_['usage'], $_['total_space'], $_['usage_relative']]));?> - -

-
-
- -
-
- -

- - -

-
-
- - - -
- - -

t('png or jpg, max. 20 MB')); ?>

- - t('Picture provided by original account')); ?> - -
- - -
- -
-
-
-

- - -

- - value="" - autocomplete="on" autocapitalize="none" autocorrect="off" /> -
-
-
-

- - -

-
- -
- - placeholder="t('Your email address')) ?>" - autocomplete="on" autocapitalize="none" autocorrect="off" /> - -
- t('For password reset and notifications')); ?> - -
- -
-
-

- - -

- - value="" - placeholder="t('Your phone number')); ?>" - autocomplete="on" autocapitalize="none" autocorrect="off" /> -
- - -
-
-

- - -

- - placeholder="t('Your postal address')); ?>" - value="" - autocomplete="on" autocapitalize="none" autocorrect="off" /> -
- - -
-
-

- - -

- -
- - > - -
- - - /> -
- - -
-
-

- - -

- -
- - > - -
- - - /> -
- -
- -
- -
-
-
-

t('Groups')); ?>

-

t('You are member of the following groups:')); ?>

-

- -

-
-
-
-
-
- -
-

- -

- -
- - t('Help translate'));?> - -
- -
-
- -
-

t('Password'));?>

- -
- - -
-
- - - -
-
- -
-
- -
- -
-
- -
- - -
-

t('Get the apps to sync your files'));?>

- - <?php p($l->t('Desktop client'));?> - - - <?php p($l->t('Android app'));?> - - - <?php p($l->t('iOS app'));?> - - -

- ', - '', - ], - $l->t('If you want to support the project {contributeopen}join development{linkclose} or {contributeopen}spread the word{linkclose}!'))); ?> -

- - -

t('Show First Run Wizard again'));?>

- -
- -
-

t('Security'));?>

-

t('Web, desktop, mobile clients and app specific passwords that currently have access to your account.'));?>

- - - - - - - - - - -
t('Device'));?>t('Last activity'));?>
- -

t('App passwords'));?>

-

t('Here you can generate individual passwords for apps so you don’t have to give out your password. You can revoke them individually too.'));?>

- -
- - -
- -
- - -
- - -
-

t('Version'));?>

-

getTitle()); ?>

-

-
- -
diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php new file mode 100644 index 00000000000..d22e9f8ea99 --- /dev/null +++ b/settings/templates/settings/personal/personal.info.php @@ -0,0 +1,347 @@ + + * + * @author Arthur Schiwon + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +/** @var \OCP\IL10N $l */ +/** @var array $_ */ + +script('settings', [ + 'usersettings', + 'federationsettingsview', + 'federationscopemenu', + 'settings/personalInfo', +]); +vendor_script('strengthify/jquery.strengthify'); +vendor_style('strengthify/strengthify'); +vendor_script('jcrop/js/jquery.Jcrop'); +vendor_style('jcrop/css/jquery.Jcrop'); + +?> + +
+
80): ?> class="quota-warning" > +

+ + t('You are using %s of %s', + [$_['usage'], $_['total_space']]));?> + + t('You are using %s of %s (%s %%)', + [$_['usage'], $_['total_space'], $_['usage_relative']]));?> + +

+
+
+ +
+
+
+

+ + +

+
+
+ + + +
+ + +

t('png or jpg, max. 20 MB')); ?>

+ + t('Picture provided by original account')); ?> + +
+ + +
+ +
+
+
+

+ + +

+ + value="" + autocomplete="on" autocapitalize="none" autocorrect="off" /> +
+
+
+

+ + +

+
+ +
+ + placeholder="t('Your email address')) ?>" + autocomplete="on" autocapitalize="none" autocorrect="off" /> + +
+ t('For password reset and notifications')); ?> + +
+ +
+
+

+ + +

+ + value="" + placeholder="t('Your phone number')); ?>" + autocomplete="on" autocapitalize="none" autocorrect="off" /> +
+ + +
+
+

+ + +

+ + placeholder="t('Your postal address')); ?>" + value="" + autocomplete="on" autocapitalize="none" autocorrect="off" /> +
+ + +
+
+

+ + +

+ +
+ + > + +
+ + + /> +
+ + +
+
+

+ + +

+ +
+ + > + +
+ + + /> +
+ +
+ +
+ +
+
+
+

t('Groups')); ?>

+

t('You are member of the following groups:')); ?>

+

+ +

+
+
+
+
+
+ +
+

+ +

+ +
+ + t('Help translate'));?> + +
+ +
+
+ +
+

t('Password'));?>

+ +
+ + +
+
+ + + +
+
+ +
+
+ +
+ +
+
+ +
\ No newline at end of file From 35494703f32bb011e66e2a896b36a185b17e10c2 Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Mon, 24 Jul 2017 10:14:57 +0200 Subject: [PATCH 09/12] Fixed bug with sharing-settings Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 1 - settings/js/federationsettingsview.js | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index f99aa57be22..3dd2d9babaa 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -194,7 +194,6 @@ input#pass1, input#pass2, input#passwordbutton { .personal-settings-container > div h2 span[class^="icon-"], #personal-settings-avatar-container h2 span[class^="icon-"] { - display: inline-block; padding: 8px; margin-left: -8px; margin-bottom: -10px; diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index 1a0a3dcb4d1..d5537d19404 100644 --- a/settings/js/federationsettingsview.js +++ b/settings/js/federationsettingsview.js @@ -180,18 +180,24 @@ _setFieldScopeIcon: function(field, scope) { var $icon = this.$('#' + field + 'form > h2 > span'); + $icon.removeClass('icon-password'); $icon.removeClass('icon-contacts-dark'); $icon.removeClass('icon-link'); + $icon.addClass('hidden'); + switch (scope) { case 'private': $icon.addClass('icon-password'); + $icon.removeClass('hidden'); break; case 'contacts': $icon.addClass('icon-contacts-dark'); + $icon.removeClass('hidden'); break; case 'public': $icon.addClass('icon-link'); + $icon.removeClass('hidden'); break; } } From 7284458e24553a05078259635279356cc4d361c2 Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Thu, 3 Aug 2017 12:51:27 +0200 Subject: [PATCH 10/12] Clean up HTML structure, fix labels. Signed-off-by: Marin Treselj --- settings/css/settings.css | 76 ++++++------------- .../settings/personal/personal.info.php | 10 +-- 2 files changed, 26 insertions(+), 60 deletions(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index f20c13eacb3..5a9e4c7f053 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -2,24 +2,11 @@ This file is licensed under the Affero General Public License version 3 or later. See the COPYING-README file. */ -select#timezone { - width: 15em; -} - -select#languageinput { - width: 17em; -} - input#openid, input#webdav { width: 20em; } -input#pass1, input#pass2, input#passwordbutton { - width: 17em; -} - /* PERSONAL */ - .clear { clear: both; } @@ -37,7 +24,6 @@ input#pass1, input#pass2, input#passwordbutton { .icon-federation-menu { width: 44px; margin: -6px; - margin-right: 10px; float: right; text-align: right; } @@ -75,12 +61,6 @@ input#pass1, input#pass2, input#passwordbutton { background-image: url('../img/password.svg?v=1'); } -#avatarform { - min-width: 145px; - padding-right: 0; - margin-top: -2px; -} - #avatarform .avatardiv { margin-bottom: 10px; } @@ -152,18 +132,14 @@ input#pass1, input#pass2, input#passwordbutton { #personal-settings-avatar-container, #personal-settings-group-container { - float: left; -} - -.profile-settings-container { - position: relative; - margin-left: 215px; - max-width: 600px; + display: inline-block; + vertical-align: top; + min-width: 205px; } +.profile-settings-container, .personal-settings-container { - position: relative; - margin-left: 215px; + display: inline-block; max-width: 600px; } @@ -174,13 +150,7 @@ input#pass1, input#pass2, input#passwordbutton { .personal-settings-container > div, .profile-settings-container > div { float: left; - height: 100px; - min-width: 300px; -} - -.personal-settings-container.no-edit > div { - height: 20px; - min-width: 200px; + width: 300px; } #avatarform > h2, @@ -202,24 +172,32 @@ input#pass1, input#pass2, input#passwordbutton { cursor: pointer; } +.personal-show-container, .personal-settings-setting-box input[type="text"], .personal-settings-setting-box input[type="email"], -.personal-settings-setting-box input[type="tel"] { - width: 17em; +.personal-settings-setting-box input[type="tel"], +select#timezone, +select#languageinput, +input#pass1, +input#pass2, +input#passwordbutton { + width: 100%; } .personal-settings-container > div > form span[class^="icon-checkmark"] { - position: absolute; - left: 228px; - top: 82px; + position: relative; + left: 90%; + top: -44px; pointer-events: none; + width: 44px; } /* verify accounts */ .personal-settings-container .verify { - position: absolute; - right: 14px; - top: 70px; + position: relative; + left: 100%; + top: 0; + height: 0; } .personal-settings-container .verify img { @@ -285,12 +263,6 @@ input#pass1, input#pass2, input#passwordbutton { min-width: 60%; } -#avatarform, -#passwordform { - margin-bottom: 0; - padding-bottom: 0; -} - #groups { overflow-wrap: break-word; width: 125px; @@ -1000,10 +972,6 @@ span.version { margin: 8px 0; } -form.section { - position: relative; -} - .followupsection { display: block; padding: 0 30px 30px 30px; diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php index ee831f8f4f6..e0655b393d2 100644 --- a/settings/templates/settings/personal/personal.info.php +++ b/settings/templates/settings/personal/personal.info.php @@ -135,7 +135,6 @@ vendor_style('jcrop/css/jquery.Jcrop'); t('No email address set')); }?> -
t('For password reset and notifications')); ?>
+