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