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