Skip to content

Commit 96423a1

Browse files
authored
Merge pull request #34251 from nextcloud/backport/34222/stable25
[stable25] Fix install page
2 parents 2d86948 + 42ca267 commit 96423a1

2 files changed

Lines changed: 38 additions & 21 deletions

File tree

core/css/guest.css

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,36 @@ form {
105105
margin: auto;
106106
padding: 0;
107107
}
108+
form.install-form {
109+
max-width: 300px;
110+
}
111+
112+
form.install-form fieldset,
113+
form.install-form fieldset input {
114+
width: 100%;
115+
}
116+
form.install-form .strengthify-wrapper {
117+
bottom: 17px;
118+
width: calc(100% - 8px);
119+
left: 4px;
120+
top: unset;
121+
}
122+
123+
form.install-form #show {
124+
top: 18px;
125+
}
126+
108127
form #sqliteInformation {
109-
margin-top: 0px;
128+
margin-top: 0.5rem;
110129
margin-bottom: 20px;
111130
}
112-
form #adminaccount {
131+
form #adminaccount, form #use_other_db {
113132
margin-bottom: 15px;
133+
text-align: left;
134+
}
135+
form #adminaccount > legend,
136+
form #adminlogin {
137+
margin-bottom: 1rem;
114138
}
115139
form #advancedHeader {
116140
width: 100%;
@@ -335,7 +359,7 @@ input[type='checkbox'].checkbox--white:checked + label:before {
335359
display: inline-block;
336360
position: relative;
337361
top: -20px;
338-
width: 286px;
362+
width: 250px;
339363
border-radius: 0 0 3px 3px;
340364
overflow: hidden;
341365
height: 3px;
@@ -350,7 +374,7 @@ input[type='checkbox'].checkbox--white:checked + label:before {
350374
#show, #dbpassword-toggle {
351375
position: absolute;
352376
right: 2px;
353-
top: 4px;
377+
top: -3px;
354378
display: flex;
355379
justify-content: center;
356380
width: 44px;

core/templates/installation.php

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<input type='hidden' id='hasSQLite' value='<?php p($_['hasSQLite']) ?>'>
66
<input type='hidden' id='hasPostgreSQL' value='<?php p($_['hasPostgreSQL']) ?>'>
77
<input type='hidden' id='hasOracle' value='<?php p($_['hasOracle']) ?>'>
8-
<form action="index.php" method="post" class="guest-box">
8+
<form action="index.php" method="post" class="guest-box install-form">
99
<input type="hidden" name="install" value="true">
1010
<?php if (count($_['errors']) > 0): ?>
1111
<fieldset class="warning">
@@ -34,19 +34,17 @@
3434
<?php endif; ?>
3535
<fieldset id="adminaccount">
3636
<legend><?php print_unescaped($l->t('Create an <strong>admin account</strong>')); ?></legend>
37-
<p class="grouptop">
37+
<p>
38+
<label for="adminlogin"><?php p($l->t('Username')); ?></label>
3839
<input type="text" name="adminlogin" id="adminlogin"
39-
placeholder="<?php p($l->t('Username')); ?>"
4040
value="<?php p($_['adminlogin']); ?>"
4141
autocomplete="off" autocapitalize="none" autocorrect="off" autofocus required>
42-
<label for="adminlogin" class="infield"><?php p($l->t('Username')); ?></label>
4342
</p>
4443
<p class="groupbottom">
44+
<label for="adminpass"><?php p($l->t('Password')); ?></label>
4545
<input type="password" name="adminpass" data-typetoggle="#show" id="adminpass"
46-
placeholder="<?php p($l->t('Password')); ?>"
4746
value="<?php p($_['adminpass']); ?>"
4847
autocomplete="off" autocapitalize="none" autocorrect="off" required>
49-
<label for="adminpass" class="infield"><?php p($l->t('Password')); ?></label>
5048
<button id="show" class="toggle-password" aria-label="<?php p($l->t('Show password')); ?>">
5149
<img src="<?php print_unescaped(image_path('', 'actions/toggle.svg')); ?>" alt="<?php p($l->t('Toggle password visibility')); ?>">
5250
</button>
@@ -102,26 +100,23 @@
102100
<fieldset id='databaseField'>
103101
<div id="use_other_db">
104102
<p class="grouptop">
105-
<label for="dbuser" class="infield"><?php p($l->t('Database user')); ?></label>
103+
<label for="dbuser"><?php p($l->t('Database user')); ?></label>
106104
<input type="text" name="dbuser" id="dbuser"
107-
placeholder="<?php p($l->t('Database user')); ?>"
108105
value="<?php p($_['dbuser']); ?>"
109106
autocomplete="off" autocapitalize="none" autocorrect="off">
110107
</p>
111108
<p class="groupmiddle">
109+
<label for="dbpass"><?php p($l->t('Database password')); ?></label>
112110
<input type="password" name="dbpass" id="dbpass"
113-
placeholder="<?php p($l->t('Database password')); ?>"
114111
value="<?php p($_['dbpass']); ?>"
115112
autocomplete="off" autocapitalize="none" autocorrect="off">
116-
<label for="dbpass" class="infield"><?php p($l->t('Database password')); ?></label>
117113
<button id="show" class="toggle-password" aria-label="<?php p($l->t('Show password')); ?>">
118114
<img src="<?php print_unescaped(image_path('', 'actions/toggle.svg')); ?>" alt="<?php p($l->t('Toggle password visibility')); ?>">
119115
</button>
120116
</p>
121117
<p class="groupmiddle">
122-
<label for="dbname" class="infield"><?php p($l->t('Database name')); ?></label>
118+
<label for="dbname"><?php p($l->t('Database name')); ?></label>
123119
<input type="text" name="dbname" id="dbname"
124-
placeholder="<?php p($l->t('Database name')); ?>"
125120
value="<?php p($_['dbname']); ?>"
126121
autocomplete="off" autocapitalize="none" autocorrect="off"
127122
pattern="[0-9a-zA-Z$_-]+">
@@ -131,16 +126,14 @@
131126
<p class="groupmiddle">
132127
<label for="dbtablespace" class="infield"><?php p($l->t('Database tablespace')); ?></label>
133128
<input type="text" name="dbtablespace" id="dbtablespace"
134-
placeholder="<?php p($l->t('Database tablespace')); ?>"
135129
value="<?php p($_['dbtablespace']); ?>"
136130
autocomplete="off" autocapitalize="none" autocorrect="off">
137131
</p>
138132
</div>
139133
<?php endif; ?>
140134
<p class="groupbottom">
141-
<label for="dbhost" class="infield"><?php p($l->t('Database host')); ?></label>
135+
<label for="dbhost"><?php p($l->t('Database host')); ?></label>
142136
<input type="text" name="dbhost" id="dbhost"
143-
placeholder="<?php p($l->t('Database host')); ?>"
144137
value="<?php p($_['dbhost']); ?>"
145138
autocomplete="off" autocapitalize="none" autocorrect="off">
146139
</p>
@@ -153,12 +146,12 @@
153146
<?php endif; ?>
154147

155148
<?php if (!$_['dbIsSet'] or count($_['errors']) > 0): ?>
156-
<fieldset id="sqliteInformation" class="notecard warning">
149+
<div id="sqliteInformation" class="notecard warning">
157150
<legend><?php p($l->t('Performance warning'));?></legend>
158151
<p><?php p($l->t('You chose SQLite as database.'));?></p>
159152
<p><?php p($l->t('SQLite should only be used for minimal and development instances. For production we recommend a different database backend.'));?></p>
160153
<p><?php p($l->t('If you use clients for file syncing, the use of SQLite is highly discouraged.')); ?></p>
161-
</fieldset>
154+
</div>
162155
<?php endif ?>
163156

164157
<div class="icon-loading-dark float-spinner">&nbsp;</div>

0 commit comments

Comments
 (0)