ShowDatabaseConnect.html 10.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<div class="t3js-module-content" data-installer-database-connect-execute-token="{executeDatabaseConnectToken}">
	<h3>Select database</h3>
	<f:if condition="{hasAtLeastOneOption}">
		<f:then>
			<p>
				You will need to create a database user with the appropriate privileges to access your database.
			</p>
			<div class="t3js-installer-databaseConnect-output"></div>
			<div class="row">
				<div class="col-md-6">
					<form method="post" class="form-horizontal">
						<div class="form-group">
							<label for="t3js-connect-database-driver" class="control-label col-md-2">Connection</label>
							<div class="col-md-10">
								<select id="t3js-connect-database-driver" class="form-control" name="install[values][availableSet]">
									<f:if condition="{hasMysqliManualConfiguration}">
										<option
											value="mysqliManualConfiguration"
											{f:if(condition:'{activeAvailableOption} == mysqliManualConfiguration', then: 'selected="selected"')}
										>
										Manually configured MySQL TCP/IP connection
										</option>
									</f:if>
									<f:if condition="{hasMysqliSocketManualConfiguration}">
										<option
											value="mysqliSocketManualConfiguration"
											{f:if(condition:'{activeAvailableOption} == mysqliSocketManualConfiguration', then: 'selected="selected"')}
										>
										Manually configured MySQL socket connection
										</option>
									</f:if>
									<f:if condition="{hasPostgresManualConfiguration}">
										<option
											value="postgresManualConfiguration"
											{f:if(condition:'{activeAvailableOption} == postgresManualConfiguration', then: 'selected="selected"')}
										>
										Manually configured PostgreSQL connection
										</option>
									</f:if>
									<f:if condition="{hasSqliteManualConfiguration}">
										<option
											value="sqliteManualConfiguration"
											{f:if(condition:'{activeAvailableOption} == sqliteManualConfiguration', then: 'selected="selected"')}
										>
										Manually configured SQLite connection
										</option>
									</f:if>
									<f:if condition="{hasConfigurationFromEnvironment}">
										<option
											value="configurationFromEnvironment"
											{f:if(condition:'{activeAvailableOption} == configurationFromEnvironment', then: 'selected="selected"')}
										>
										Configuration from environment variables
										</option>
									</f:if>
								</select>
							</div>
58
59
						</div>

60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
						<f:if condition="{hasMysqliManualConfiguration}">
							<div id="mysqliManualConfiguration" class="t3-install-driver-data">
								<input type="hidden" value="mysqli" name="install[values][driver]"/>
								<div class="form-group">
									<label for="t3-install-step-mysqliManualConfiguration-username" class="control-label col-md-2">
										Username
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliManualConfiguration-username"
											class="form-control"
											type="text"
											value="{mysqliManualConfigurationOptions.username}"
											name="install[values][username]"
											autocomplete="off"
										/>
									</div>
77
								</div>
78
79
80
81
82
83
84
85
86
87
88
89
90
91
								<div class="form-group">
									<label for="t3-install-step-mysqliManualConfiguration-password" class="control-label col-md-2">
										Password
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliManualConfiguration-password"
											class="form-control"
											type="password"
											value="{mysqliManualConfigurationOptions.password}"
											name="install[values][password]"
											autocomplete="off"
										/>
									</div>
92
								</div>
93
94
95
96
97
98
99
100
101
102
103
104
105
								<div class="form-group">
									<label for="t3-install-step-mysqliManualConfiguration-host" class="control-label col-md-2">
										Host
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliManualConfiguration-host"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{mysqliManualConfigurationOptions.host}"
											name="install[values][host]"
										/>
									</div>
106
								</div>
107
108
109
110
111
112
113
114
115
116
117
118
119
								<div class="form-group">
									<label for="t3-install-step-mysqliManualConfiguration-port" class="control-label col-md-2">
										Port
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliManualConfiguration-port"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{mysqliManualConfigurationOptions.port}"
											name="install[values][port]"
										/>
									</div>
120
121
								</div>
							</div>
122
						</f:if>
123

124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
						<f:if condition="{hasMysqliSocketManualConfiguration}">
							<div id="mysqliSocketManualConfiguration" class="t3-install-driver-data">
								<input type="hidden" value="mysqli" name="install[values][driver]"/>
								<div class="form-group">
									<label for="t3-install-step-mysqliSocketManualConfiguration-username" class="control-label col-md-2">
										Username
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliSocketManualConfiguration-username"
											class="form-control"
											type="text"
											value="{mysqliSocketManualConfigurationOptions.username}"
											name="install[values][username]"
											autocomplete="off"
										/>
									</div>
141
								</div>
142
143
144
145
146
147
148
149
150
151
152
153
154
155
								<div class="form-group">
									<label for="t3-install-step-mysqliSocketManualConfiguration-password" class="control-label col-md-2">
										Password
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliSocketManualConfiguration-password"
											class="form-control"
											type="password"
											value="{mysqliSocketManualConfigurationOptions.password}"
											name="install[values][password]"
											autocomplete="off"
										/>
									</div>
156
								</div>
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
								<input type="hidden" value="localhost" name="install[values][host]"/>
								<div class="form-group">
									<label for="t3-install-step-mysqliSocketManualConfiguration-socket" class="control-label col-md-2">
										Socket
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-mysqliSocketManualConfiguration-socket"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{mysqliSocketManualConfigurationOptions.socket}"
											name="install[values][socket]"
											placeholder="Default socket or enter name"
										/>
									</div>
172
173
								</div>
							</div>
174
						</f:if>
175

176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
						<f:if condition="{hasPostgresManualConfiguration}">
							<div id="postgresManualConfiguration" class="t3-install-driver-data">
								<input type="hidden" value="pdo_pgsql" name="install[values][driver]"/>
								<div class="form-group">
									<label for="t3-install-step-postgresManualConfiguration-username" class="control-label col-md-2">
										Username
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-postgresManualConfiguration-username"
											class="form-control"
											type="text"
											value="{postgresManualConfigurationOptions.username}"
											name="install[values][username]"
											autocomplete="off"
										/>
									</div>
193
								</div>
194
195
196
197
198
199
200
201
202
203
204
205
206
207
								<div class="form-group">
									<label for="t3-install-step-postgresManualConfiguration-password" class="control-label col-md-2">
										Password
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-postgresManualConfiguration-password"
											class="form-control"
											type="password"
											value="{postgresManualConfigurationOptions.password}"
											name="install[values][password]"
											autocomplete="off"
										/>
									</div>
208
								</div>
209
210
211
212
213
214
215
216
217
218
219
220
221
								<div class="form-group">
									<label for="t3-install-step-postgresManualConfiguration-database" class="control-label col-md-2">
										Database
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-postgresManualConfiguration-database"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{postgresManualConfigurationOptions.database}"
											name="install[values][database]"
										/>
									</div>
222
								</div>
223
224
225
226
227
228
229
230
231
232
233
234
235
								<div class="form-group">
									<label for="t3-install-step-postgresManualConfiguration-host" class="control-label col-md-2">
										Host
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-postgresManualConfiguration-host"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{postgresManualConfigurationOptions.host}"
											name="install[values][host]"
										/>
									</div>
236
								</div>
237
238
239
240
241
242
243
244
245
246
247
248
249
								<div class="form-group">
									<label for="t3-install-step-postgresManualConfiguration-port" class="control-label col-md-2">
										Port
									</label>
									<div class="col-md-10">
										<input
											id="t3-install-step-postgresManualConfiguration-port"
											class="t3-install-form-input-text form-control"
											type="text"
											value="{postgresManualConfigurationOptions.port}"
											name="install[values][port]"
										/>
									</div>
250
251
								</div>
							</div>
252
						</f:if>
253

254
255
256
257
258
						<f:if condition="{hasSqliteManualConfiguration}">
							<div id="sqliteManualConfiguration" class="t3-install-driver-data">
								<input type="hidden" value="pdo_sqlite" name="install[values][driver]"/>
							</div>
						</f:if>
259

260
261
262
263
						<f:if condition="{hasConfigurationFromEnvironment}">
							<div id="configurationFromEnvironment" class="t3-install-driver-data">
							</div>
						</f:if>
264

265
266
267
268
269
270
						<hr/>
						<button class="btn btn-success t3js-installer-databaseConnect-execute">
							Continue
						</button>
					</form>
				</div>
271
			</div>
272
		</f:then>
273

274
275
276
277
278
279
280
281
		<f:else>
			<div class="t3js-message typo3-message alert alert-danger" role="alert">
				<h4>No database driver found</h4>
				<p class="messageText">You have no database driver installed or enabled. Please install a driver in order to complete the database connection.</p>
			</div>
		</f:else>
	</f:if>
</div>