diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-12-21 12:06:18 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-27 12:50:18 +0100 |
commit | 2f1aa251305be4dbe0b178ff523346a65dd3cf62 (patch) | |
tree | 519630cd3eb831283849ce3119db902e5fe5dd6c /settings/templates | |
parent | d0a6368a8bc9b03cba66c4a485aa001da187b2e3 (diff) | |
download | nextcloud-server-2f1aa251305be4dbe0b178ff523346a65dd3cf62.tar.gz nextcloud-server-2f1aa251305be4dbe0b178ff523346a65dd3cf62.zip |
New button standard
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
USer menu in popover
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Multiselect fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Register menu & copyright
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Allow form and label in popover standard
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
New menu NOT in popover
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Stop autofilling user and password...
SHAME TO THEM: https://bugzilla.mozilla.org/show_bug.cgi?id=956906#c100
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Hide men by default
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/users/main.php | 3 | ||||
-rw-r--r-- | settings/templates/users/part.createuser.php | 58 |
2 files changed, 37 insertions, 24 deletions
diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php index 3688f2296cd..6b75c46d10f 100644 --- a/settings/templates/users/main.php +++ b/settings/templates/users/main.php @@ -1,6 +1,7 @@ <?php /** * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com> + * Copyright (c) 2017, John Molakvoæ <skjnldsv@protonmail.com> * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ @@ -35,6 +36,7 @@ translation('settings'); ?> <div id="app-navigation"> + <?php print_unescaped($this->inc('users/part.createuser')); ?> <?php print_unescaped($this->inc('users/part.grouplist')); ?> <div id="app-settings"> <div id="app-settings-header"> @@ -88,6 +90,5 @@ translation('settings'); </div> <div id="app-content"> - <?php print_unescaped($this->inc('users/part.createuser')); ?> <?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?> </div> diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index 6a388fc0d88..fca9ecc0898 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -1,25 +1,37 @@ -<div id="controls"> - <form id="newuser" autocomplete="off"> - <input id="newusername" type="text" - placeholder="<?php p($l->t('Username'))?>" - autocomplete="off" autocapitalize="none" autocorrect="off" /> - <input - type="password" id="newuserpassword" - placeholder="<?php p($l->t('Password'))?>" - autocomplete="off" autocapitalize="none" autocorrect="off" /> - <input id="newemail" type="email" style="display:none" - placeholder="<?php p($l->t('E-Mail'))?>" - autocomplete="off" autocapitalize="none" autocorrect="off" /> - <div class="groups"><div class="groupsListContainer multiselect button" data-placeholder="<?php p($l->t('Groups'))?>"><span class="title groupsList"></span><span class="icon-triangle-s"></span></div></div> - <input type="submit" class="button" value="<?php p($l->t('Create'))?>" /> +<div class="app-navigation-new"> + <button type="button" class="icon-add"><?php p($l->t('New user'))?></button> + <form class="newUserMenu" id="newuser" autocomplete="off" style="display: none;"> + <div> + <input id="newusername" type="text" required + placeholder="<?php p($l->t('Username'))?>" name="username" + autocomplete="off" autocapitalize="none" autocorrect="off" /> + </div> + <div> + <input id="newuserpassword" type="password" required + placeholder="<?php p($l->t('Password'))?>" name="password" + autocomplete="new-password" autocapitalize="none" autocorrect="off" /> + </div> + <div> + <input id="newemail" type="text" style="display:none" + placeholder="<?php p($l->t('E-Mail'))?>" name="email" + autocomplete="off" autocapitalize="none" autocorrect="off" /> + </div> + <div> + <label class="groups" for="newgroup"> + <div class="groupsListContainer multiselect button" data-placeholder="<?php p($l->t('Groups'))?>"><span class="title groupsList"></span> + <span class="icon-triangle-s"></span> + </div> + </label> + <input type="submit" id="newsubmit" class="button icon-confirm has-tooltip" value="" title="<?php p($l->t('Create'))?>" /> + </div> + <?php if((bool)$_['recoveryAdminEnabled']): ?> + <div class="recoveryPassword"> + <input id="recoveryPassword" + type="password" + placeholder="<?php p($l->t('Admin Recovery Password'))?>" + title="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>" + alt="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>"/> + </div> + <?php endif; ?> </form> - <?php if((bool)$_['recoveryAdminEnabled']): ?> - <div class="recoveryPassword"> - <input id="recoveryPassword" - type="password" - placeholder="<?php p($l->t('Admin Recovery Password'))?>" - title="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>" - alt="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>"/> - </div> - <?php endif; ?> </div> |