[FEATURE] Add feature toggle interface to Settings
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Resources / Private / Templates / Settings / FeaturesGetContent.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2
3 <p>
4 Enable and disable certain core features. Feature toggles in the core are used to globally
5 use new features of TYPO3 that may be activated on new installations but upgrading installations
6 can still use the old behaviour.
7 </p>
8
9 <div class="t3js-features-content" data-features-save-token="{featuresSaveToken}">
10 <strong>Available features:</strong>
11 <form method="post" class="form-horizontal">
12 <f:for each="{features}" as="feature">
13 <div class="checkbox checkbox-type-labeled-toggle">
14 <input type="checkbox" class="checkbox-input"
15 value="1"
16 name="install[values][{feature.name}]"
17 id="t3-install-tool-features-{feature.name}"
18 {f:if(condition: '{feature.value} == 1', then: 'checked="checked"')}
19 >
20 <label class="checkbox-label" for="t3-install-tool-features-{feature.name}">
21 <span class="checkbox-label-switch">
22 <span class="checkbox-label-switch-checked">On</span>
23 <span class="checkbox-label-switch-unchecked">Off</span>
24 </span>
25 <span class="checkbox-label-text">
26 {feature.name} (default {f:if(condition: '{feature.default} == 1', then: 'on', else: 'off')}): {feature.description}
27 </span>
28 </label>
29 </div>
30 </f:for>
31
32 <button
33 class="btn btn-default t3js-features-save"
34 type="button"
35 >
36 Save
37 </button>
38 </form>
39 </div>
40 </html>