Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
ef5e253b
Commit
ef5e253b
authored
13 years ago
by
Dawid Opis
Browse files
Options
Downloads
Patches
Plain Diff
changed radiobuttons to jQuery UI buttons (restyled) on installation page
parent
aa582ec4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/css/styles.css
+5
-3
5 additions, 3 deletions
core/css/styles.css
core/js/setup.js
+1
-0
1 addition, 0 deletions
core/js/setup.js
core/templates/installation.php
+6
-8
6 additions, 8 deletions
core/templates/installation.php
with
12 additions
and
11 deletions
core/css/styles.css
+
5
−
3
View file @
ef5e253b
...
...
@@ -75,9 +75,11 @@ legend { padding:.2em; font-size:1.2em; }
#login
form
input
[
type
=
"checkbox"
]+
label
{
position
:
relative
;
margin
:
0
;
font-size
:
1em
;
text-shadow
:
#fff
0
1px
0
;
}
#login
form
ul
.errors
{
background
:
#fed7d7
;
border
:
1px
solid
#f00
;
list-style-indent
:
inside
;
margin
:
0
0
4em
0
;
padding
:
1em
1em
1em
5em
;
}
#login
form
p
{
clear
:
both
;
}
#login
form
p
label
{
float
:
left
;
position
:
static
;
margin
:
0
;
padding
:
0.1em
;}
#login
form
p
input
{
float
:
left
;
width
:
auto
;}
#login
form
#selectDbType
{
text-align
:
center
;
}
#login
form
#selectDbType
label
{
position
:
static
;
background
:
#F8F8F8
none
;
border
:
1px
solid
#DDD
;
box-shadow
:
0
1px
1px
#FFF
,
0
1px
0
#BBB
inset
;
color
:
#555
;
font-size
:
1em
;
margin
:
0
-0.3em
1em
;
padding
:
0.6em
0.5em
0.4em
;
cursor
:
pointer
;
width
:
7.5em
;}
#login
form
#selectDbType
label
span
{
cursor
:
pointer
;
}
#login
form
#selectDbType
label
.ui-state-hover
,
#login
form
#selectDbType
label
.ui-state-active
{
color
:
#333
;
background-color
:
#FFF
;
}
/* NAVIGATION ------------------------------------------------------------- */
#navigation
{
position
:
fixed
;
top
:
3.5em
;
float
:
left
;
width
:
12.5em
;
padding
:
0
;
z-index
:
75
;
height
:
100%
;
background
:
#eee
;
border-right
:
1px
#ccc
solid
;
-moz-box-shadow
:
-3px
0
7px
#000
;
-webkit-box-shadow
:
-3px
0
7px
#000
;
box-shadow
:
-3px
0
7px
#000
;
}
...
...
This diff is collapsed.
Click to expand it.
core/js/setup.js
+
1
−
0
View file @
ef5e253b
$
(
document
).
ready
(
function
()
{
$
(
'
#selectDbType
'
).
buttonset
();
$
(
'
#datadirField
'
).
hide
(
250
);
if
(
$
(
'
#hasSQLite
'
).
val
()
==
'
true
'
){
$
(
'
#databaseField
'
).
hide
(
250
);
...
...
This diff is collapsed.
Click to expand it.
core/templates/installation.php
+
6
−
8
View file @
ef5e253b
...
...
@@ -25,16 +25,15 @@
<fieldset
id=
'databaseField'
>
<?php
if
(
$_
[
'hasMySQL'
]
or
$_
[
'hasPostgreSQL'
])
$hasOtherDB
=
true
;
//other than SQLite ?>
<
legend
><?
php
echo
$l
->
t
(
'Configure the database'
);
?>
</legend>
<div
id=
"selectDbType"
>
<?php
if
(
$_
[
'hasSQLite'
])
:
?>
<input
type=
'hidden'
id=
'hasSQLite'
value=
'true'
/>
<?php
if
(
!
$hasOtherDB
)
:
?>
<p>
<?php
echo
$l
->
t
(
'SQLite will be used.'
);
?>
</p>
<input
type=
"hidden"
id=
"dbtype"
name=
"dbtype"
value=
"sqlite"
/>
<?php
else
:
?>
<p>
<input
type=
"radio"
name=
"dbtype"
value=
'sqlite'
id=
"sqlite"
<?php
OC_Helper
::
init_radio
(
'dbtype'
,
'sqlite'
,
'sqlite'
);
?>
/>
<label
class=
"sqlite"
for=
"sqlite"
>
<?php
echo
$l
->
t
(
'SQLite'
);
?>
</label>
</p>
<input
type=
"radio"
name=
"dbtype"
value=
'sqlite'
id=
"sqlite"
<?php
OC_Helper
::
init_radio
(
'dbtype'
,
'sqlite'
,
'sqlite'
);
?>
/>
<label
class=
"sqlite"
for=
"sqlite"
>
<?php
echo
$l
->
t
(
'SQLite'
);
?>
</label>
<?php
endif
;
?>
<?php
endif
;
?>
...
...
@@ -44,10 +43,8 @@
<p>
<?php
echo
$l
->
t
(
'MySQL will be used.'
);
?>
</p>
<input
type=
"hidden"
id=
"dbtype"
name=
"dbtype"
value=
"mysql"
/>
<?php
else
:
?>
<p>
<input
type=
"radio"
name=
"dbtype"
value=
'mysql'
id=
"mysql"
<?php
OC_Helper
::
init_radio
(
'dbtype'
,
'pgsql'
,
'mysql'
,
'sqlite'
);
?>
/>
<label
class=
"mysql"
for=
"mysql"
>
MySQL
</label>
</p>
<input
type=
"radio"
name=
"dbtype"
value=
'mysql'
id=
"mysql"
<?php
OC_Helper
::
init_radio
(
'dbtype'
,
'pgsql'
,
'mysql'
,
'sqlite'
);
?>
/>
<label
class=
"mysql"
for=
"mysql"
>
MySQL
</label>
<?php
endif
;
?>
<?php
endif
;
?>
...
...
@@ -59,6 +56,7 @@
<p><label
class=
"pgsql"
for=
"pgsql"
>
PostgreSQL
</label><input
type=
"radio"
name=
"dbtype"
value=
'pgsql'
id=
"pgsql"
<?php
OC_Helper
::
init_radio
(
'dbtype'
,
'pgsql'
,
'mysql'
,
'sqlite'
);
?>
/></p>
<?php
endif
;
?>
<?php
endif
;
?>
</div>
<?php
if
(
$hasOtherDB
)
:
?>
<div
id=
"use_other_db"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment