[TASK] Show not empty databases in install tool
[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">
45 <f:if condition="{database.tables}">
46 <f:then>
47 <option value="{database.name}" disabled="disabled">{database.name} ({database.tables} Tables)</option>
48 </f:then>
49 <f:else>
50 <option value="{database.name}">{database.name}</option>
51 </f:else>
52 </f:if>
53 </f:for>
54 </select>
55 </div>
56 </li>
57 <li>
58 <input
59 id="t3-install-form-db-select-type-new"
60 type="radio"
61 name="install[values][type]"
62 value="new"
63 class="radio"
64 />
65 <div>
66 <label for="t3-install-step-database-new">Create a new database:</label>
67 <p>
68 <em>Attention: The database user must have sufficient privileges to create the whole structure.</em>
69 <br />
70 Enter a name for your TYPO3 database.
71 </p>
72 <input
73 id="t3-install-step-database-new"
74 class="t3-install-form-input-text"
75 type="text"
76 name="install[values][new]"
77 checked="checked"
78 onfocus="document.getElementById('t3-install-form-db-select-type-new').checked=true;"
79 />
80 </div>
81 </li>
82 </ul>
83 </f:then>
84
85 <f:else>
86 <f:comment>
87 Upgrading
88 </f:comment>
89 <input
90 id="t3-install-form-db-select-type-existing"
91 type="hidden"
92 name="install[values][type]"
93 value="existing"
94 />
95 <div>
96 <label for="t3-install-step-database-existing">Select an existing database:</label>
97 <p>The database will not be altered in any way.</p>
98 <select
99 id="t3-install-step-database-existing"
100 name="install[values][existing]"
101 onfocus="document.getElementById('t3-install-form-db-select-type-existing').checked=true;"
102 >
103 <option value="">Select database</option>
104 <f:for each="{databaseList}" as="database">
105 <option value="{database}">{database}</option>
106 </f:for>
107 </select>
108 </div>
109 </f:else>
110
111 </f:if>
112
113 </fieldset>
114
115 <button type="submit">
116 Continue
117 </button>
118 </form>
119 </f:section>