[BUGFIX] Install tool fatal errors at select database action
[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 <f:render partial="Action/Step/StepCounter.html" arguments="{steps: steps, currentStep: currentStep}" />
7
8 <h3>Select database</h3>
9
10 <f:if condition="{errors -> f:count()}">
11 <f:for each="{errors}" as="error">
12 <div class="alert alert-danger">
13 <h4>Exception</h4>
14 <p>{error}</p>
15 </div>
16 </f:for>
17 </f:if>
18
19 <f:if condition="{isInitialInstallationInProgress}">
20 <f:then>
21 You have two options:
22 </f:then>
23 </f:if>
24
25 <form method="post" id="stepInstaller-databaseSelect">
26 <f:render partial="Action/Common/HiddenFormFields" arguments="{_all}" />
27 <input type="hidden" value="execute" name="install[set]" />
28
29 <p>&nbsp;</p>
30 <div class="row">
31 <div class="col-md-6">
32
33 <f:if condition="{isInitialInstallationInProgress}">
34
35 <f:then>
36 <f:comment>
37 First installation
38 </f:comment>
39 <div class="radio">
40 <label for="t3-install-form-db-select-type-existing">
41 <input id="t3-install-form-db-select-type-existing" type="radio" name="install[values][type]" value="existing" class="radio" checked="checked" />
42 Use an existing empty database:
43 </label>
44 </div>
45 <div class="form-group">
46 <select
47 id="t3-install-step-database-existing"
48 name="install[values][existing]"
49 class="form-control"
50 onfocus="document.getElementById('t3-install-form-db-select-type-existing').checked=true;"
51 >
52 <option value="">-- Select database --</option>
53 <f:for each="{databaseList}" as="database">
54 <f:if condition="{database.tables}">
55 <f:then>
56 <option value="{database.name}" disabled="disabled">{database.name} ({database.tables} Tables)</option>
57 </f:then>
58 <f:else>
59 <option value="{database.name}">{database.name}</option>
60 </f:else>
61 </f:if>
62 </f:for>
63 </select>
64 </div>
65 <div class="radio">
66 <label for="t3-install-step-database-new">
67 <input
68 id="t3-install-form-db-select-type-new"
69 type="radio"
70 name="install[values][type]"
71 value="new"
72 class="radio"
73 />
74 OR create a new database:</label>
75 </div>
76 <div class="form-group">
77 <p>
78 <em>Attention: The database user must have sufficient privileges to create the whole structure.</em>
79 <br />
80 Enter a name for your TYPO3 database.
81 </p>
82 <input
83 id="t3-install-step-database-new"
84 class="t3-install-form-input-text form-control"
85 type="text"
86 name="install[values][new]"
87 checked="checked"
88 onfocus="document.getElementById('t3-install-form-db-select-type-new').checked=true;"
89 />
90 </div>
91 </f:then>
92
93 <f:else>
94 <f:comment>
95 Upgrading
96 </f:comment>
97 <input
98 id="t3-install-form-db-select-type-existing"
99 type="hidden"
100 name="install[values][type]"
101 value="existing"
102 />
103 <div class="">
104 <label for="t3-install-step-database-existing">Select an existing database:</label>
105 <p>The database will not be altered in any way.</p>
106 <select
107 id="t3-install-step-database-existing"
108 name="install[values][existing]"
109 onfocus="document.getElementById('t3-install-form-db-select-type-existing').checked=true;"
110 >
111 <option value="">Select database</option>
112 <f:for each="{databaseList}" as="database">
113 <option value="{database}">{database}</option>
114 </f:for>
115 </select>
116 </div>
117 </f:else>
118
119 </f:if>
120 <div class="form-group">
121 <button class="btn btn-success" type="submit">
122 Continue
123 </button>
124 </div>
125 </div>
126 </div>
127 </form>
128 </f:section>