diff --git a/core/css/apps.css b/core/css/apps.css index 35487bee59..898259ed9d 100644 --- a/core/css/apps.css +++ b/core/css/apps.css @@ -479,7 +479,7 @@ button.loading { border-top: 1px solid #ddd; } /* no top border for first settings item */ -.section:first-child { +#app-content > .section:first-child { border-top: none; } .section h2 { diff --git a/settings/personal.php b/settings/personal.php index e6f53d6270..ecbec887da 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -101,9 +101,38 @@ $tmpl->assign('enableAvatars', \OC_Config::getValue('enable_avatars', true)); $tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser())); $tmpl->assign('certs', $certificateManager->listCertificates()); +// add hardcoded forms from the template +$l = OC_L10N::get('settings'); +$formsAndMore = array(); +$formsAndMore[]= array( 'anchor' => 'passwordform', 'section-name' => $l->t('Personal Info') ); + $forms=OC_App::getForms('personal'); -$tmpl->assign('forms', array()); -foreach($forms as $form) { - $tmpl->append('forms', $form); + +$formsMap = array_map(function($form){ + if (preg_match('%(