[TASK] Use view helper to configure ModuleTemplate in log module
[Packages/TYPO3.CMS.git] / typo3 / sysext / belog / Resources / Private / Partials / Content / Filter.html
1 <html
2 xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
3 xmlns:belog="http://typo3.org/ns/TYPO3/CMS/Belog/ViewHelpers"
4 data-namespace-typo3-fluid="true">
5
6 <f:comment>
7 This is an ugly workaround.
8 The function module in Web->Info already renders a form tag, and there is
9 no easy way to circumvent this. The page id is needed for the info module
10 that is not extbase based to figure the permissions. Thus, we have to add
11 the page Id manually to hint the info module about that.
12 </f:comment>
13 <f:if condition="{isSubmoduleLayout}">
14 <input type="hidden" name="id" value="{constraint.pageId}" />
15 </f:if>
16
17 <f:form object="{constraint}" action="list" name="constraint" class="form-inline form-inline-spaced">
18 <div class="form-group">
19 <label for="belog-users"><f:translate key="users" /></label>
20 <f:form.select
21 property="userOrGroup"
22 options="{userGroups}"
23 additionalAttributes="{onchange : 'submit()'}"
24 class="form-control input-sm"
25 id="belog-users"
26 />
27 </div>
28
29 <div class="form-group">
30 <label for="belog-max"><f:translate key="max" /></label>
31 <belog:form.translateLabelSelect
32 property="number"
33 options="{settings.selectableNumberOfLogEntries}"
34 optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
35 additionalAttributes="{onchange : 'submit()'}"
36 class="form-control input-sm"
37 id="belog-max"
38 />
39 </div>
40
41 <f:if condition="{workspacesExtensionLoaded}">
42 <f:if condition="{showWorkspaceSelector}">
43 <div class="form-group">
44 <label for="belog-workspaces"><f:translate key="workspace" /></label>
45 <f:form.select
46 property="workspaceUid"
47 options="{workspaces}"
48 additionalAttributes="{onchange : 'submit()'}"
49 class="form-control input-sm"
50 id="belog-workspaces"
51 />
52 </div>
53 </f:if>
54 </f:if>
55
56 <f:if condition="{isSubmoduleLayout}">
57 <div class="form-group">
58 <label for="belog-depth"><f:translate key="chLog_menuDepth" /></label>
59 <f:form.select
60 property="depth"
61 options="{pageDepths}"
62 additionalAttributes="{onchange : 'submit()'}"
63 class="form-control input-sm"
64 id="belog-depth"
65 />
66 </div>
67 </f:if>
68
69 <div class="form-group">
70 <label for="belog-time"><f:translate key="time" /></label>
71 <belog:form.translateLabelSelect
72 property="timeFrame"
73 options="{settings.selectableTimeFrames}"
74 optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
75 additionalAttributes="{onchange : 'submit()'}"
76 class="form-control input-sm"
77 id="belog-time"
78 />
79 </div>
80
81 <div class="form-group">
82 <label for="belog-action"><f:translate key="action" /></label>
83 <belog:form.translateLabelSelect
84 property="action"
85 options="{settings.selectableActions}"
86 optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
87 additionalAttributes="{onchange : 'submit()'}"
88 class="form-control input-sm"
89 id="belog-action"
90 />
91 </div>
92
93 <f:if condition="{constraint.depth} > 0">
94 <div class="form-group">
95 <label for="belog-group"><f:translate key="groupByPage" /></label>
96 <f:form.checkbox
97 property="groupByPage"
98 value="1"
99 additionalAttributes="{onchange : 'submit()'}"
100 id="belog-group"
101 />
102 </div>
103 </f:if>
104
105 <f:comment>
106 Date time fields for manual date selection
107 </f:comment>
108
109
110 <f:if condition="{constraint.timeFrame} == 30">
111 <f:be.pageRenderer includeRequireJsModules="{0: 'TYPO3/CMS/Backend/DateTimePicker'}" />
112 <div class="form-group">
113 <label for="manualDateStart"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:from" /></label>
114 <div class="input-group input-group-sm">
115 <f:form.textfield
116 name="manualDateStart"
117 value="{f:if(condition: constraint.manualDateStart, then: \"{f:format.date(format:'{settings.timeFormat} {settings.dateFormat}', date: '{constraint.manualDateStart}')}\")}"
118 id="manualDateStart"
119 class="form-control input-sm t3js-datetimepicker t3js-clearable"
120 data="{date-type: 'datetime'}"
121 />
122 <f:form.hidden
123 property="manualDateStart"
124 value="{f:if(condition: constraint.manualDateStart, then: \"{f:format.date(format:'c', date: '{constraint.manualDateStart}')}\")}"
125 />
126 <span class="input-group-btn">
127 <label class="btn btn-default" for="manualDateStart">
128 <span class="fa fa-calendar"></span>
129 </label>
130 </span>
131 </div>
132 </div>
133
134 <div class="form-group">
135 <label for="manualDateStop"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:to" /></label>
136 <div class="input-group input-group-sm">
137 <f:form.textfield
138 name="manualDateStop"
139 value="{f:format.date(format:'{settings.timeFormat} {settings.dateFormat}', date: '{constraint.manualDateStop}')}"
140 id="manualDateStop"
141 class="form-control input-sm t3js-datetimepicker t3js-clearable"
142 data="{date-type: 'datetime'}"
143 />
144 <f:form.hidden property="manualDateStop"
145 value="{f:format.date(format:'c', date: '{constraint.manualDateStop}')}"
146 />
147 <span class="input-group-btn">
148 <label class="btn btn-default" for="manualDateStop">
149 <span class="fa fa-calendar"></span>
150 </label>
151 </span>
152 </div>
153 </div>
154
155 <div class="form-group">
156 <f:form.submit id="submit-constraint" value="{f:translate(key: 'set')}" class="btn btn-default btn-sm" />
157 </div>
158 </f:if>
159 </f:form>
160
161 </html>