1cdf38b1227bcdb74248abed04e6ea2a7d0f581b
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Templates / Action / Step / DatabaseSelect.html
1 {namespace i=TYPO3\CMS\Install\ViewHelpers}
2
3 <f:layout name="Step" />
4
5 <f:section name="Content">
6 <h3>Select database</h3>
7
8 <f:if condition="{isInitialInstallationInProgress}">
9 <f:then>
10 You have two options:
11 </f:then>
12 </f:if>
13
14 <form method="post" id="stepInstaller-databaseSelect">
15 <f:render partial="Action/Common/HiddenFormFields" arguments="{_all}" />
16 <input type="hidden" value="execute" name="install[set]" />
17
18 <fieldset>
19
20 <f:if condition="{isInitialInstallationInProgress}">
21
22 <f:then>
23 <f:comment>
24 First installation
25 </f:comment>
26 <ul>
27 <li>
28 <input
29 id="t3-install-form-db-select-type-existing"
30 type="radio"
31 name="install[values][type]"
32 value="existing"
33 class="radio"
34 checked="checked"
35 />
36 <div>
37 <label for="t3-install-step-database-existing">Use an existing, empty database:</label>
38 <select
39 id="t3-install-step-database-existing"
40 name="install[values][existing]"
41 onfocus="document.getElementById('t3-install-form-db-select-type-existing').checked=true;"
42 >
43 <option value="">Select database</option>
44 <f:for each="{databaseList}" as="database" iteration="databaseIterator">
45 <option value="{database}"{f:if(condition: databaseIterator.isFirst ,then: ' selected="selected"')}>{database}</option>
46 </f:for>
47 </select>
48 </div>
49 </li>
50 <li>
51 <input
52 id="t3-install-form-db-select-type-new"
53 type="radio"
54 name="install[values][type]"
55 value="new"
56 class="radio"
57 />
58 <div>
59 <label for="t3-install-step-database-new">Create a new database:</label>
60 <p>
61 <em>Attention: The database user must have sufficient privileges to create the whole structure.</em>
62 <br />
63 Enter a name for your TYPO3 database.
64 </p>
65 <input
66 id="t3-install-step-database-new"
67 class="t3-install-form-input-text"
68 type="text"
69 name="install[values][new]"
70 checked="checked"
71 onfocus="document.getElementById('t3-install-form-db-select-type-new').checked=true;"
72 />
73 </div>
74 </li>
75 </ul>
76 </f:then>
77
78 <f:else>
79 <f:comment>
80 Upgrading
81 </f:comment>
82 <input
83 id="t3-install-form-db-select-type-existing"
84 type="hidden"
85 name="install[values][type]"
86 value="existing"
87 />
88 <div>
89 <label for="t3-install-step-database-existing">Select an existing database:</label>
90 <p>The database will not be altered in any way.</p>
91 <select
92 id="t3-install-step-database-existing"
93 name="install[values][existing]"
94 onfocus="document.getElementById('t3-install-form-db-select-type-existing').checked=true;"
95 >
96 <option value="">Select database</option>
97 <f:for each="{databaseList}" as="database">
98 <option value="{database}">{database}</option>
99 </f:for>
100 </select>
101 </div>
102 </f:else>
103
104 </f:if>
105
106 </fieldset>
107
108 <button type="submit">
109 Continue
110 </button>
111 </form>
112 </f:section>