435aebb5d49fb2e4f205a21f7ab746d94c58a686
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Templates / Installer / ShowDatabaseConnect.html
1 <div style="display: none;">
2 <div id="t3js-installer-databaseConnect-execute-token">{executeDatabaseConnectToken}</div>
3 </div>
4
5 <h3>Database connection</h3>
6 <f:if condition="{hasAtLeastOneOption}">
7 <f:then>
8 <p>
9 If you have not already created a username and password to access the database, please do so now.
10 This can be done using tools provided by your host.
11 </p>
12 <div class="t3js-installer-databaseConnect-output"></div>
13 <div class="row">
14 <div class="col-md-6">
15 <form method="post" class="form-horizontal">
16 <div class="form-group">
17 <label for="t3js-connect-database-driver" class="control-label col-md-2">Available</label>
18 <div class="col-md-10">
19 <select id="t3js-connect-database-driver" class="form-control" name="install[values][availableSet]">
20 <f:if condition="{hasMysqliManualConfiguration}">
21 <option
22 value="mysqliManualConfiguration"
23 {f:if(condition:'{activeAvailableOption} == mysqliManualConfiguration', then: 'selected="selected"')}
24 >
25 Manually configured MySQL TCP/IP connection
26 </option>
27 </f:if>
28 <f:if condition="{hasMysqliSocketManualConfiguration}">
29 <option
30 value="mysqliSocketManualConfiguration"
31 {f:if(condition:'{activeAvailableOption} == mysqliSocketManualConfiguration', then: 'selected="selected"')}
32 >
33 Manually configured MySQL socket connection
34 </option>
35 </f:if>
36 <f:if condition="{hasPostgresManualConfiguration}">
37 <option
38 value="postgresManualConfiguration"
39 {f:if(condition:'{activeAvailableOption} == postgresManualConfiguration', then: 'selected="selected"')}
40 >
41 Manually configured PostgreSQL connection
42 </option>
43 </f:if>
44 <f:if condition="{hasConfigurationFromEnvironment}">
45 <option
46 value="configurationFromEnvironment"
47 {f:if(condition:'{activeAvailableOption} == configurationFromEnvironment', then: 'selected="selected"')}
48 >
49 Configuration from environment variables
50 </option>
51 </f:if>
52 </select>
53 </div>
54 </div>
55
56 <f:if condition="{hasMysqliManualConfiguration}">
57 <div id="mysqliManualConfiguration" class="t3-install-driver-data">
58 <input type="hidden" value="mysqli" name="install[values][driver]"/>
59 <div class="form-group">
60 <label for="t3-install-step-mysqliManualConfiguration-username" class="control-label col-md-2">
61 Username
62 </label>
63 <div class="col-md-10">
64 <input
65 id="t3-install-step-mysqliManualConfiguration-username"
66 class="form-control"
67 type="text"
68 value="{mysqliManualConfigurationOptions.username}"
69 name="install[values][username]"
70 autocomplete="off"
71 />
72 </div>
73 </div>
74 <div class="form-group">
75 <label for="t3-install-step-mysqliManualConfiguration-password" class="control-label col-md-2">
76 Password
77 </label>
78 <div class="col-md-10">
79 <input
80 id="t3-install-step-mysqliManualConfiguration-password"
81 class="form-control"
82 type="password"
83 value="{mysqliManualConfigurationOptions.password}"
84 name="install[values][password]"
85 autocomplete="off"
86 />
87 </div>
88 </div>
89 <div class="form-group">
90 <label for="t3-install-step-mysqliManualConfiguration-host" class="control-label col-md-2">
91 Host
92 </label>
93 <div class="col-md-10">
94 <input
95 id="t3-install-step-mysqliManualConfiguration-host"
96 class="t3-install-form-input-text form-control"
97 type="text"
98 value="{mysqliManualConfigurationOptions.host}"
99 name="install[values][host]"
100 />
101 </div>
102 </div>
103 <div class="form-group">
104 <label for="t3-install-step-mysqliManualConfiguration-port" class="control-label col-md-2">
105 Port
106 </label>
107 <div class="col-md-10">
108 <input
109 id="t3-install-step-mysqliManualConfiguration-port"
110 class="t3-install-form-input-text form-control"
111 type="text"
112 value="{mysqliManualConfigurationOptions.port}"
113 name="install[values][port]"
114 />
115 </div>
116 </div>
117 </div>
118 </f:if>
119
120 <f:if condition="{hasMysqliSocketManualConfiguration}">
121 <div id="mysqliSocketManualConfiguration" class="t3-install-driver-data">
122 <input type="hidden" value="mysqli" name="install[values][driver]"/>
123 <div class="form-group">
124 <label for="t3-install-step-mysqliSocketManualConfiguration-username" class="control-label col-md-2">
125 Username
126 </label>
127 <div class="col-md-10">
128 <input
129 id="t3-install-step-mysqliSocketManualConfiguration-username"
130 class="form-control"
131 type="text"
132 value="{mysqliSocketManualConfigurationOptions.username}"
133 name="install[values][username]"
134 autocomplete="off"
135 />
136 </div>
137 </div>
138 <div class="form-group">
139 <label for="t3-install-step-mysqliSocketManualConfiguration-password" class="control-label col-md-2">
140 Password
141 </label>
142 <div class="col-md-10">
143 <input
144 id="t3-install-step-mysqliSocketManualConfiguration-password"
145 class="form-control"
146 type="password"
147 value="{mysqliSocketManualConfigurationOptions.password}"
148 name="install[values][password]"
149 autocomplete="off"
150 />
151 </div>
152 </div>
153 <input type="hidden" value="localhost" name="install[values][host]"/>
154 <div class="form-group">
155 <label for="t3-install-step-mysqliSocketManualConfiguration-socket" class="control-label col-md-2">
156 Socket
157 </label>
158 <div class="col-md-10">
159 <input
160 id="t3-install-step-mysqliSocketManualConfiguration-socket"
161 class="t3-install-form-input-text form-control"
162 type="text"
163 value="{mysqliSocketManualConfigurationOptions.socket}"
164 name="install[values][socket]"
165 placeholder="Default socket or enter name"
166 />
167 </div>
168 </div>
169 </div>
170 </f:if>
171
172 <f:if condition="{hasPostgresManualConfiguration}">
173 <div id="postgresManualConfiguration" class="t3-install-driver-data">
174 <input type="hidden" value="pdo_pgsql" name="install[values][driver]"/>
175 <div class="form-group">
176 <label for="t3-install-step-postgresManualConfiguration-username" class="control-label col-md-2">
177 Username
178 </label>
179 <div class="col-md-10">
180 <input
181 id="t3-install-step-postgresManualConfiguration-username"
182 class="form-control"
183 type="text"
184 value="{postgresManualConfigurationOptions.username}"
185 name="install[values][username]"
186 autocomplete="off"
187 />
188 </div>
189 </div>
190 <div class="form-group">
191 <label for="t3-install-step-postgresManualConfiguration-password" class="control-label col-md-2">
192 Password
193 </label>
194 <div class="col-md-10">
195 <input
196 id="t3-install-step-postgresManualConfiguration-password"
197 class="form-control"
198 type="password"
199 value="{postgresManualConfigurationOptions.password}"
200 name="install[values][password]"
201 autocomplete="off"
202 />
203 </div>
204 </div>
205 <div class="form-group">
206 <label for="t3-install-step-postgresManualConfiguration-database" class="control-label col-md-2">
207 Database
208 </label>
209 <div class="col-md-10">
210 <input
211 id="t3-install-step-postgresManualConfiguration-database"
212 class="t3-install-form-input-text form-control"
213 type="text"
214 value="{postgresManualConfigurationOptions.database}"
215 name="install[values][database]"
216 />
217 </div>
218 </div>
219 <div class="form-group">
220 <label for="t3-install-step-postgresManualConfiguration-host" class="control-label col-md-2">
221 Host
222 </label>
223 <div class="col-md-10">
224 <input
225 id="t3-install-step-postgresManualConfiguration-host"
226 class="t3-install-form-input-text form-control"
227 type="text"
228 value="{postgresManualConfigurationOptions.host}"
229 name="install[values][host]"
230 />
231 </div>
232 </div>
233 <div class="form-group">
234 <label for="t3-install-step-postgresManualConfiguration-port" class="control-label col-md-2">
235 Port
236 </label>
237 <div class="col-md-10">
238 <input
239 id="t3-install-step-postgresManualConfiguration-port"
240 class="t3-install-form-input-text form-control"
241 type="text"
242 value="{postgresManualConfigurationOptions.port}"
243 name="install[values][port]"
244 />
245 </div>
246 </div>
247 </div>
248 </f:if>
249
250 <f:if condition="{hasConfigurationFromEnvironment}">
251 <div id="configurationFromEnvironment" class="t3-install-driver-data">
252 </div>
253 </f:if>
254
255 <hr/>
256 <button class="btn btn-success t3js-installer-databaseConnect-execute">
257 Continue
258 </button>
259 </form>
260 </div>
261 </div>
262 </f:then>
263
264 <f:else>
265 <div class="t3js-message typo3-message alert alert-danger" role="alert">
266 <h4>No database driver found</h4>
267 <p class="messageText">You have no database driver installed or enabled. Please install a driver in order to complete the database connection.</p>
268 </div>
269 </f:else>
270 </f:if>