[BUGFIX] Replace .env parsing with reading from environment
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Partials / Action / Step / DatabaseConnect / ConnectDetails.html
1 <div class="row">
2 <div class="col-md-6">
3 <form method="post" class="form-horizontal">
4 <f:render partial="Action/Common/HiddenFormFields" arguments="{_all}"/>
5 <input type="hidden" value="execute" name="install[set]"/>
6
7 <div class="form-group">
8 <label for="t3js-connect-database-driver" class="control-label col-md-2">Available</label>
9 <div class="col-md-10">
10 <select id="t3js-connect-database-driver" class="form-control" name="install[values][availableSet]">
11 <f:if condition="{hasMysqliManualConfiguration}">
12 <option value="mysqliManualConfiguration" {f:if(condition:
13 '{activeAvailableOption} == mysqliManualConfiguration', then: 'selected="selected"')}>Manually configured
14 MySQL TCP/IP connection</option>
15 </f:if>
16 <f:if condition="{hasMysqliSocketManualConfiguration}">
17 <option value="mysqliSocketManualConfiguration" {f:if(condition:
18 '{activeAvailableOption} == mysqliSocketManualConfiguration', then: 'selected="selected"')}>Manually
19 configured MySQL socket connection</option>
20 </f:if>
21 <f:if condition="{hasPostgresManualConfiguration}">
22 <option value="postgresManualConfiguration" {f:if(condition:
23 '{activeAvailableOption} == postgresManualConfiguration', then: 'selected="selected"')}>Manually
24 configured PostgreSQL connection</option>
25 </f:if>
26 <f:if condition="{hasConfigurationFromEnvironment}">
27 <option value="configurationFromEnvironment" {f:if(condition:
28 '{activeAvailableOption} == configurationFromEnvironment', then: 'selected="selected"')}>Configuration from environment variables</option>
29 </f:if>
30 </select>
31 </div>
32 </div>
33
34 <f:if condition="{hasMysqliManualConfiguration}">
35 <div id="mysqliManualConfiguration" class="t3-install-driver-data">
36 <input type="hidden" value="mysqli" name="install[values][driver]"/>
37 <div class="form-group">
38 <label for="t3-install-step-mysqliManualConfiguration-username"
39 class="control-label col-md-2">Username</label>
40 <div class="col-md-10">
41 <input id="t3-install-step-mysqliManualConfiguration-username" class="form-control" type="text"
42 value="{mysqliManualConfigurationOptions.username}" name="install[values][username]"
43 autocomplete="off"/>
44 </div>
45 </div>
46 <div class="form-group">
47 <label for="t3-install-step-mysqliManualConfiguration-password"
48 class="control-label col-md-2">Password</label>
49 <div class="col-md-10">
50 <input id="t3-install-step-mysqliManualConfiguration-password" class="form-control" type="password"
51 value="{mysqliManualConfigurationOptions.password}" name="install[values][password]"
52 autocomplete="off"/>
53 </div>
54 </div>
55 <div class="form-group">
56 <label for="t3-install-step-mysqliManualConfiguration-host" class="control-label col-md-2">Host</label>
57 <div class="col-md-10">
58 <input id="t3-install-step-mysqliManualConfiguration-host" class="t3-install-form-input-text form-control"
59 type="text" value="{mysqliManualConfigurationOptions.host}" name="install[values][host]"/>
60 </div>
61 </div>
62 <div class="form-group">
63 <label for="t3-install-step-mysqliManualConfiguration-port" class="control-label col-md-2">Port</label>
64 <div class="col-md-10">
65 <input id="t3-install-step-mysqliManualConfiguration-port" class="t3-install-form-input-text form-control"
66 type="text" value="{mysqliManualConfigurationOptions.port}" name="install[values][port]"/>
67 </div>
68 </div>
69 </div>
70 </f:if>
71
72 <f:if condition="{hasMysqliSocketManualConfiguration}">
73 <div id="mysqliSocketManualConfiguration" class="t3-install-driver-data">
74 <input type="hidden" value="mysqli" name="install[values][driver]"/>
75 <div class="form-group">
76 <label for="t3-install-step-mysqliSocketManualConfiguration-username" class="control-label col-md-2">Username</label>
77 <div class="col-md-10">
78 <input id="t3-install-step-mysqliSocketManualConfiguration-username" class="form-control" type="text"
79 value="{mysqliSocketManualConfigurationOptions.username}" name="install[values][username]"
80 autocomplete="off"/>
81 </div>
82 </div>
83 <div class="form-group">
84 <label for="t3-install-step-mysqliSocketManualConfiguration-password" class="control-label col-md-2">Password</label>
85 <div class="col-md-10">
86 <input id="t3-install-step-mysqliSocketManualConfiguration-password" class="form-control" type="password"
87 value="{mysqliSocketManualConfigurationOptions.password}" name="install[values][password]"
88 autocomplete="off"/>
89 </div>
90 </div>
91 <input type="hidden" value="localhost" name="install[values][host]"/>
92 <div class="form-group">
93 <label for="t3-install-step-mysqliSocketManualConfiguration-socket"
94 class="control-label col-md-2">Socket</label>
95 <div class="col-md-10">
96 <input id="t3-install-step-mysqliSocketManualConfiguration-socket"
97 class="t3-install-form-input-text form-control" type="text"
98 value="{mysqliSocketManualConfigurationOptions.socket}" name="install[values][socket]"
99 placeholder="Default socket or enter name"/>
100 </div>
101 </div>
102 </div>
103 </f:if>
104
105 <f:if condition="{hasPostgresManualConfiguration}">
106 <div id="postgresManualConfiguration" class="t3-install-driver-data">
107 <input type="hidden" value="pdo_pgsql" name="install[values][driver]"/>
108 <div class="form-group">
109 <label for="t3-install-step-postgresManualConfiguration-username"
110 class="control-label col-md-2">Username</label>
111 <div class="col-md-10">
112 <input id="t3-install-step-postgresManualConfiguration-username" class="form-control" type="text"
113 value="{postgresManualConfigurationOptions.username}" name="install[values][username]"
114 autocomplete="off"/>
115 </div>
116 </div>
117 <div class="form-group">
118 <label for="t3-install-step-postgresManualConfiguration-password"
119 class="control-label col-md-2">Password</label>
120 <div class="col-md-10">
121 <input id="t3-install-step-postgresManualConfiguration-password" class="form-control" type="password"
122 value="{postgresManualConfigurationOptions.password}" name="install[values][password]"
123 autocomplete="off"/>
124 </div>
125 </div>
126 <div class="form-group">
127 <label for="t3-install-step-postgresManualConfiguration-database"
128 class="control-label col-md-2">Database</label>
129 <div class="col-md-10">
130 <input id="t3-install-step-postgresManualConfiguration-database"
131 class="t3-install-form-input-text form-control" type="text"
132 value="{postgresManualConfigurationOptions.database}" name="install[values][database]"/>
133 </div>
134 </div>
135 <div class="form-group">
136 <label for="t3-install-step-postgresManualConfiguration-host" class="control-label col-md-2">Host</label>
137 <div class="col-md-10">
138 <input id="t3-install-step-postgresManualConfiguration-host"
139 class="t3-install-form-input-text form-control" type="text"
140 value="{postgresManualConfigurationOptions.host}" name="install[values][host]"/>
141 </div>
142 </div>
143 <div class="form-group">
144 <label for="t3-install-step-postgresManualConfiguration-port" class="control-label col-md-2">Port</label>
145 <div class="col-md-10">
146 <input id="t3-install-step-postgresManualConfiguration-port"
147 class="t3-install-form-input-text form-control" type="text"
148 value="{postgresManualConfigurationOptions.port}" name="install[values][port]"/>
149 </div>
150 </div>
151 </div>
152 </f:if>
153
154 <f:if condition="{hasConfigurationFromEnvironment}">
155 <div id="configurationFromEnvironment" class="t3-install-driver-data">
156 </div>
157 </f:if>
158
159 <hr/>
160 <button class="btn btn-success" type="submit">
161 Continue
162 </button>
163 </form>
164 </div>
165 </div>